/* ==========================================================
   GLOBAL DESIGN SYSTEM — MOBILE FIRST
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Colors
   ---------------------------------------------------------
   Background:      #121212
   Card:            #1E1E1E
   Text main:       #E4E4E4
   Text muted:      #BEBEBE / #D4D4D4
   Lavender main:   #A78BFA
   Lavender light:  #C4B5FD
----------------------------------------------------------*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #121212;
    color: #E4E4E4;
    display: flex;
    flex-direction: column;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.top-bar {
    background-color: #A78BFA;
    height: 70px;
}

.logo {
    height: 52px;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 600;
}

.nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(196,181,253,0.9);
}

.navbar .nav-link {
    margin-left: 20px;
}

/* Hide desktop links on mobile */
@media (max-width: 768px) {
    .navbar-collapse {
        display: none !important;
    }
}


/* ==========================================================
   ANIMATED NEON HAMBURGER (→ X)
   ========================================================== */
.hamburger-animated {
    width: 34px;
    height: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

/* Bars */
.hamburger-animated span {
    height: 6px;
    border-radius: 3px;
    background: #200472;
    box-shadow: 0 0 4px #200472;
}

/* Hover pulse */
.hamburger-animated:hover span {
    box-shadow: 0 0 12px #C8B4FF;
}

/* Active → X */
.hamburger-animated.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    box-shadow: 0 0 12px #C8B4FF;
}

.hamburger-animated.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-animated.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
    box-shadow: 0 0 12px #C8B4FF;
}


/* ==========================================================
   MAIN LAYOUT
   ========================================================== */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-container .row {
    flex: 1;
    min-height: calc(100vh - 70px);
}


/* LEFT SIDE (always visible, mobile-first) */
.left-side {
    background-color: #121212;
    padding: 40px 20px;
    min-height: calc(100vh - 70px);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}


/* RIGHT SIDE (desktop only) */
.right-side {
    background-color: #121212;
    color: #E4E4E4;
    padding: 60px 20px;
    display: none; 
}


/* ==========================================================
   MOVIE CARD
   ========================================================== */
.movie-card {
    width: 90%;
    background-color: #1E1E1E;
    margin: 25px auto 10px;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}

.movie-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Poster with spotlight + shadow */
.movie-poster {
    width: 220px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow:
        0 0 5px 5px rgba(167,139,250,0.45),
        0 5px 5px rgba(0,0,0,0.6);
}

.movie-poster-placeholder {
    width: 220px;
    height: 330px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow:
        0 0 40px 12px rgba(167,139,250,0.35),
        0 6px 18px rgba(0,0,0,0.6);
    background: #1F2933;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #E4E4E4;
}

.movie-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.movie-overview {
    font-size: 1rem;
    margin: 12px 0;
    line-height: 1.4;
    color: #D4D4D4;
}

.movie-date strong {
    font-size: 0.9rem;
    font-weight: 800;
}

.movie-extra {
    font-size: 0.95rem;
    color: #ccc;
    margin: 6px 0;
}

.movie-extra strong {
    color: #A78BFA;
}



/* ==========================================================
   PRIMARY BUTTONS (Pick, Upload, Reset)
   ========================================================== */
.pick-btn,
.btn-danger {
    background-color: #A78BFA;
    color: #121212;
    height: 48px;
    padding: 0 26px;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    margin: 14px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.pick-btn:hover,
.btn-danger:hover {
    background-color: #C4B5FD;
    color: #121212;
}

.btn-light {
    background: #2A2A2A;
    color: #E4E4E4 !important;
    font-weight: 600;
    border-radius: 10px;
    height: 48px;
    border: 1px solid #3A3A3A;
}

.btn-light:hover {
    background: #3A3A3A !important;
    color: #E4E4E4 !important;
}


/* ==========================================================
   MOVIE CARD EXTERNAL BUTTONS (IMDb, LETTERBOXD, COPY MOVIE TITLE)
   ========================================================== */
.external-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.external-btn,
.copy-inline-btn,
.copy-btn {
    background: #A78BFA;
    color: #000;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    position: relative; 
    transition: all 0.25s ease;
}

.external-btn:hover,
.copy-inline-btn:hover,
.copy-btn:hover {
    box-shadow: 0 0 10px #A78BFA, 0 0 18px #A78BFA;
    transform: translateY(-2px);
    text-decoration: none !important;
}

/* Tooltip for Copy button (triggered via .show-tooltip class from JS) */
.copy-inline-btn::after {
    content: "Copied!";
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #eee;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.7);
    transition: opacity 0.2s ease-in-out;
}

.copy-inline-btn.show-tooltip::after {
    opacity: 1;
}


/* ==========================================================
   ABOUT PAGE TEXT + FAVORITE MOVIE BUTTONS
   ========================================================== */
.about-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    max-width: 800px;
    margin-top: 20px;
    text-align: left;
    color: #D4D4D4;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Favorite movie buttons */
.about-movie-btn {
    background-color: #1E1E1E;
    padding: 12px;
    color: #E4E4E4;
    font-family: 'Cinzel', serif;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    display: block;
    font-weight: 600;
}

.about-movie-btn:hover {
    background-color: #A78BFA;
    color: #121212;
}

/* Mobile guess prompt color */
.guess-prompt-mobile {
    color: #BEBEBE;
}


/* ==========================================================
   ABOUT PAGE TEXT + FAVORITE MOVIE BUTTONS
   ========================================================== */
.guess-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.guess-modal-content {
    background: #1E1E1E;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.8);
}

.guess-modal-content img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-close-btn {
    background: #A78BFA;
    color: #121212;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
}

/* Guess input + button */
.guess-input-group .form-control {
    height: 48px;
    color: #fff !important;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    background: #1c1c1c;
    border: 1px solid #333;
}

.guess-input-group .form-control::placeholder {
    color: #ccc !important;
    opacity: 1;
}

.guess-submit-btn {
    height: 48px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 0 12px 12px 0; !important;
    background: #1c1c1c;
    color: #ddd;
    border: 1px solid #333;
}

.guess-submit-btn:hover {
    background: #A78BFA !important;
    color: #000 !important;
}


/* ==========================================================
   UPLOAD CARD — MOBILE
   ========================================================== */
.upload-card {
    background: #1E1E1E;
    padding: 20px;
    margin-top: 20px;
    width: 90%;
    max-width: 340px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.7);
}

.upload-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #E4E4E4;
}

.upload-subtitle {
    color: #BEBEBE;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
}

.reset-btn-mobile {
    border-radius: 12px;
    font-weight: 700;
    height: 48px;
}


/* ==========================================================
   UPLOAD CARD — DESKTOP VERSION
   ========================================================== */
.upload-card-desktop {
    background: #1E1E1E;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 350px;
    box-shadow:0 4px 20px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-title-desktop {
    font-size: 1.1rem;
    font-weight: 600;
    color: #E4E4E4;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
}

.upload-input-desktop {
    max-width: 100%;
}

.upload-btn-desktop,
.reset-btn-desktop {
    height: 48px;
    border-radius: 12px;
    font-weight: 800;
}

.upload-success-desktop {
    color: #4ADE80;
    margin-top: 10px;
    text-align: center;
}

.upload-error-desktop {
    color: #F97373;
    margin-top: 10px;
    text-align: center;
}

.watched-count-desktop {
    color: #BEBEBE;
    margin-top: 10px;
    text-align: center;
}


/* ==========================================================
   MOBILE MENU OVERLAY
   ========================================================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.mobile-menu-content {
    width: 80%;
    max-width: 320px;
    background: #1E1E1E;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.8);
}

.mobile-menu-link {
    display: block;
    padding: 14px 0;
    font-size: 1.2rem;
    color: #E4E4E4;
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu-link:hover {
    color: #A78BFA;
}

.mobile-close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #A78BFA;
    color: #121212;
    border: none;
    border-radius: 8px;
    font-weight: bold;
}
/* ==========================================================
   DESKTOP OVERRIDES (min-width: 768px)
   ========================================================== */
@media (min-width: 768px) {

    .left-side {
        justify-content: center;
    }

    .movie-card-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .movie-poster {
        width: 260px;
        margin-right: 20px;
    }

    .movie-info {
        flex: 1;
    }

    /* Right side becomes visible */
    .right-side {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .external-links {
        justify-content: flex-start;
    }
}
