/* ============================================
   HOUNTED HOUSE OF PANCAKES - STYLES
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #e50914;
    --accent-hover: #f40612;
    --accent-secondary: #ff6b35;
    --accent-tertiary: #f7931e;
    --border: #2a2a2a;

    /* Typography */
    --font-display: 'Creepster', cursive;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(229, 9, 20, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-merch {
    background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.btn-merch:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(247, 147, 30, 0.4);
}

.btn-merch-small {
    background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-secondary) 100%);
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
}

.btn-merch-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(247, 147, 30, 0.4);
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(229, 9, 20, 0.3);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Static poster background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
        radial-gradient(ellipse at center, rgba(229, 9, 20, 0.15) 0%, transparent 70%),
        url('../assets/images/poster-bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.015)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.015)"/></pattern></defs><rect fill="url(%23grain)" width="100" height="100"/></svg>');
    opacity: 0.3;
    z-index: 2;
    animation: grain 0.5s steps(10) infinite;
    pointer-events: none;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent);
    text-shadow:
        0 0 20px rgba(229, 9, 20, 0.5),
        0 0 40px rgba(229, 9, 20, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.8);
    animation: flicker 4s infinite;
}

.hero-title-image {
    max-width: 100%;
    height: auto;
    width: clamp(300px, 90vw, 800px);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
    animation: titleGlow 4s infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
    41% { filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
    42% { filter: drop-shadow(0 0 15px rgba(229, 9, 20, 0.6)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
    43% { filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
    44% { filter: drop-shadow(0 0 18px rgba(229, 9, 20, 0.55)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
    45% { filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
    92% { filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
    93% { filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.7)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
    94% { filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.5)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)); }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    41% { opacity: 1; }
    42% { opacity: 0.95; }
    43% { opacity: 1; }
    44% { opacity: 0.97; }
    45% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.9; }
    94% { opacity: 1; }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--accent-secondary);
    margin-bottom: 2.5rem;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-poster {
    position: relative;
}

.about-poster img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.about-poster:hover img {
    transform: scale(1.02);
    box-shadow: 0 25px 80px rgba(229, 9, 20, 0.3);
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text em {
    color: var(--accent);
    font-style: normal;
}

.film-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
}

.meta-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f5c518 0%, #e5b015 100%);
    color: #000;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.meta-link svg {
    width: 16px;
    height: 16px;
}

.meta-link:hover {
    transform: translateY(-2px);
}

/* ============================================
   TRAILER SECTION
   ============================================ */
.trailer {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.trailer-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trailer-note a {
    color: var(--accent);
    text-decoration: underline;
}

.trailer-note a:hover {
    color: var(--accent-hover);
}

/* ============================================
   STREAMING SECTION
   ============================================ */
.streaming {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.streaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.streaming-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.streaming-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(229, 9, 20, 0.2);
}

.streaming-logo {
    width: 140px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    padding: 0.5rem;
    transition: var(--transition);
    background: transparent;
}

.streaming-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.streaming-card:hover .streaming-logo {
    transform: scale(1.05);
}

.streaming-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.streaming-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.streaming-arrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   MERCH SECTION
   ============================================ */
.merch {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.merch-banner {
    background: linear-gradient(135deg, rgba(247, 147, 30, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border: 2px solid rgba(247, 147, 30, 0.3);
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.merch-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(247, 147, 30, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.merch-content {
    position: relative;
    z-index: 1;
}

.merch-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--accent-tertiary);
    text-shadow: 0 0 30px rgba(247, 147, 30, 0.4);
}

.merch-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-merch svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   MORE FILMS SECTION (EMBEDDED)
   ============================================ */
.more-films {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.films-embed-wrapper {
    width: 100%;
    height: 1200px;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.films-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.films-embed-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ============================================
   CONNECT SECTION
   ============================================ */
.connect {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 2.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    min-width: 140px;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(229, 9, 20, 0.05) 100%);
}

.social-link svg {
    width: 32px;
    height: 32px;
}

.social-link span {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.social-link:hover span {
    color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-poster {
        order: -1;
    }

    .section-title {
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        margin-bottom: 2rem;
    }

    .about,
    .trailer,
    .streaming,
    .merch,
    .more-films,
    .connect {
        padding: 4rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .merch-banner {
        padding: 3rem 2rem;
    }

    .films-embed-wrapper {
        height: 800px;
    }
}

@media (max-width: 480px) {
    .streaming-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-link {
        flex-direction: row;
        justify-content: center;
        padding: 1.5rem;
        min-width: auto;
    }

    .films-embed-wrapper {
        height: 600px;
    }
}
