/* Snarkflix Styles - Movie Review Blog */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    /* Snarkflix Brand Colors */
    --snarkflix-primary: #ff6b35;
    --snarkflix-secondary: #004e89;
    --snarkflix-accent: #ffd23f;
    --snarkflix-dark: #1a1a1a;
    --snarkflix-light: #f8f9fa;
    --snarkflix-gray: #6c757d;
    --snarkflix-white: #ffffff;
    
    /* Typography */
    --snarkflix-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --snarkflix-font-size-base: 16px;
    --snarkflix-font-size-sm: 14px;
    --snarkflix-font-size-lg: 18px;
    --snarkflix-font-size-xl: 24px;
    --snarkflix-font-size-2xl: 32px;
    --snarkflix-font-size-3xl: 48px;
    
    /* Spacing */
    --snarkflix-spacing-xs: 0.25rem;
    --snarkflix-spacing-sm: 0.5rem;
    --snarkflix-spacing-md: 1rem;
    --snarkflix-spacing-lg: 1.5rem;
    --snarkflix-spacing-xl: 2rem;
    --snarkflix-spacing-2xl: 3rem;
    --snarkflix-spacing-3xl: 4rem;
    
    /* Border Radius */
    --snarkflix-radius-sm: 4px;
    --snarkflix-radius-md: 8px;
    --snarkflix-radius-lg: 12px;
    --snarkflix-radius-xl: 16px;
    
    /* Shadows */
    --snarkflix-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --snarkflix-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --snarkflix-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --snarkflix-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --snarkflix-transition: all 0.3s ease;
}

/* Base Typography */
body {
    font-family: var(--snarkflix-font-family);
    font-size: var(--snarkflix-font-size-base);
    line-height: 1.6;
    color: var(--snarkflix-dark);
    background-color: var(--snarkflix-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--snarkflix-primary);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.snarkflix-skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--snarkflix-primary);
    color: var(--snarkflix-white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--snarkflix-radius-sm);
    z-index: 1000;
}

.snarkflix-skip-link:focus {
    top: 6px;
}

/* Header Styles */
.snarkflix-header {
    background: var(--snarkflix-white);
    box-shadow: var(--snarkflix-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.snarkflix-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--snarkflix-spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.snarkflix-logo h1 {
    font-size: var(--snarkflix-font-size-2xl);
    font-weight: 700;
    color: var(--snarkflix-primary);
    margin-bottom: var(--snarkflix-spacing-xs);
}

.snarkflix-logo a {
    text-decoration: none;
    color: inherit;
}

.snarkflix-tagline {
    font-size: var(--snarkflix-font-size-sm);
    color: var(--snarkflix-gray);
    font-weight: 500;
}

.snarkflix-nav-links {
    display: flex;
    gap: var(--snarkflix-spacing-xl);
}

.snarkflix-nav-link {
    text-decoration: none;
    color: var(--snarkflix-dark);
    font-weight: 500;
    transition: var(--snarkflix-transition);
    position: relative;
}

.snarkflix-nav-link:hover {
    color: var(--snarkflix-primary);
}

.snarkflix-nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--snarkflix-primary);
    transition: var(--snarkflix-transition);
}

.snarkflix-nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.snarkflix-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--snarkflix-spacing-sm);
}

.snarkflix-mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--snarkflix-dark);
    margin: 3px 0;
    transition: var(--snarkflix-transition);
}

/* Breadcrumb Navigation */
.snarkflix-breadcrumb {
    background: var(--snarkflix-light);
    padding: var(--snarkflix-spacing-sm) 0;
    border-bottom: 1px solid #e9ecef;
}

.snarkflix-breadcrumb ol {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--snarkflix-spacing-md);
    display: flex;
    list-style: none;
    gap: var(--snarkflix-spacing-sm);
}

.snarkflix-breadcrumb li {
    display: flex;
    align-items: center;
    font-size: var(--snarkflix-font-size-sm);
}

.snarkflix-breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: var(--snarkflix-spacing-sm);
    color: var(--snarkflix-gray);
    font-weight: bold;
}

.snarkflix-breadcrumb a {
    color: var(--snarkflix-primary);
    text-decoration: none;
    transition: var(--snarkflix-transition);
}

.snarkflix-breadcrumb a:hover {
    color: var(--snarkflix-secondary);
    text-decoration: underline;
}

.snarkflix-breadcrumb li[aria-current="page"] {
    color: var(--snarkflix-gray);
    font-weight: 500;
}

/* Hero Section */
.snarkflix-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('images/site-assets/background.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--snarkflix-white);
    padding: var(--snarkflix-spacing-3xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.snarkflix-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--snarkflix-spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--snarkflix-spacing-3xl);
    align-items: center;
}

.snarkflix-hero .snarkflix-hero-title {
    font-size: var(--snarkflix-font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--snarkflix-spacing-lg);
    line-height: 1.2;
    color: var(--snarkflix-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.snarkflix-hero .snarkflix-hero-description {
    font-size: var(--snarkflix-font-size-lg);
    margin-bottom: var(--snarkflix-spacing-xl);
    color: var(--snarkflix-white);
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.snarkflix-hero-cta {
    display: flex;
    gap: var(--snarkflix-spacing-md);
    flex-wrap: wrap;
}

.snarkflix-hero-cta .snarkflix-btn {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.snarkflix-hero .snarkflix-hero-cta .snarkflix-btn-secondary {
    border: 2px solid var(--snarkflix-white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--snarkflix-white);
}

.snarkflix-hero-cta .snarkflix-btn-secondary:hover {
    background: var(--snarkflix-white);
    color: var(--snarkflix-primary);
    text-shadow: none;
}

.snarkflix-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.snarkflix-hero-logo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--snarkflix-accent);
    padding: var(--snarkflix-spacing-lg);
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Button Styles */
.snarkflix-btn {
    display: inline-block;
    padding: var(--snarkflix-spacing-md) var(--snarkflix-spacing-xl);
    border-radius: var(--snarkflix-radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--snarkflix-font-size-base);
    transition: var(--snarkflix-transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.snarkflix-btn-primary {
    background: var(--snarkflix-accent);
    color: var(--snarkflix-dark);
}

.snarkflix-btn-primary:hover {
    background: var(--snarkflix-white);
    transform: translateY(-2px);
    box-shadow: var(--snarkflix-shadow-lg);
}

.snarkflix-btn-secondary {
    background: transparent;
    color: var(--snarkflix-white);
    border-color: var(--snarkflix-white);
}

.snarkflix-btn-secondary:hover {
    background: var(--snarkflix-white);
    color: var(--snarkflix-primary);
}

.snarkflix-btn-outline {
    background: transparent;
    color: var(--snarkflix-primary);
    border-color: var(--snarkflix-primary);
}

.snarkflix-btn-outline:hover {
    background: var(--snarkflix-primary);
    color: var(--snarkflix-white);
}

/* Container */
.snarkflix-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--snarkflix-spacing-md);
}

/* Section Styles */
.snarkflix-section-title {
    font-size: var(--snarkflix-font-size-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--snarkflix-spacing-3xl);
    color: var(--snarkflix-dark);
}

/* Featured Reviews Section */
.snarkflix-featured-reviews {
    padding: var(--snarkflix-spacing-3xl) 0;
    background: var(--snarkflix-light);
}

/* Reviews Header with Inline Sort Dropdown */
.snarkflix-reviews-header {
    text-align: center;
    margin-bottom: var(--snarkflix-spacing-2xl);
}

.snarkflix-reviews-header .snarkflix-section-title {
    display: inline-flex;
    align-items: center;
    gap: var(--snarkflix-spacing-sm);
    margin: 0;
}

.snarkflix-sort-select {
    padding: var(--snarkflix-spacing-xs) var(--snarkflix-spacing-sm);
    border: 2px solid var(--snarkflix-border);
    border-radius: var(--snarkflix-border-radius-sm);
    background: var(--snarkflix-bg-primary);
    color: var(--snarkflix-dark);
    font-size: var(--snarkflix-font-size-2xl);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--snarkflix-transition-fast);
    min-width: 100px;
    text-align: center;
    margin-right: var(--snarkflix-spacing-sm);
}

.snarkflix-sort-select:hover {
    border-color: var(--snarkflix-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.snarkflix-sort-select:focus {
    outline: none;
    border-color: var(--snarkflix-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.snarkflix-sort-select option {
    background: var(--snarkflix-bg-primary);
    color: var(--snarkflix-text-primary);
    padding: var(--snarkflix-spacing-sm);
    font-size: var(--snarkflix-font-size-md);
}

/* Search Container */
.snarkflix-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto var(--snarkflix-spacing-2xl);
    display: flex;
    align-items: center;
}

.snarkflix-search-input {
    width: 100%;
    padding: var(--snarkflix-spacing-md) var(--snarkflix-spacing-lg);
    padding-right: 50px;
    border: 2px solid var(--snarkflix-border);
    border-radius: var(--snarkflix-border-radius-lg);
    background: var(--snarkflix-bg-primary);
    color: var(--snarkflix-text-primary);
    font-size: var(--snarkflix-font-size-md);
    font-family: var(--snarkflix-font-family);
    transition: all var(--snarkflix-transition-fast);
    box-shadow: var(--snarkflix-shadow-sm);
}

.snarkflix-search-input:focus {
    outline: none;
    border-color: var(--snarkflix-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2), var(--snarkflix-shadow-md);
}

.snarkflix-search-input::placeholder {
    color: var(--snarkflix-text-secondary);
    font-style: italic;
}

.snarkflix-clear-search-btn {
    position: absolute;
    right: var(--snarkflix-spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: var(--snarkflix-text-secondary);
    color: var(--snarkflix-bg-primary);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--snarkflix-font-size-lg);
    font-weight: bold;
    transition: all var(--snarkflix-transition-fast);
    line-height: 1;
}

.snarkflix-clear-search-btn:hover {
    background: var(--snarkflix-accent);
    color: var(--snarkflix-dark);
    transform: translateY(-50%) scale(1.1);
}

/* Mobile responsiveness for search */
@media (max-width: 768px) {
    .snarkflix-search-container {
        margin: 0 auto var(--snarkflix-spacing-xl);
        padding: 0 var(--snarkflix-spacing-sm);
    }
    
    .snarkflix-search-input {
        padding: var(--snarkflix-spacing-sm) var(--snarkflix-spacing-md);
        padding-right: 45px;
        font-size: var(--snarkflix-font-size-sm);
    }
    
    .snarkflix-clear-search-btn {
        right: var(--snarkflix-spacing-sm);
        width: 20px;
        height: 20px;
        font-size: var(--snarkflix-font-size-md);
    }
}

/* Social Sharing Styles */
.snarkflix-review-share {
    display: flex;
    gap: var(--snarkflix-spacing-xs);
    margin-top: var(--snarkflix-spacing-sm);
    padding-top: var(--snarkflix-spacing-sm);
    border-top: 1px solid var(--snarkflix-border);
}

.snarkflix-share-btn {
    background: var(--snarkflix-bg-primary);
    border: 1px solid var(--snarkflix-border);
    border-radius: var(--snarkflix-border-radius-sm);
    padding: var(--snarkflix-spacing-xs);
    cursor: pointer;
    transition: all var(--snarkflix-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.snarkflix-share-btn:hover {
    background: var(--snarkflix-accent);
    border-color: var(--snarkflix-accent);
    transform: translateY(-1px);
    box-shadow: var(--snarkflix-shadow-sm);
}

.snarkflix-share-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.snarkflix-share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.snarkflix-share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}


.snarkflix-share-copy:hover {
    background: var(--snarkflix-accent);
    border-color: var(--snarkflix-accent);
    color: var(--snarkflix-dark);
}

/* Share section on review pages */
.snarkflix-review-share-section {
    margin: var(--snarkflix-spacing-2xl) 0;
    padding: var(--snarkflix-spacing-lg);
    background: var(--snarkflix-light);
    border-radius: var(--snarkflix-border-radius-lg);
    text-align: center;
}

.snarkflix-review-share-section h3 {
    margin: 0 0 var(--snarkflix-spacing-md) 0;
    color: var(--snarkflix-text-primary);
    font-size: var(--snarkflix-font-size-lg);
}

.snarkflix-review-share-section .snarkflix-review-share {
    justify-content: center;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.snarkflix-review-share-section .snarkflix-share-btn {
    flex-direction: column;
    gap: var(--snarkflix-spacing-xs);
    min-width: 80px;
    height: auto;
    padding: var(--snarkflix-spacing-sm);
}

.snarkflix-share-text {
    font-size: var(--snarkflix-font-size-xs);
    font-weight: 600;
    line-height: 1;
}

/* Share notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile responsiveness for reviews header */
@media (max-width: 768px) {
    .snarkflix-reviews-header .snarkflix-section-title {
        flex-direction: column;
        gap: var(--snarkflix-spacing-xs);
    }
    
    .snarkflix-sort-select {
        font-size: var(--snarkflix-font-size-lg);
        min-width: 80px;
        margin-right: 0;
        margin-bottom: var(--snarkflix-spacing-xs);
    }
    
    .snarkflix-review-share {
        gap: var(--snarkflix-spacing-xs);
    }
    
    .snarkflix-share-btn {
        min-width: 28px;
        height: 28px;
        padding: 4px;
    }
    
    .snarkflix-share-icon {
        width: 14px;
        height: 14px;
    }
}

.snarkflix-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--snarkflix-spacing-lg);
    margin-bottom: var(--snarkflix-spacing-3xl);
    align-items: stretch;
}

/* Homepage Review Cards */
.snarkflix-reviews-grid .snarkflix-review-card {
    background: var(--snarkflix-white);
    border-radius: var(--snarkflix-radius-md);
    overflow: hidden;
    box-shadow: var(--snarkflix-shadow-sm);
    transition: var(--snarkflix-transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.snarkflix-reviews-grid .snarkflix-review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--snarkflix-shadow-md);
}

.snarkflix-reviews-grid .snarkflix-review-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(45deg, var(--snarkflix-primary), var(--snarkflix-secondary));
    position: relative;
    overflow: hidden;
    margin: 0;
}

.snarkflix-reviews-grid .snarkflix-review-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snarkflix-reviews-grid .snarkflix-review-content {
    padding: var(--snarkflix-spacing-sm);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: var(--snarkflix-spacing-xs);
}

.snarkflix-reviews-grid .snarkflix-review-title {
    font-size: var(--snarkflix-font-size-sm) !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: var(--snarkflix-dark) !important;
    line-height: 1.3 !important;
}

.snarkflix-reviews-grid .snarkflix-review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: var(--snarkflix-font-size-sm);
    color: var(--snarkflix-gray);
    flex-wrap: wrap;
    gap: var(--snarkflix-spacing-xs);
}

.snarkflix-reviews-grid .snarkflix-review-score {
    background: var(--snarkflix-primary);
    color: var(--snarkflix-white);
    padding: 2px var(--snarkflix-spacing-xs);
    border-radius: var(--snarkflix-radius-sm);
    font-weight: 600;
    font-size: var(--snarkflix-font-size-sm);
    white-space: nowrap;
}

.snarkflix-reviews-grid .snarkflix-review-summary {
    color: var(--snarkflix-gray);
    line-height: 1.4;
    margin: 0;
    font-size: var(--snarkflix-font-size-sm);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.snarkflix-reviews-grid .snarkflix-review-tagline {
    font-style: italic;
    color: var(--snarkflix-primary);
    font-weight: 500;
    font-size: var(--snarkflix-font-size-sm);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.snarkflix-load-more {
    text-align: center;
}

/* Categories Section */
.snarkflix-categories {
    padding: var(--snarkflix-spacing-3xl) 0;
    background: var(--snarkflix-white);
}

.snarkflix-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--snarkflix-spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.snarkflix-category-card {
    background: var(--snarkflix-white);
    border-radius: var(--snarkflix-radius-lg);
    padding: var(--snarkflix-spacing-lg);
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--snarkflix-shadow-sm);
    transition: var(--snarkflix-transition);
    border: 2px solid transparent;
}

.snarkflix-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--snarkflix-shadow-lg);
    border-color: var(--snarkflix-primary);
}

.snarkflix-category-image {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--snarkflix-spacing-md);
    border-radius: 50%;
    background: var(--snarkflix-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    overflow: hidden;
}

.snarkflix-category-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--snarkflix-transition);
    position: absolute;
    top: 0;
    left: 0;
}

.snarkflix-category-icon:hover {
    transform: scale(1.1);
}

/* Fallback: if image fails to load, show colored background */
.snarkflix-category-image:not(:has(.snarkflix-category-icon[src])) {
    background: var(--snarkflix-light);
}

/* Category-specific colors */
.action-category { background: linear-gradient(45deg, #ff4757, #ff6b35); }
.adventure-category { background: linear-gradient(45deg, #2ed573, #7bed9f); }
.animation-category { background: linear-gradient(45deg, #ffa502, #ffd32a); }
.comedy-category { background: linear-gradient(45deg, #ff6348, #ff7675); }
.crime-mystery-category { background: linear-gradient(45deg, #2c2c54, #40407a); }
.drama-category { background: linear-gradient(45deg, #6c5ce7, #a29bfe); }
.fantasy-category { background: linear-gradient(45deg, #fd79a8, #fdcb6e); }
.horror-category { background: linear-gradient(45deg, #2d3436, #636e72); }
.scifi-category { background: linear-gradient(45deg, #00b894, #00cec9); }
.thriller-category { background: linear-gradient(45deg, #e17055, #d63031); }
.western-category { background: linear-gradient(45deg, #fdcb6e, #e17055); }
.musical-category { background: linear-gradient(45deg, #fd79a8, #fdcb6e); }
.other-category { background: linear-gradient(45deg, #74b9ff, #0984e3); }

.snarkflix-category-card h3 {
    font-size: var(--snarkflix-font-size-lg);
    font-weight: 600;
    margin-bottom: var(--snarkflix-spacing-sm);
    color: var(--snarkflix-dark);
}

.snarkflix-category-count {
    font-size: var(--snarkflix-font-size-sm);
    color: var(--snarkflix-gray);
}

/* About Section */
.snarkflix-about {
    padding: var(--snarkflix-spacing-3xl) 0;
    background: var(--snarkflix-light);
}

.snarkflix-about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--snarkflix-spacing-3xl);
    align-items: center;
}

.snarkflix-about-text p {
    margin-bottom: var(--snarkflix-spacing-lg);
    font-size: var(--snarkflix-font-size-lg);
    line-height: 1.7;
}

.snarkflix-about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.snarkflix-about-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--snarkflix-accent);
    padding: var(--snarkflix-spacing-lg);
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

/* Footer */
.snarkflix-footer {
    background: var(--snarkflix-dark);
    color: var(--snarkflix-white);
    padding: var(--snarkflix-spacing-3xl) 0 var(--snarkflix-spacing-xl);
}

.snarkflix-footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--snarkflix-spacing-xl);
    align-items: center;
}

.snarkflix-footer-logo h3 {
    font-size: var(--snarkflix-font-size-xl);
    color: var(--snarkflix-primary);
    margin-bottom: var(--snarkflix-spacing-sm);
}

.snarkflix-footer-links {
    display: flex;
    gap: var(--snarkflix-spacing-lg);
    justify-content: center;
}

.snarkflix-footer-links a {
    color: var(--snarkflix-white);
    text-decoration: none;
    transition: var(--snarkflix-transition);
}

.snarkflix-footer-links a:hover {
    color: var(--snarkflix-primary);
}

.snarkflix-footer-social {
    text-align: right;
    color: var(--snarkflix-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .snarkflix-nav-links {
        display: none;
    }
    
    .snarkflix-mobile-menu-toggle {
        display: flex;
    }
    
    .snarkflix-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .snarkflix-hero-title {
        font-size: var(--snarkflix-font-size-2xl);
    }
    
    .snarkflix-hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .snarkflix-about-logo {
        width: 200px;
        height: 200px;
    }
    
    .snarkflix-about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .snarkflix-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--snarkflix-spacing-lg);
    }
    
    .snarkflix-footer-social {
        text-align: center;
    }
    
    .snarkflix-reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .snarkflix-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 400px;
    }
}

/* Large mobile breakpoint */
@media (min-width: 481px) and (max-width: 767px) {
    .snarkflix-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .snarkflix-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 600px;
    }
}

/* Tablet breakpoint */
@media (min-width: 768px) and (max-width: 1024px) {
    .snarkflix-hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .snarkflix-reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .snarkflix-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 800px;
    }
    
    /* Tablet adjustments for review hero images */
    .snarkflix-review-hero-image {
        height: 70vh; /* Larger height on tablet */
    }
}

@media (max-width: 480px) {
    .snarkflix-container {
        padding: 0 var(--snarkflix-spacing-sm);
    }
    
    .snarkflix-hero {
        min-height: 60vh;
        padding: 2rem 0;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .snarkflix-hero-logo {
        max-width: 200px;
        height: auto;
    }
    
    .snarkflix-hero-title {
        font-size: var(--snarkflix-font-size-xl);
    }
    
    .snarkflix-hero-description {
        font-size: var(--snarkflix-font-size-base);
    }
    
    .snarkflix-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .snarkflix-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .snarkflix-about-logo {
        width: 150px;
        height: 150px;
    }
    
    /* Mobile adjustments for review hero images */
    .snarkflix-review-hero-image {
        height: 60vh; /* Larger height on mobile */
    }
}

/* Print Styles */
@media print {
    .snarkflix-header,
    .snarkflix-footer,
    .snarkflix-hero-cta,
    .snarkflix-load-more {
        display: none;
    }
    
    .snarkflix-hero {
        background: none !important;
        color: var(--snarkflix-dark) !important;
    }
    
    .snarkflix-hero-title,
    .snarkflix-hero-description {
        color: var(--snarkflix-dark) !important;
    }
    
    .snarkflix-review-card {
        break-inside: avoid;
        margin-bottom: var(--snarkflix-spacing-lg);
        /* Print-specific overrides only */
        display: block !important;
        height: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --snarkflix-primary: #000000;
        --snarkflix-secondary: #000000;
        --snarkflix-accent: #ffff00;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .snarkflix-bernedoodle-illustration,
    .snarkflix-bernedoodle-about {
        animation: none;
    }
}

/* Review Page Styles */
.snarkflix-breadcrumb {
    background: var(--snarkflix-light);
    padding: var(--snarkflix-spacing-md) 0;
    border-bottom: 1px solid #e0e0e0;
}

.snarkflix-breadcrumb-list {
    display: flex;
    list-style: none;
    gap: var(--snarkflix-spacing-sm);
    font-size: var(--snarkflix-font-size-sm);
}

.snarkflix-breadcrumb-list li {
    display: flex;
    align-items: center;
}

.snarkflix-breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin-left: var(--snarkflix-spacing-sm);
    color: var(--snarkflix-gray);
}

.snarkflix-breadcrumb-list a {
    color: var(--snarkflix-primary);
    text-decoration: none;
    transition: var(--snarkflix-transition);
}

.snarkflix-breadcrumb-list a:hover {
    text-decoration: underline;
}

.snarkflix-review-page {
    min-height: 100vh;
}

.snarkflix-review-article {
    max-width: 800px;
    margin: 0 auto;
}

.snarkflix-review-header {
    padding: var(--snarkflix-spacing-3xl) 0 var(--snarkflix-spacing-xl);
    background: var(--snarkflix-white);
}

.snarkflix-review-meta {
    display: flex;
    gap: var(--snarkflix-spacing-lg);
    margin-bottom: var(--snarkflix-spacing-lg);
    font-size: var(--snarkflix-font-size-sm);
    color: var(--snarkflix-gray);
    flex-wrap: wrap;
}

.snarkflix-review-category {
    background: var(--snarkflix-primary);
    color: var(--snarkflix-white);
    padding: var(--snarkflix-spacing-xs) var(--snarkflix-spacing-sm);
    border-radius: var(--snarkflix-radius-sm);
    font-weight: 600;
}

.snarkflix-review-title {
    font-size: var(--snarkflix-font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--snarkflix-spacing-xl);
    color: var(--snarkflix-dark);
    line-height: 1.2;
}

.snarkflix-review-score-section {
    margin-bottom: var(--snarkflix-spacing-xl);
}

.snarkflix-ai-score {
    display: inline-flex;
    align-items: center;
    gap: var(--snarkflix-spacing-sm);
    background: var(--snarkflix-light);
    padding: var(--snarkflix-spacing-md) var(--snarkflix-spacing-lg);
    border-radius: var(--snarkflix-radius-lg);
    border-left: 4px solid var(--snarkflix-primary);
}

.snarkflix-ai-score-label {
    font-weight: 600;
    color: var(--snarkflix-dark);
}

.snarkflix-ai-score-value {
    font-size: var(--snarkflix-font-size-xl);
    font-weight: 700;
    color: var(--snarkflix-primary);
}

.snarkflix-review-summary {
    background: var(--snarkflix-light);
    padding: var(--snarkflix-spacing-lg);
    border-radius: var(--snarkflix-radius-lg);
    margin-bottom: var(--snarkflix-spacing-lg);
}

.snarkflix-review-summary h2 {
    font-size: var(--snarkflix-font-size-lg);
    font-weight: 600;
    margin-bottom: var(--snarkflix-spacing-sm);
    color: var(--snarkflix-dark);
}

.snarkflix-review-summary p {
    margin: 0;
    line-height: 1.6;
}

.snarkflix-review-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: var(--snarkflix-spacing-md);
    border-radius: var(--snarkflix-radius-md);
    font-size: var(--snarkflix-font-size-sm);
    color: #856404;
    margin-bottom: var(--snarkflix-spacing-xl);
}

.snarkflix-review-hero-image {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: var(--snarkflix-spacing-3xl);
    position: relative;
    height: 100vh; /* True full-screen height */
    overflow: hidden;
}

/* Image optimization and layout shift prevention */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.snarkflix-review-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container for full-screen effect */
    border-radius: 0;
    display: block;
}

.snarkflix-review-img-inline {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: var(--snarkflix-spacing-lg) auto;
    border-radius: var(--snarkflix-radius-md);
    /* Fallback for browsers that don't support aspect-ratio */
    height: 300px;
    /* Modern browsers will use aspect-ratio */
    aspect-ratio: 400 / 300; /* Prevent layout shift */
}

.snarkflix-review-hero-image .snarkflix-review-tagline {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--snarkflix-white);
    padding: var(--snarkflix-spacing-lg) var(--snarkflix-spacing-xl);
    border-radius: var(--snarkflix-radius-lg);
    font-size: var(--snarkflix-font-size-xl);
    font-weight: 600;
    text-align: center;
    max-width: 90%;
    backdrop-filter: blur(15px);
    box-shadow: var(--snarkflix-shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.snarkflix-review-hero-image .snarkflix-review-tagline blockquote {
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

/* Hide taglines in review cards when on review page */
.snarkflix-review-page .snarkflix-review-card .snarkflix-review-tagline {
    display: none;
}

.snarkflix-review-content {
    padding: var(--snarkflix-spacing-3xl) 0;
}

.snarkflix-review-tagline {
    margin-bottom: var(--snarkflix-spacing-3xl);
    text-align: center;
}

.snarkflix-review-tagline blockquote {
    font-size: var(--snarkflix-font-size-xl);
    font-style: italic;
    color: var(--snarkflix-primary);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    padding: var(--snarkflix-spacing-lg);
    background: var(--snarkflix-light);
    border-radius: var(--snarkflix-radius-lg);
    border-left: 4px solid var(--snarkflix-primary);
}

.snarkflix-review-text {
    margin-bottom: var(--snarkflix-spacing-3xl);
}

.snarkflix-review-text p {
    font-size: var(--snarkflix-font-size-lg);
    line-height: 1.7;
    margin-bottom: var(--snarkflix-spacing-lg);
    color: var(--snarkflix-dark);
}

.snarkflix-review-image {
    margin: var(--snarkflix-spacing-3xl) 0;
    text-align: center;
}

.snarkflix-review-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--snarkflix-radius-lg);
    box-shadow: var(--snarkflix-shadow-md);
    object-fit: contain;
    aspect-ratio: auto;
}

/* Inline images within review content */
.snarkflix-review-image-inline {
    margin: var(--snarkflix-spacing-2xl) 0;
    text-align: center;
}

.snarkflix-review-img-inline {
    max-width: 100%;
    height: auto;
    border-radius: var(--snarkflix-radius-lg);
    box-shadow: var(--snarkflix-shadow-md);
    object-fit: contain;
    aspect-ratio: auto;
    /* Maintain original aspect ratio without forcing dimensions */
    max-height: 500px;
    width: auto;
}

.snarkflix-review-image-caption {
    font-size: var(--snarkflix-font-size-sm);
    color: var(--snarkflix-gray);
    font-style: italic;
    margin-top: var(--snarkflix-spacing-sm);
}

.snarkflix-review-trailer {
    margin: var(--snarkflix-spacing-3xl) 0;
    text-align: center;
}

.snarkflix-review-trailer h3 {
    font-size: var(--snarkflix-font-size-xl);
    font-weight: 600;
    margin-bottom: var(--snarkflix-spacing-lg);
    color: var(--snarkflix-dark);
}

.snarkflix-youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: var(--snarkflix-radius-lg);
    box-shadow: var(--snarkflix-shadow-lg);
}

.snarkflix-youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.snarkflix-related-reviews {
    background: var(--snarkflix-light);
    padding: var(--snarkflix-spacing-3xl) 0;
}

/* Mobile Menu Styles */
.snarkflix-nav-links.snarkflix-mobile-menu-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--snarkflix-white);
    flex-direction: column;
    padding: var(--snarkflix-spacing-lg);
    box-shadow: var(--snarkflix-shadow-lg);
    border-top: 1px solid #e0e0e0;
}

/* Category Active State */
.snarkflix-category-active {
    border-color: var(--snarkflix-primary) !important;
    background: var(--snarkflix-light) !important;
}


/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --snarkflix-dark: #ffffff;
        --snarkflix-light: #1a1a1a;
        --snarkflix-white: #2d2d2d;
        --snarkflix-gray: #a0a0a0;
    }
    
    /* Override white for hero section to maintain readability */
    .snarkflix-hero {
        --snarkflix-white: #ffffff;
    }
    
    .snarkflix-review-card {
        background: var(--snarkflix-white) !important;
    }
    
    .snarkflix-category-card {
        background: var(--snarkflix-white);
    }
    
    .snarkflix-review-disclaimer {
        background: #3d2f00;
        border-color: #6b4c00;
        color: #ffd700;
    }
    
    /* Share button dark mode fixes */
    .snarkflix-share-btn {
        background: var(--snarkflix-white);
        border-color: var(--snarkflix-gray);
        color: var(--snarkflix-dark);
    }
    
    .snarkflix-share-icon {
        fill: var(--snarkflix-dark);
    }
    
    .snarkflix-share-text {
        color: var(--snarkflix-dark);
    }
    
    .snarkflix-review-share-section {
        background: var(--snarkflix-white);
        border-color: var(--snarkflix-gray);
    }
}

/* Loading States */
.snarkflix-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--snarkflix-spacing-xl);
    text-align: center;
}

.snarkflix-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--snarkflix-light);
    border-top: 4px solid var(--snarkflix-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--snarkflix-spacing-md);
}

.snarkflix-loading-text {
    color: var(--snarkflix-gray);
    font-size: var(--snarkflix-font-size-sm);
    font-weight: 500;
}

.snarkflix-image-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.snarkflix-search-loading {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--snarkflix-white);
    border: 1px solid var(--snarkflix-light);
    border-radius: var(--snarkflix-radius-md);
    box-shadow: var(--snarkflix-shadow-lg);
    z-index: 100;
}

.snarkflix-reviews-loading {
    grid-column: 1 / -1;
    justify-self: center;
    margin: var(--snarkflix-spacing-3xl) 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Handling Styles */
.snarkflix-error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--snarkflix-white);
    border: 2px solid #e74c3c;
    border-radius: var(--snarkflix-radius-lg);
    box-shadow: var(--snarkflix-shadow-xl);
    z-index: 1000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.snarkflix-error-content {
    padding: var(--snarkflix-spacing-lg);
}

.snarkflix-error-content h3 {
    color: #e74c3c;
    margin-bottom: var(--snarkflix-spacing-sm);
    font-size: var(--snarkflix-font-size-lg);
}

.snarkflix-error-content p {
    color: var(--snarkflix-dark);
    margin-bottom: var(--snarkflix-spacing-md);
    line-height: 1.5;
}

.snarkflix-error-state {
    text-align: center;
    padding: var(--snarkflix-spacing-3xl);
    background: var(--snarkflix-light);
    border-radius: var(--snarkflix-radius-lg);
    border: 2px dashed var(--snarkflix-gray);
}

.snarkflix-error-state h3 {
    color: #e74c3c;
    margin-bottom: var(--snarkflix-spacing-md);
    font-size: var(--snarkflix-font-size-xl);
}

.snarkflix-error-state p {
    color: var(--snarkflix-gray);
    margin-bottom: var(--snarkflix-spacing-lg);
    font-size: var(--snarkflix-font-size-lg);
}

.snarkflix-image-error {
    opacity: 0.5;
    filter: grayscale(100%);
    background: var(--snarkflix-light);
    border: 2px dashed var(--snarkflix-gray);
}

.snarkflix-image-failed {
    opacity: 0.3;
    filter: grayscale(100%);
    background: var(--snarkflix-light);
    border: 2px dashed var(--snarkflix-gray);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snarkflix-image-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark mode error styles */
@media (prefers-color-scheme: dark) {
    .snarkflix-error-message {
        background: var(--snarkflix-white);
        border-color: #e74c3c;
    }
    
    .snarkflix-error-content h3 {
        color: #e74c3c;
    }
    
    .snarkflix-error-content p {
        color: var(--snarkflix-dark);
    }
    
    .snarkflix-error-state {
        background: var(--snarkflix-white);
        border-color: var(--snarkflix-gray);
    }
    
    .snarkflix-error-state h3 {
        color: #e74c3c;
    }
    
    .snarkflix-error-state p {
        color: var(--snarkflix-gray);
    }
}
