/* SEO and Performance Optimized CSS */

/* Critical Above-the-fold styles */
.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Feature cards for homepage */
.feature-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* FAQ Section Styling */
.faq-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #01b4e4, #0d8bc4);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #dee2e6;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #01b4e4;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(1, 180, 228, 0.25);
    border-color: #01b4e4;
}

.accordion-body {
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.7;
}

/* Movie Details SEO Section */
.movie-details-seo {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.movie-details-seo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #01b4e4, #0d8bc4);
}

.movie-details-seo h2,
.movie-details-seo h3 {
    color: #2c3e50;
    font-weight: 700;
}

.movie-details-seo dl.row {
    margin-bottom: 1.5rem;
}

.movie-details-seo dt {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.movie-details-seo dd {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

/* Breadcrumb Enhancement */
.breadcrumb {
    background: rgba(1, 180, 228, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #01b4e4;
    font-weight: 600;
}

.breadcrumb-item a {
    color: #01b4e4;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #0d8bc4;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Section padding for better spacing */
.intro-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.intro-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #01b4e4, transparent);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1rem;
    }
    
    .movie-details-seo dt {
        font-size: 0.9rem;
    }
    
    .movie-details-seo dd {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Print Styles for SEO */
@media print {
    .faq-section,
    .movie-details-seo {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .accordion-button {
        background: #fff !important;
        color: #000 !important;
    }
    
    .breadcrumb {
        background: #fff !important;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
.accordion-button:focus,
.breadcrumb-item a:focus {
    outline: 2px solid #01b4e4;
    outline-offset: 2px;
}

/* Schema.org microdata styling */
[itemscope] {
    position: relative;
}

/* Loading states for better UX */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Core Web Vitals Optimizations */
.feature-card img,
.movie-poster img {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .loading-skeleton {
        animation: none;
        transition: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
}