/* Story Page Styles — inherits variables from style.css */

/* Story Hero */
.story-hero {
    background: var(--gradient-primary);
    padding: 80px 0;
    margin-top: 72px;
    text-align: center;
}

.story-title {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.story-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Story Content */
.story-content {
    padding: 80px 0;
}

.story-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Author Section */
.author-section {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 48px;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-title {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.author-links {
    display: flex;
    gap: 16px;
}

.author-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity var(--transition-base);
}

.author-link:hover {
    opacity: 0.8;
}

/* Story Text */
.story-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.story-text h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.story-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--gray-700);
}

.story-text strong {
    font-weight: 600;
    color: var(--gray-900);
}

.story-list {
    margin: 24px 0 32px 24px;
}

.story-list li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--gray-700);
}

.story-list li strong {
    color: var(--gray-900);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(88, 86, 214, 0.05));
    border-left: 4px solid var(--primary);
    padding: 24px;
    margin: 32px 0;
    border-radius: var(--radius-lg);
}

.highlight-box p {
    font-size: 20px;
    font-style: italic;
    color: var(--gray-800);
    margin: 0;
}

/* Quote Section */
.quote-section {
    margin: 48px 0;
    padding: 32px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.quote-section blockquote {
    font-size: 20px;
    font-style: italic;
    color: var(--gray-800);
    border-left: none;
    margin: 0;
    position: relative;
}

.quote-section blockquote::before {
    content: '"';
    font-size: 60px;
    color: var(--primary);
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.3;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-item {
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
}

.feature-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
    transform: translateY(-2px);
}

.feature-item h3 {
    color: var(--primary);
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 15px;
    margin: 0;
}

/* Closing Section */
.closing-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid var(--gray-200);
}

.cta-section {
    text-align: center;
    margin-top: 48px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(88, 86, 214, 0.05));
    border-radius: var(--radius-lg);
}

.cta-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray-600);
}


/* Responsive */
@media (max-width: 768px) {
    .story-title {
        font-size: 36px;
    }
    
    .story-subtitle {
        font-size: 18px;
    }
    
    .author-section {
        flex-direction: column;
        text-align: center;
    }
    
    .author-photo {
        width: 100px;
        height: 100px;
    }
    
    .story-text h2 {
        font-size: 28px;
    }
    
    .story-text p {
        font-size: 16px;
    }
    
    .highlight-box p,
    .quote-section blockquote {
        font-size: 18px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* ===== Dark Mode Overrides ===== */
@media (prefers-color-scheme: dark) {
    /* Story hero: explicit gradient for dark mode */
    .story-hero {
        background: linear-gradient(135deg, #3A2D6E 0%, #5C2D82 100%);
    }

    /* Highlight box: increase opacity for visibility */
    .highlight-box {
        background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(125, 122, 255, 0.1));
    }

    /* CTA section: increase opacity */
    .cta-section {
        background: linear-gradient(135deg, rgba(10, 132, 255, 0.1), rgba(125, 122, 255, 0.1));
    }

    /* Author photo: stronger shadow */
    .author-photo {
        border-color: var(--gray-200);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    /* Feature item hover */
    .feature-item:hover {
        box-shadow: 0 4px 12px rgba(10, 132, 255, 0.2);
    }
}