/* ============================================
   MOVIE PICKER - THEATER-THEMED STYLING
   Mobile-First Responsive Design
   ============================================ */

/* CSS Variables for Consistent Theming */
:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #1a1a1a;
    --gold: #d4af37;
    --gold-light: #e8c547;
    --red: #c41e3a;
    --red-light: #e63946;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #2a2a2a;
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.6);
    --glow-red: 0 0 15px rgba(196, 30, 58, 0.5);
    --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.dhh-footer-widget {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    border-top: 3px solid #4299e1;
    padding: 24px 20px;
    margin-top: 48px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.dhh-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.dhh-footer-text {
    flex: 1;
    min-width: 250px;
}

.dhh-footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.dhh-footer-subtitle {
    color: #cbd5e0;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.dhh-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #4299e1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.dhh-footer-cta:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
    color: #ffffff;
}

.dhh-footer-cta svg {
    width: 16px;
    height: 16px;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .dhh-footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .dhh-footer-cta {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   HEADER SECTION - Theater Curtain Theme
   ============================================ */

.header {
    position: relative;
    background: linear-gradient(180deg, #1a0000 0%, #000000 100%);
    padding: 2rem 1rem 3rem;
    text-align: center;
    border-bottom: 3px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(196, 30, 58, 0.3);
}

.curtain-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0px,
        var(--red) 10px,
        var(--red-light) 10px,
        var(--red-light) 20px
    );
    animation: curtainWave 3s ease-in-out infinite;
}

@keyframes curtainWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

.spotlight-left,
.spotlight-right {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.spotlight-left {
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    filter: blur(40px);
}

.spotlight-right {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    filter: blur(40px);
}

.header-content {
    position: relative;
    z-index: 1;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.marquee-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--gold);
    text-shadow: 
        0 0 10px var(--gold),
        0 0 20px rgba(212, 175, 55, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--gold),
            0 0 20px rgba(212, 175, 55, 0.5),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 20px var(--gold-light),
            0 0 30px rgba(232, 197, 71, 0.7),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ADVERTISEMENT PLACEHOLDERS
   ============================================ */

.ad-container {
    padding: 1rem;
    background: transparent;
}

.ad-placeholder {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--darker-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-top {
    max-width: 1000px;
    margin: 1rem auto;
}

.ad-middle {
    max-width: 1000px;
    margin: 2rem auto;
}

.ad-sticky-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--gold);
    z-index: 1000;
}

@media (max-width: 768px) {
    .ad-sticky-mobile {
        display: block;
    }
    
    .ad-sticky-mobile .ad-placeholder {
        min-height: 60px;
        padding: 1rem;
        border-radius: 0;
        border: none;
    }
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   DAILY QUOTE SECTION (SEO Freshness)
   ============================================ */

.daily-quote-section {
    text-align: center;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: 2px solid var(--red);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(196, 30, 58, 0.2),
        inset 0 1px 0 rgba(196, 30, 58, 0.2);
    animation: cardFadeIn 0.8s ease-out;
}

.quote-container {
    position: relative;
}

.quote-title {
    font-size: 1.2rem;
    color: var(--red-light);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-weight: 600;
}

.quote-text {
    font-size: 1.4rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.quote-author {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   GENERATOR SECTIONS - Section Titles
   ============================================ */

.generator-section {
    text-align: center;
    padding: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================
   PICK BUTTONS
   ============================================ */

.pick-button {
    position: relative;
    padding: 1rem 3rem;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--darker-bg);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 
        0 8px 30px rgba(212, 175, 55, 0.4),
        0 0 20px rgba(212, 175, 55, 0.3);
    overflow: hidden;
    z-index: 1;
}

.button-glow {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pick-button:hover {
    transform: scale(1.08);
    box-shadow: 
        0 12px 40px rgba(212, 175, 55, 0.6),
        0 0 30px rgba(212, 175, 55, 0.5);
}

.pick-button:hover .button-glow {
    opacity: 1;
}

.pick-button:active {
    transform: scale(0.98);
}

.button-text {
    position: relative;
    z-index: 2;
    display: block;
}

/* Dinner & Snack Button Variations */
.dinner-button {
    background: linear-gradient(135deg, #c41e3a 0%, #e63946 100%);
    box-shadow: 
        0 8px 30px rgba(196, 30, 58, 0.4),
        0 0 20px rgba(196, 30, 58, 0.3);
}

.dinner-button:hover {
    box-shadow: 
        0 12px 40px rgba(196, 30, 58, 0.6),
        0 0 30px rgba(196, 30, 58, 0.5);
}

.snack-button {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    box-shadow: 
        0 8px 30px rgba(45, 106, 79, 0.4),
        0 0 20px rgba(45, 106, 79, 0.3);
}

.snack-button:hover {
    box-shadow: 
        0 12px 40px rgba(45, 106, 79, 0.6),
        0 0 30px rgba(45, 106, 79, 0.5);
}

/* ============================================
   MOVIE CARD SECTION
   ============================================ */

.movie-card-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    min-height: 300px;
    align-items: center;
}

.movie-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 8px 32px rgba(212, 175, 55, 0.25),
        0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
    animation: cardFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transition: var(--transition);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.movie-card.hidden {
    display: none;
    opacity: 0;
}

.movie-card:hover {
    box-shadow: 
        0 12px 40px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(212, 175, 55, 0.3);
    border-color: var(--gold-light);
}

.card-poster-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--border-color) 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gold);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-poster-placeholder::before {
    content: '🎬 Poster Image\AComingSoon';
    white-space: pre;
    text-align: center;
    opacity: 0.5;
}

.card-content {
    margin-bottom: 1.5rem;
}

.movie-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.movie-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.movie-year {
    background: rgba(196, 30, 58, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border-left: 2px solid var(--red);
}

.movie-rating {
    background: rgba(212, 175, 55, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    border-left: 2px solid var(--gold);
    font-weight: 600;
}

.movie-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pick-again-button {
    width: 100%;
    padding: 0.8rem;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid var(--gold);
    color: var(--gold-light);
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.pick-again-button:hover {
    background: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.pick-again-button:active {
    transform: scale(0.98);
}

/* ============================================
   DINNER & SNACK CARDS
   ============================================ */

.dinner-card-container,
.snack-card-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    min-height: 200px;
    align-items: center;
}

.result-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(30, 30, 30, 0.8) 100%);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transition: var(--transition);
}

.dinner-card {
    border: 2px solid var(--red);
}

.dinner-card:hover {
    box-shadow: 
        0 12px 40px rgba(196, 30, 58, 0.3),
        0 0 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(196, 30, 58, 0.3);
    border-color: var(--red-light);
}

.snack-card {
    border: 2px solid #40916c;
}

.snack-card:hover {
    box-shadow: 
        0 12px 40px rgba(64, 145, 108, 0.3),
        0 0 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(64, 145, 108, 0.3);
    border-color: #52b788;
}

.result-card.hidden {
    display: none;
    opacity: 0;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.dinner-card .result-title {
    color: var(--red-light);
}

.snack-card .result-title {
    color: #52b788;
}

.result-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dinner-again,
.snack-again {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dinner-again {
    background: rgba(196, 30, 58, 0.15);
    border: 2px solid var(--red);
    color: var(--red-light);
}

.dinner-again:hover {
    background: rgba(196, 30, 58, 0.3);
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.4);
}

.snack-again {
    background: rgba(64, 145, 108, 0.15);
    border: 2px solid #40916c;
    color: #52b788;
}

.snack-again:hover {
    background: rgba(64, 145, 108, 0.3);
    box-shadow: 0 0 15px rgba(64, 145, 108, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    border-top: 2px solid var(--gold);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN - Tablet
   ============================================ */

@media (max-width: 768px) {
    .marquee-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .pick-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .movie-title,
    .result-title {
        font-size: 1.5rem;
    }

    .movie-card,
    .result-card {
        padding: 1.5rem;
        margin-bottom: 100px;
    }

    .daily-quote-section {
        padding: 2rem 1rem;
    }

    .quote-text {
        font-size: 1.2rem;
    }

    .footer-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - Mobile
   ============================================ */

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 0.5rem 2rem;
    }

    .marquee-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .spotlight-left,
    .spotlight-right {
        display: none;
    }

    .main-content {
        padding: 1.5rem 0.5rem 5rem;
    }

    .generator-section {
        padding: 1rem 0;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .pick-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .movie-card,
    .result-card {
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 100px;
    }

    .card-poster-placeholder {
        height: 150px;
        margin-bottom: 1rem;
    }

    .movie-title,
    .result-title {
        font-size: 1.3rem;
    }

    .movie-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .movie-description,
    .result-description {
        font-size: 0.85rem;
    }

    .daily-quote-section {
        padding: 1.5rem 1rem;
    }

    .quote-title {
        font-size: 1rem;
    }

    .quote-text {
        font-size: 1rem;
    }

    .quote-author {
        font-size: 0.85rem;
    }

    .ad-container {
        padding: 0.5rem;
    }

    .ad-placeholder {
        padding: 1rem 0.5rem;
        min-height: 80px;
        font-size: 0.8rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}