/* style.css (সম্পূর্ণ) */

:root {
    --primary-color: #00aaff;
    --secondary-color: #03dac6;
    --background-color: #121212;
    --surface-color: #1f1f1f;
    --on-surface-color: #e0e0e0;
    --on-surface-variant-color: #a0a0a0;
    --error-color: #cf6679;
    --glow-color: rgba(0, 174, 255, 0.5);
    --font-primary: 'Poppins', sans-serif;
    --header-height: 60px;
}

/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--on-surface-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #007acc;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Section */
#main-header {
    background: var(--surface-color);
    color: #fff;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

#main-header .header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

#main-header .logo span {
    color: var(--primary-color);
}

/* Navigation Menu & Dropdowns - Desktop */
#main-nav {
    display: block;
    margin: 0 auto;
    overflow: visible;
}

#main-nav ul {
    display: flex;
    align-items: center;
}

#main-nav ul li {
    position: relative;
    margin-left: 15px;
}

#main-nav ul li:first-child {
    margin-left: 0;
}

#main-nav ul li a.dropbtn,
#main-nav ul li a {
    color: #e0e0e0;
    padding: 8px 12px;
    font-weight: 400;
    border-radius: 4px;
    display: block;
    white-space: nowrap;
}

#main-nav ul li a.dropbtn i,
#main-nav ul li a i {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.2s ease-in-out;
}

#main-nav ul li a:hover,
#main-nav ul li a.dropbtn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 10;
    border-radius: 0 0 4px 4px;
    padding: 10px 0;
    margin-top: 0;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    white-space: normal;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@media (min-width: 769px) {
    .dropdown:hover > .dropdown-content,
    .dropdown .dropbtn:focus + .dropdown-content,
    .dropdown .dropdown-content.active-desktop {
        display: block;
    }
    .dropdown:hover > .dropbtn i,
    .dropdown .dropbtn.open i {
        transform: rotate(180deg);
    }
    .dropdown-content.multi-column-nav {
        min-width: 440px;
        column-count: 2;
        column-gap: 0px;
    }
}

/* Desktop Search Bar in Header */
.header-search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.header-search-container input[type="search"] {
    padding: 8px 12px; border: 1px solid #444; border-radius: 5px 0 0 5px;
    font-size: 0.9rem; background-color: #2a2a2a; color: #e0e0e0;
    width: 180px; transition: width 0.3s ease-in-out, box-shadow 0.3s ease;
}
.header-search-container input[type="search"]:focus {
    width: 230px; outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}
.header-search-container input[type="search"]::placeholder { color: #888; }
.header-search-container button[type="submit"] {
    padding: 8px 12px; background: var(--primary-color); color: #fff;
    border: none; border-radius: 0 5px 5px 0; cursor: pointer;
    font-size: 0.9rem; margin-left: -1px; transition: background-color 0.3s ease;
}
.header-search-container button[type="submit"]:hover { background-color: #007acc; }

/* Mobile Menu & Search Icons */
#mobile-menu-toggle,
#mobile-search-icon {
    display: none; background: none; border: none; color: #fff;
    font-size: 1.6rem; cursor: pointer; padding: 5px;
}

/* Mobile Search Bar Wrapper */
.mobile-search-bar-wrapper {
    display: none; background-color: #1a1a1a; padding: 15px; width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    position: absolute; top: 100%; left: 0; z-index: 999;
}
.mobile-search-bar-wrapper.active { display: flex; align-items: center; }
.mobile-search-bar-wrapper input[type="search"] {
    flex-grow: 1; padding: 10px 15px; border: 1px solid #444;
    border-radius: 5px 0 0 5px; font-size: 1rem;
    background-color: #2a2a2a; color: #e0e0e0;
}
.mobile-search-bar-wrapper input[type="search"]::placeholder { color: #888; }
.mobile-search-bar-wrapper button[type="submit"] {
    padding: 10px 15px; background: var(--primary-color); color: #fff;
    border: none; border-radius: 0 5px 5px 0; cursor: pointer;
    font-size: 1rem; margin-left: -1px;
}

/* --- UPDATED: Hero Section & Futuristic Swiper Slider --- */
#hero { 
    position: relative; 
    background-color: #000;
    overflow: hidden;
}

.hero-slider { 
    width: 100%; 
    height: 500px;
}

.swiper-slide {
    text-align: left;
    background-position: center;
    background-size: cover; 
    display: flex; 
    align-items: center;
    position: relative;
    padding: 0 5%;
}

.swiper-slide::before {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; 
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(18, 18, 18, 0.2) 0%, rgba(18, 18, 18, 0.8) 70%, #121212 95%);
}

.slide-content { 
    position: relative; 
    z-index: 10; 
    color: #fff; 
    max-width: 650px; 
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.swiper-slide-active .slide-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slide-content h2 { 
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem; 
    font-weight: 700; 
    margin-bottom: 15px; 
    text-shadow: 0 0 15px var(--glow-color);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.6s, transform 0.5s ease-out 0.6s;
}

.slide-content p { 
    font-size: 1.1rem; 
    margin-bottom: 25px; 
    max-width: 90%;
    color: var(--on-surface-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.8s, transform 0.5s ease-out 0.8s;
}

.btn-hero {
    display: inline-block; 
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #121212;
    padding: 12px 30px; 
    border-radius: 5px; 
    font-weight: 700;
    text-transform: uppercase; 
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease, opacity 0.5s ease-out 1s, transform 0.5s ease-out 1s;
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
    opacity: 0;
    transform: translateY(20px);
}

.btn-hero:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 0 8px 25px rgba(0, 170, 255, 0.6);
    color: #000;
}

.swiper-slide-active .slide-content h2,
.swiper-slide-active .slide-content p,
.swiper-slide-active .slide-content .btn-hero {
    opacity: 1;
    transform: translateY(0);
}

.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.3);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(5px);
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    width: 30px;
    border-radius: 10px;
    opacity: 1;
}
/* --- End of Hero Section Styling --- */


/* Featured Sections */
.featured-section { padding: 30px 0; }
.section-header-wrapper {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; gap: 10px;
}
.featured-section h2 {
    text-align: left; color: #e0e0e0; font-size: 1.8rem; font-weight: 600;
    border-left: 4px solid var(--primary-color); padding-left: 10px;
    flex-grow: 1; margin-right: 10px; min-width: 0;
}
.featured-section h2 i { margin-right: 8px; color: var(--primary-color); }
.see-all-btn {
    background-color: transparent; border: 1px solid var(--primary-color); color: var(--primary-color);
    padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; display: inline-flex; align-items: center; flex-shrink: 0;
}
.see-all-btn i { margin-left: 6px; font-size: 0.8em; transition: transform 0.2s ease-in-out; }
.see-all-btn:hover { background-color: var(--primary-color); color: #fff; }
.see-all-btn:hover i { transform: translateX(3px); }

/* --- Movie Grid Styling --- */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
}

.movie-item-link { display: block; text-decoration: none; color: inherit; }
.movie-item {
    background: var(--surface-color); border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; height: 100%;
}
.movie-item:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.5); }
.movie-item img {
    width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
    border-bottom: 2px solid var(--primary-color);
}
.movie-item .movie-info {
    padding: 12px; text-align: left; flex-grow: 1; display: flex;
    flex-direction: column; justify-content: space-between;
}
.movie-item h3 {
    font-size: 0.9rem; margin-bottom: 4px; color: #e0e0e0; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.movie-item p { font-size: 0.75rem; color: #aaa; }
/* --- End of Movie Grid Styling --- */

/* Footer */
footer {
    background: var(--surface-color); color: #aaa; text-align: center;
    padding: 25px 0; margin-top: 30px; border-top: 1px solid #333;
}
footer .footer-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; margin-bottom: 15px;
}
footer .footer-content p { margin-bottom: 10px; }
footer .social-media-links a { color: #aaa; margin: 0 12px; font-size: 1.4rem; }
footer .social-media-links a:hover { color: var(--primary-color); }
footer .footer-links { margin-top: 10px; font-size: 0.9rem; }
footer .footer-links a { color: #888; margin: 0 8px; }
footer .footer-links a:hover { color: #ccc; }

.footer-links .footer-contact-email i {
    margin-right: 5px; /* আইকন এবং ইমেইল টেক্সটের মধ্যে স্পেস */
    font-size: 0.9em;  /* আইকনের সাইজ টেক্সটের সাথে সামঞ্জস্যপূর্ণ */
    color: var(--on-surface-variant-color); /* আইকনের রঙ */
    transition: color 0.3s ease;
}

.footer-links .footer-contact-email:hover,
.footer-links .footer-contact-email:hover i {
    color: var(--primary-color); /* হোভার করলে আইকন এবং টেক্সট উভয়ের রঙ পরিবর্তন হবে */
}


/* --- Mobile Styles --- */
/* (এই অংশের কোড অপরিবর্তিত) */
@media (max-width: 768px) {
    #mobile-menu-toggle { display: block; order: 1; }
    #main-header .logo { order: 2; margin: 0 auto; }
    #mobile-search-icon { display: block; order: 3; }

    #main-nav {
        order: 4; width: 100%; max-height: 0;
        overflow: hidden; transition: max-height 0.3s ease-out;
        background-color: var(--surface-color); position: absolute;
        top: 100%; left: 0; z-index: 990;
    }
    #main-nav.active {
        max-height: calc(100vh - var(--header-height, 60px));
        overflow-y: auto; padding-bottom: 10px; border-top: 1px solid #333;
    }
    #main-nav ul { flex-direction: column; align-items: flex-start; }
    #main-nav ul li { margin: 0; width: 100%; }
    #main-nav ul li a.dropbtn,
    #main-nav ul li a { padding: 12px 15px; border-bottom: 1px solid #2a2a2a; }
    #main-nav ul li a.dropbtn i { float: right; transition: transform 0.3s ease; }
    #main-nav ul li a.dropbtn.open i { transform: rotate(180deg); }

    .dropdown-content {
        position: static; width: 100%; background-color: #181818;
        box-shadow: none; padding-left: 15px;
        max-height: none; overflow-y: visible; margin-top: 0;
        z-index: auto; min-width: 100%;
        column-count: unset; column-gap: unset;
    }
    #main-nav.active .dropdown-content { display: none; }
    #main-nav.active .dropdown-content.active-mobile { display: block !important; }

    .header-search-container { display: none; }
    .hero-slider { height: 400px; }
    .slide-content h2 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; max-width: 100%; }
    .swiper-button-next, .swiper-button-prev { display: none; }
    .section-header-wrapper { flex-direction: row; align-items: center; }
    .featured-section h2 { font-size: 1.5rem; }
    .see-all-btn { padding: 4px 12px; font-size: 0.8rem; }
    .see-all-btn i { font-size: 0.75em; }
    footer .footer-content { flex-direction: column; align-items: center; }
    footer .footer-content p { margin-bottom: 15px; }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    .slide-content h2 { font-size: 1.5rem; }
    .slide-content p { font-size: 0.9rem; }
    .btn-hero { padding: 8px 18px; font-size: 0.9rem; }
    #main-header .logo { font-size: 1.5rem; }
    #mobile-menu-toggle, #mobile-search-icon { font-size: 1.4rem; }
    .featured-section h2 { font-size: 1.2rem; padding-left: 8px; margin-right: 5px; }
    .see-all-btn { font-size: 0.7rem; padding: 3px 8px; }
    .movie-item h3 { font-size: 0.75rem; }
    .movie-item p { font-size: 0.65rem; }
}

/* Styles for movie list pages */
.movie-list-page .page-title-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 15px; margin-bottom: 30px;
    border-bottom: 1px solid #333; padding-bottom: 15px;
}
.movie-list-page .page-title-header h1 {
    font-size: 1.8rem; color: var(--primary-color); font-weight: 600; margin: 0;
}
.filter-sort-options { display: flex; align-items: center; gap: 10px; }
.styled-select-small {
    padding: 6px 25px 6px 10px; border: 1px solid rgba(0, 174, 255, 0.3);
    border-radius: 5px; background-color: rgba(255,255,255,0.05);
    color: var(--on-surface-color); font-size: 0.85em; outline: none;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,...'); /* SVG data URL */
    background-repeat: no-repeat; background-position: right 8px center; background-size: 10px 10px;
}
.pagination-container {
    margin-top: 40px; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 15px;
    padding: 15px 0; border-top: 1px solid #333;
}
/* ... (বাকি পেজিনেশন এবং রেসপন্সিভ স্টাইল) ... */
.page-info { font-size: 0.9em; color: var(--on-surface-variant-color); }
.pagination-links { display: flex; align-items: center; gap: 5px; }
.pagination-links a, .pagination-links span {
    padding: 8px 12px; margin: 0 2px; color: var(--on-surface-color);
    text-decoration: none; border: 1px solid transparent;
    border-radius: 4px; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-size: 0.9em;
}
.pagination-links a.page-number:hover,
.pagination-links a.pagination-arrow:not(.disabled):hover {
    background-color: var(--primary-color); color: #fff; border-color: var(--primary-color);
}
.pagination-links a.page-number.active {
    background-color: var(--primary-color); color: #fff; font-weight: 600;
    border-color: var(--primary-color); cursor: default;
}
.pagination-links span.pagination-arrow.disabled { color: #555; cursor: not-allowed; opacity: 0.6; }
.pagination-links span.pagination-ellipsis { padding: 8px 5px; color: var(--on-surface-variant-color); }

@media (max-width: 768px) {
    .movie-list-page .page-title-header { flex-direction: column; align-items: stretch; }
    .movie-list-page .page-title-header h1 { text-align: center; margin-bottom:10px;}
    .filter-sort-options { width: 100%; justify-content: center;}
    .pagination-container { flex-direction: column; gap: 10px; }
    .pagination-links { justify-content: center; flex-wrap: wrap; }
    .pagination-links a, .pagination-links span { padding: 6px 10px; font-size: 0.85em; }
}


.footer-notice {
    background-color: rgba(255, 235, 59, 0.1); /* হালকা হলুদ ব্যাকগ্রাউন্ড */
    border-left: 4px solid #FFEB3B; /* বাম দিকে হলুদ বর্ডার */
    padding: 12px 20px;
    margin: 0 auto 25px auto; /* ফুটারের উপরে এবং মাঝখানে */
    max-width: 800px; /* নোটিশটি যেন খুব বেশি চওড়া না হয় */
    border-radius: 0 4px 4px 0; /* বাম দিকের বর্ডারের সাথে মিলিয়ে রাউন্ডেড কর্নার */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.footer-notice p {
    margin: 0;
    padding: 0;
    font-size: 0.9em;
    color: #FFF59D; /* হালকা হলুদ টেক্সট */
    line-height: 1.5;
}


