/* =================================
   AI CINEMA MONGOLIA
   PREMIUM CINEMATIC DESIGN
================================= */

:root {
    --background: #080808;
    --surface: #141414;
    --gold: #d9ad62;
    --gold-light: #f1d49b;
    --text: #ffffff;
    --muted: #a5a5a5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
}

/* NAVIGATION */

.navbar {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid #29231b;
    gap: 25px;
    position: relative;
    z-index: 10;
}

.logo {
    color: var(--gold);
    font-size: 21px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    display: block;
    color: #aaa;
    font-size: 10px;
    letter-spacing: 5px;
    text-align: center;
    margin-top: 5px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

nav a:hover {
    color: var(--gold);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.nav-actions input {
    width: 155px;
    background: #1b1b1b;
    color: white;
    border: 1px solid #383838;
    border-radius: 25px;
    padding: 11px 15px;
    outline: none;
}

.nav-actions input:focus {
    border-color: var(--gold);
}

button {
    cursor: pointer;
    font-family: inherit;
}

.login-btn {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 25px;
    padding: 10px 20px;
    transition: 0.3s;
}

.login-btn:hover {
    background: var(--gold);
    color: black;
}

/* HERO BANNER */

.hero {
    min-height: 530px;
    display: flex;
    align-items: center;
    padding: 70px 8%;

    background:
        linear-gradient(
            90deg,
            #080808 0%,
            rgba(8,8,8,0.92) 32%,
            rgba(8,8,8,0.4) 75%,
            rgba(8,8,8,0.2) 100%
        ),
        url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?w=1800")
        center 45% / cover;

    border-bottom: 1px solid #302619;
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -2px;
}

.hero h1 span {
    display: block;
    color: var(--gold);
}

.description {
    color: #d0d0d0;
    font-size: 16px;
    line-height: 1.8;
    max-width: 470px;
    margin-bottom: 32px;
}

.primary-btn {
    display: inline-block;
    background: linear-gradient(
        135deg,
        var(--gold-light),
        var(--gold)
    );
    color: #111;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px #d9ad6244;
}

/* MOVIE SECTION */

.section {
    padding: 55px 6%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
}

.section-heading h2 {
    font-size: 25px;
    border-left: 4px solid var(--gold);
    padding-left: 15px;
}

.section-heading span {
    color: var(--gold);
    font-size: 13px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    background: var(--surface);
    border: 1px solid #292929;
    border-radius: 9px;
    overflow: hidden;
    transition: 0.3s;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px #0009;
}

.movie-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: 0.4s;
}

.movie-card:hover img {
    transform: scale(1.04);
}

.movie-info {
    padding: 17px;
}

.movie-info h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

.movie-info p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.movie-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.movie-bottom strong {
    color: var(--gold);
    font-size: 17px;
    white-space: nowrap;
}

.buy-btn {
    background: var(--gold);
    color: #111;
    border: none;
    border-radius: 5px;
    padding: 10px 12px;
    font-weight: bold;
    font-size: 12px;
    transition: 0.3s;
}

.buy-btn:hover {
    background: var(--gold-light);
    transform: scale(1.04);
}

/* CATEGORIES */

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.category-list button {
    background: #151515;
    color: white;
    border: 1px solid #333;
    padding: 15px 25px;
    border-radius: 6px;
    transition: 0.3s;
}

.category-list button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ABOUT SECTION */

.about {
    margin: 20px 6% 55px;
    padding: 55px 35px;
    text-align: center;
    border: 1px solid #705126;
    border-radius: 10px;

    background:
        linear-gradient(120deg, #382817, #111111);
}

.about h2 {
    color: var(--gold);
    font-size: 28px;
    margin-bottom: 15px;
}

.about p {
    color: #ccc;
    line-height: 1.7;
}

/* FOOTER */

footer {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #292929;
}

/* TABLET */

@media (max-width: 1000px) {
    .navbar {
        flex-wrap: wrap;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    nav {
        gap: 15px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        padding: 22px 15px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: 400px;
        padding: 45px 7%;
    }

    .hero h1 {
        font-size: 42px;
    }

    .section {
        padding: 35px 5%;
    }

    .movie-grid {
        grid-template-columns: 1fr;
    }

    .movie-card img {
        height: 230px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .about {
        padding: 35px 20px;
    }
}/* MOVIE DETAILS PAGE */

.movie-details {
    display: none;
    padding: 60px 8%;
    min-height: 70vh;
}

.back-btn {
    background: transparent;
    color: #c9a44c;
    border: 1px solid #c9a44c;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 35px;
}

.details-container {
    display: flex;
    gap: 45px;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

.details-container img {
    width: 40%;
    max-width: 450px;
    border-radius: 12px;
    object-fit: cover;
}

.details-info {
    flex: 1;
}

.details-info h2 {
    font-size: 38px;
    color: #c9a44c;
    margin: 15px 0;
}

.details-info p {
    color: #ccc;
    line-height: 1.8;
}

.details-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    color: #c9a44c;
}

.details-info h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

@media (max-width: 700px) {
    .details-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .details-container img {
        width: 100%;
    }

    .details-info h2 {
        font-size: 28px;
    }
}
/* LOGIN POPUP */

.login-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.login-box {
    background: #151515;
    border: 1px solid #c9a44c;
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.login-box h2 {
    color: #c9a44c;
    margin-bottom: 10px;
}

.login-box p {
    color: #ccc;
    margin-bottom: 25px;
}

.login-box input {
    display: block;
    width: 100%;
    padding: 13px;
    margin-bottom: 15px;
    background: #222;
    color: white;
    border: 1px solid #555;
    border-radius: 6px;
    box-sizing: border-box;
}

.login-box button#submit-login {
    width: 100%;
    padding: 13px;
    background: #c9a44c;
    color: black;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.close-login {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

#register-button {
    width: 100%;
    padding: 13px;
    margin-top: 12px;
    background: transparent;
    color: #c9a44c;
    border: 1px solid #c9a44c;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

#register-button:hover {
    background: #c9a44c;
    color: black;
}

/* DYNAMIC MOVIE FILTERS */

[data-filter].active-filter {
    background: #c9a44c;
    color: #000;
    border-color: #c9a44c;
}

#movie-count {
    color: #c9a44c;
    font-size: 14px;
    font-weight: bold;
}

#no-results {
    text-align: center;
    color: #aaa;
    padding: 40px 20px;
    font-size: 18px;
}

/* AUTHORIZED MOVIE WATCH BUTTON */

.watch-btn {
    background: #c9a44c;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.watch-btn:hover {
    background: #e0bc63;
    transform: translateY(-2px);
}

#detail-watch[hidden] {
    display: none !important;
}

#detail-access-status {
    color: #4ade80;
    font-size: 14px;
    margin-top: 12px;
}

/* =====================================
   PURCHASED MOVIE LIBRARY
===================================== */

#library-count {
    color: #c9a44c;
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.library-card {
    overflow: hidden;
    border: 1px solid #292929;
    transition: 0.2s;
}

.library-card:hover {
    border-color: #c9a44c;
}

.library-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.library-ownership {
    color: #4ade80 !important;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.library-watch-button {
    width: 100%;
    padding: 12px;
    background: #c9a44c;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.library-watch-button:hover {
    background: #e4bd60;
}
