/* ===================================
   BEDTIME STORIES PAGE STYLES
   =================================== */

/* Variables */
:root {
    --primary-green: #2e7d32;
    --primary-green-light: #4caf50;
    --primary-green-dark: #1b5e20;
    --accent-green: #81c784;
    --bg-green-light: #e8f5e9;
    --bg-green-lighter: #f1f8e9;
    
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    
    --white: #ffffff;
    --off-white: #fafafa;
    --border-light: #e0e0e0;
    
    --bedtime-purple: #7e57c2;
    --bedtime-blue: #5c6bc0;
    --bedtime-night: #1a237e;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* ===================================
   HERO SECTION
   =================================== */

.bedtime-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    position: relative;
    overflow: hidden;
}

.bedtime-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(126, 87, 194, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(92, 107, 192, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bedtime-hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bedtime-hero-text {
    animation: fadeInUp 0.8s ease;
}

.bedtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    color: var(--bedtime-purple);
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.bedtime-badge i {
    font-size: 16px;
}

.bedtime-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.bedtime-hero-title .highlight {
    background: linear-gradient(135deg, var(--bedtime-purple) 0%, var(--bedtime-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bedtime-hero-description {
    font-size: 20px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 32px;
}

.bedtime-hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.bedtime-hero-actions .btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bedtime-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--bedtime-purple);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-medium);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.bedtime-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bedtime-story-preview {
    position: relative;
    animation: fadeInRight 0.8s ease;
}

.bedtime-book-img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 10px 40px rgba(126, 87, 194, 0.3),
        -8px 0 20px rgba(126, 87, 194, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-normal);
}

.bedtime-book-img:hover {
    transform: perspective(1000px) rotateY(-2deg) translateY(-5px);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
}

.star-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 50%;
    left: 5%;
    animation-delay: 1s;
}

.star-3 {
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.cloud-1 {
    top: 30%;
    right: 5%;
    animation-delay: 1.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* ===================================
   BENEFITS BAR
   =================================== */

.benefits-bar {
    padding: 48px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.benefits-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.benefit-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.benefit-bar-item i {
    font-size: 32px;
    color: var(--bedtime-purple);
}

.benefit-bar-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===================================
   PROBLEM/SOLUTION SECTION
   =================================== */

.bedtime-problem-solution {
    padding: 80px 0;
    background: var(--off-white);
}

.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.problem-column,
.solution-column {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.solution-column {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
    border: 2px solid var(--bedtime-purple);
    position: relative;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
}

.column-header.highlighted {
    border-bottom-color: var(--bedtime-purple);
    position: relative;
}

.column-header i {
    font-size: 28px;
}

.problem-column .column-header i {
    color: #ef5350;
}

.solution-column .column-header i {
    color: var(--bedtime-purple);
}

.column-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.header-badge {
    position: absolute;
    top: -12px;
    right: 0;
    background: var(--bedtime-purple);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.problem-list,
.solution-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.problem-list li,
.solution-list li {
    display: flex;
    gap: 16px;
}

.problem-list i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
    color: #ef5350;
    font-size: 20px;
}

.solution-list i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--bedtime-purple);
    font-size: 20px;
}

.problem-list strong,
.solution-list strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.problem-list p,
.solution-list p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */

.bedtime-how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.work-step {
    position: relative;
    text-align: center;
}

.step-number-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--bedtime-purple);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 24px auto 20px;
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--bedtime-purple);
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-description {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-visual {
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.step-visual img {
    width: 100%;
    display: block;
    transition: transform var(--transition-normal);
}

.work-step:hover .step-visual img {
    transform: scale(1.05);
}

/* ===================================
   FEATURES SECTION
   =================================== */

.bedtime-features {
    padding: 80px 0;
    background: var(--off-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bedtime-purple);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--bedtime-purple) 0%, var(--bedtime-blue) 100%);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===================================
   SPECIAL NEEDS SECTION
   =================================== */

.special-needs {
    padding: 80px 0;
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
}

.special-needs-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.special-needs-text {
    animation: fadeInUp 0.8s ease;
}

.special-needs-description {
    font-size: 18px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 32px;
}

.special-needs-list {
    list-style: none;
    margin-bottom: 32px;
}

.special-needs-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.special-needs-list i {
    color: var(--bedtime-purple);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 4px;
}

.special-needs-list strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.special-needs-list p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.5;
}

.special-needs-visual {
    display: flex;
    justify-content: center;
}

.special-needs-visual img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   BENEFITS DETAILED SECTION
   =================================== */

.bedtime-benefits-detailed {
    padding: 80px 0;
    background: var(--white);
}

.benefits-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-detailed-card {
    background: var(--off-white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    position: relative;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.benefit-detailed-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bedtime-purple);
    background: var(--white);
}

.benefit-number {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 48px;
    font-weight: 800;
    color: rgba(126, 87, 194, 0.1);
    line-height: 1;
}

.benefit-detailed-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.benefit-detailed-text {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */

.bedtime-testimonials {
    padding: 80px 0;
    background: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card.featured {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
    border-color: var(--bedtime-purple);
}

.testimonial-rating {
    color: #ffa726;
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   STORY EXAMPLES SECTION
   =================================== */

.story-examples {
    padding: 80px 0;
    background: var(--white);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.example-card {
    background: var(--off-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--bedtime-purple);
}

.example-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.example-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.example-card:hover .example-image img {
    transform: scale(1.1);
}

.example-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 24px 8px;
}

.example-description {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0 24px 24px;
}

/* ===================================
   FAQ SECTION
   =================================== */

.bedtime-faq {
    padding: 80px 0;
    background: var(--off-white);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.faq-item.active {
    background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
    border-color: var(--bedtime-purple);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(126, 87, 194, 0.05);
}

.faq-question-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 20px;
}

.faq-icon {
    font-size: 24px;
    color: var(--bedtime-purple);
    font-weight: 300;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 32px 24px;
    display: none;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-medium);
}

/* ===================================
   CTA SECTION
   =================================== */

.bedtime-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bedtime-night) 0%, var(--bedtime-purple) 100%);
    position: relative;
    overflow: hidden;
}

.bedtime-cta::before {
    content: '⭐';
    position: absolute;
    font-size: 120px;
    opacity: 0.1;
    top: 20%;
    right: 10%;
    animation: twinkle 3s ease-in-out infinite;
}

.bedtime-cta::after {
    content: '✨';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    bottom: 20%;
    left: 10%;
    animation: twinkle 3s ease-in-out infinite 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.bedtime-cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-moon-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.bedtime-cta-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.bedtime-cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.bedtime-cta-actions {
    margin-bottom: 32px;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--white);
    color: var(--bedtime-purple);
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.cta-features i {
    color: #81c784;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 1024px) {
    .bedtime-hero-title {
        font-size: 48px;
    }
    
    .how-it-works-grid,
    .features-grid,
    .benefits-detailed-grid,
    .testimonials-grid,
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-bar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bedtime-hero {
        padding: 80px 0 60px;
    }
    
    .bedtime-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .bedtime-hero-title {
        font-size: 40px;
    }
    
    .bedtime-hero-description {
        font-size: 18px;
    }
    
    .bedtime-hero-actions {
        flex-direction: column;
    }
    
    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        justify-content: center;
    }
    
    .bedtime-stats {
        justify-content: center;
    }
    
    .stat-divider {
        display: none;
    }
    
    .floating-elements {
        display: none;
    }
    
    .benefits-bar-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .problem-solution-grid {
        grid-template-columns: 1fr;
    }
    
    .how-it-works-grid,
    .features-grid,
    .benefits-detailed-grid,
    .testimonials-grid,
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .special-needs-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .special-needs-visual {
        order: -1;
    }
    
    .bedtime-cta-title {
        font-size: 36px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .bedtime-hero-title {
        font-size: 32px;
    }
    
    .bedtime-hero-description {
        font-size: 16px;
    }
    
    .section-title-large {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .benefit-bar-item i {
        font-size: 28px;
    }
    
    .benefit-bar-item span {
        font-size: 14px;
    }
    
    .problem-column,
    .solution-column,
    .feature-card,
    .benefit-detailed-card,
    .testimonial-card {
        padding: 24px;
    }
    
    .faq-question {
        padding: 20px 24px;
    }
    
    .faq-question-text {
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 24px 20px;
    }
    
    .bedtime-cta-title {
        font-size: 28px;
    }
    
    .cta-moon-icon {
        font-size: 48px;
    }
    
    .btn-cta-primary {
        padding: 16px 32px;
        font-size: 16px;
    }
}

/* ===================================
   UTILITY ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth Scroll */
html {
    scroll-padding-top: 80px;
}