/* ============================================
   Bedtime Histories Website Styles
   Theme: Night sky, classical history, calming
   ============================================ */

/* === Global Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette matching banner */
    --night-blue: #0a1628;
    --deep-blue: #1a2942;
    --sky-blue: #2d4263;
    --gold: #d4af37;
    --cream: #f5e6d3;
    --white: #ffffff;
    --text-dark: #1a1a1a;
}

body {
    font-family: 'Lora', serif;
    background: var(--night-blue);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

/* === Starfield Background === */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #0a1628 0%, #1a2942 50%, #2d4263 100%);
    z-index: -1;
}

.starfield::before,
.starfield::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60px 70px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 50px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 130px 80px, white, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 10px, white, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.5;
    animation: twinkle 5s infinite;
}

.starfield::after {
    background-size: 300px 300px;
    opacity: 0.3;
    animation: twinkle 7s infinite reverse;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* === Layout === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

/* === Laurel Divider === */
.laurel-divider {
    width: 100px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 30px;
    position: relative;
}

.laurel-divider::before,
.laurel-divider::after {
    content: '❦';
    position: absolute;
    color: var(--gold);
    font-size: 20px;
    top: -10px;
}

.laurel-divider::before {
    left: -30px;
}

.laurel-divider::after {
    right: -30px;
}

/* === Hero Section === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(42, 66, 99, 0.3) 0%, transparent 70%);
}

.logo {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 4rem;
    color: var(--cream);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.tagline {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-style: italic;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 40px;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* === CTA Button === */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, #c19a2e 100%);
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.cta-large {
    padding: 20px 60px;
    font-size: 1.3rem;
}

/* === About Section === */
.about {
    background: rgba(26, 41, 66, 0.4);
    backdrop-filter: blur(10px);
}

.about h2 {
    font-size: 3rem;
    text-align: center;
    color: var(--cream);
    margin-bottom: 30px;
}

.intro {
    font-size: 1.3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--cream);
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature {
    text-align: center;
    padding: 40px 30px;
    background: rgba(42, 66, 99, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.feature p {
    color: var(--cream);
    opacity: 0.8;
}

/* === Videos Section === */
.videos {
    background: transparent;
}

.videos h2 {
    font-size: 3rem;
    text-align: center;
    color: var(--cream);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 50px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-placeholder {
    background: rgba(42, 66, 99, 0.4);
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 80px 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.placeholder-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.video-placeholder h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.video-placeholder p {
    color: var(--cream);
    opacity: 0.7;
    font-size: 1.1rem;
}

/* === Subscribe Section === */
.subscribe {
    background: radial-gradient(ellipse at center, rgba(42, 66, 99, 0.4) 0%, transparent 70%);
    text-align: center;
}

.subscribe h2 {
    font-size: 3rem;
    color: var(--cream);
    margin-bottom: 20px;
}

/* === Footer === */
footer {
    background: rgba(10, 22, 40, 0.8);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.footer-text {
    color: var(--cream);
    opacity: 0.6;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--cream);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* === Animations === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .about h2,
    .videos h2,
    .subscribe h2 {
        font-size: 2rem;
    }

    .intro {
        font-size: 1.1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .cta-large {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 100px;
        height: 100px;
    }

    .title {
        font-size: 2rem;
    }

    .feature-icon {
        font-size: 3rem;
    }
}
