/**
 * About Story Section Component Styles
 * Content-focused about section with story and image
 */

/* About Story Section Base */
.about-story-section {
    position: relative;
}

/* About Story Title */
.about-story-title {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-story-section.bg-gray-900 .about-story-title {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Story Content Animations */
.story-content {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.story-image {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prose Styling */
.story-content .prose,
.about-story-section .prose {
    color: inherit;
}

.story-content .prose p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.story-content .prose p:last-child {
    margin-bottom: 0;
}

/* Story Image Overlay Effect */
.story-image .relative::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.05), rgba(29, 78, 216, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-image:hover .relative::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .story-content,
    .story-image {
        animation: fadeInUp 0.6s ease-out forwards;
        animation-delay: 0.2s;
    }
}

@media (max-width: 768px) {
    .about-story-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .story-image .h-96 {
        height: 16rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .story-content,
    .story-image {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .story-image .relative::after {
        transition: none;
    }
}

/* Focus Visible for Better Accessibility */
.about-story-section a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .about-story-title {
        -webkit-text-fill-color: #1f2937;
        color: #1f2937;
    }
    
    .about-story-section.bg-gray-900 .about-story-title {
        -webkit-text-fill-color: #f3f4f6;
        color: #f3f4f6;
    }
}

/* Print Styles */
@media print {
    .about-story-section {
        background: white !important;
        color: black !important;
    }
    
    .story-image {
        break-inside: avoid;
    }
}

/* Loading State */
.about-story-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

.about-story-section.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
.story-content::-webkit-scrollbar,
.about-story-section .prose::-webkit-scrollbar {
    width: 6px;
}

.story-content::-webkit-scrollbar-track,
.about-story-section .prose::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.story-content::-webkit-scrollbar-thumb,
.about-story-section .prose::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.story-content::-webkit-scrollbar-thumb:hover,
.about-story-section .prose::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}