/* ==========================================================================
   REVVEDUPCARS 3.0 REDESIGN - MODERN AUTOMOTIVE MAGAZINE EXPERIENCE
   ==========================================================================
   A complete UI/UX overhaul focusing on:
   - Layout & Visual Hierarchy
   - Typography & Color Scheme
   - Navigation & Search
   - Mobile Responsiveness
   - Rich Media & Interactive Features
   - Community & Engagement
   ========================================================================== */

/* ==========================================================================
   1. TYPOGRAPHY SYSTEM
   ========================================================================== */

/* Google Fonts loaded via wp_enqueue_style() in functions.php for better performance */

:root {
    /* Font Families */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.813rem);
    --text-sm: clamp(0.813rem, 0.75rem + 0.3vw, 0.875rem);
    --text-base: clamp(0.938rem, 0.875rem + 0.3vw, 1rem);
    --text-lg: clamp(1.063rem, 1rem + 0.3vw, 1.125rem);
    --text-xl: clamp(1.25rem, 1.125rem + 0.5vw, 1.375rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 1.75rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2vw, 3rem);
    --text-5xl: clamp(3rem, 2rem + 3vw, 4rem);
    
    /* Line Heights */
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;
    
    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
}

/* Base Typography */
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    font-weight: 400;
    letter-spacing: var(--tracking-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.revved-heading {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin: 0 0 0.5em;
}

h1, .text-5xl { font-size: var(--text-5xl); }
h2, .text-4xl { font-size: var(--text-4xl); }
h3, .text-3xl { font-size: var(--text-3xl); }
h4, .text-2xl { font-size: var(--text-2xl); }
h5, .text-xl { font-size: var(--text-xl); }
h6, .text-lg { font-size: var(--text-lg); }

/* Editorial Typography Elements */
.drop-cap::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.1rem;
    color: var(--revved-accent);
}

.pull-quote {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    font-style: italic;
    line-height: var(--leading-snug);
    color: var(--revved-text-secondary);
    border-left: 4px solid var(--revved-accent);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: var(--revved-bg-tertiary);
    position: relative;
}

.pull-quote::before {
    content: '"';
    font-size: 4rem;
    font-family: var(--font-display);
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    color: var(--revved-accent);
    opacity: 0.3;
}

/* Category Labels - All Caps */
.category-label,
.card-category,
.related-category,
.story-category-badge {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--revved-accent);
}

/* ==========================================================================
   2. ENHANCED COLOR SYSTEM
   ========================================================================== */

:root {
    /* Performance-Inspired Accent Colors */
    --revved-accent: #C5D631;
    --revved-accent-dark: #9eb029;
    --revved-accent-light: #d4e254;
    --revved-accent-glow: rgba(197, 214, 49, 0.15);
    
    /* Secondary Accent - Racing Red */
    --revved-red: #E53935;
    --revved-red-dark: #C62828;
    --revved-red-light: #EF5350;
    
    /* Performance Orange */
    --revved-orange: #FF6D00;
    --revved-orange-light: #FF9100;
    
    /* Electric Blue - For EV Content */
    --revved-electric: #00B0FF;
    --revved-electric-dark: #0091EA;
    
    /* Status Colors */
    --revved-success: #4CAF50;
    --revved-warning: #FFC107;
    --revved-error: #F44336;
    
    /* Gradient Backgrounds */
    --gradient-hero: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
    --gradient-card: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    --gradient-accent: linear-gradient(135deg, var(--revved-accent) 0%, var(--revved-accent-light) 100%);
    
    /* Shadows - Enhanced */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px var(--revved-accent-glow);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   3. ENHANCED LAYOUT & VISUAL HIERARCHY
   ========================================================================== */

/* Container with better max-width */
.revved-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

@media (max-width: 768px) {
    .revved-container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

/* Section Spacing */
.revved-section {
    padding: var(--space-4xl) 0;
}

.revved-section-compact {
    padding: var(--space-2xl) 0;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--revved-border-color);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: var(--space-md);
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--revved-accent);
    border-radius: var(--radius-full);
}

.section-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--revved-accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition-fast);
}

.section-link:hover {
    color: var(--revved-accent-dark);
    gap: var(--space-sm);
}

/* ==========================================================================
   4. HERO CAROUSEL - Cinematic Featured Stories
   ========================================================================== */

.revved-hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    background: var(--revved-bg-secondary);
}

.hero-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-3xl);
    max-width: 800px;
}

.hero-slide-category {
    display: inline-block;
    background: var(--revved-accent);
    color: #000;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.hero-slide-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--space-md);
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-slide-excerpt {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.9);
    margin: 0 0 var(--space-lg);
    max-width: 600px;
    line-height: var(--leading-relaxed);
}

.hero-slide-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    color: rgba(255,255,255,0.8);
    font-size: var(--text-sm);
}

.hero-slide-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* Carousel Controls */
.hero-carousel-controls {
    position: absolute;
    bottom: var(--space-2xl);
    right: var(--space-2xl);
    display: flex;
    gap: var(--space-sm);
    z-index: 3;
}

.hero-carousel-btn {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.hero-carousel-btn:hover {
    background: var(--revved-accent);
    border-color: var(--revved-accent);
    color: #000;
}

/* Carousel Indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 3;
}

.hero-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-indicator.active,
.hero-indicator:hover {
    background: var(--revved-accent);
}

/* ==========================================================================
   5. EDITOR'S PICK FEATURE SECTION
   ========================================================================== */

.editors-pick-section {
    background: var(--revved-bg-secondary);
    padding: var(--space-3xl) 0;
    margin: var(--space-2xl) 0;
}

.editors-pick-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--revved-red);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

.editors-pick-badge i {
    color: #FFD700;
}

.editors-pick-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.editors-pick-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
}

.editors-pick-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.editors-pick-card:hover .editors-pick-image img {
    transform: scale(1.03);
}

.editors-pick-content {
    padding: var(--space-lg);
}

.editors-pick-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.editors-pick-excerpt {
    font-size: var(--text-lg);
    color: var(--revved-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
}

.editors-pick-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--revved-accent);
    color: #000;
    padding: var(--space-md) var(--space-xl);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.editors-pick-cta:hover {
    background: var(--revved-accent-dark);
    gap: var(--space-md);
}

@media (max-width: 968px) {
    .editors-pick-card {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   6. ENHANCED ARTICLE CARDS
   ========================================================================== */

.article-card {
    background: var(--revved-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

/* Image overlay effect on hover */
.article-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.article-card:hover .article-card-image::after {
    opacity: 1;
}

.article-card-content {
    flex: 1;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.article-card .card-category {
    margin-bottom: var(--space-sm);
}

.article-card .card-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: var(--leading-snug);
    margin: 0 0 var(--space-sm);
    color: var(--revved-text-primary);
    transition: color var(--transition-fast);
}

.article-card:hover .card-title {
    color: var(--revved-accent);
}

.article-card .card-excerpt {
    font-size: var(--text-sm);
    color: var(--revved-text-tertiary);
    line-height: var(--leading-normal);
    margin: 0 0 var(--space-md);
    flex-grow: 1;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: var(--revved-text-muted);
    margin-top: auto;
}

.article-card .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ==========================================================================
   7. ARTICLE GRID LAYOUTS
   ========================================================================== */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.article-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.article-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Featured first card layout */
.article-grid-featured {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.article-grid-featured .article-card:first-child {
    grid-row: span 2;
}

.article-grid-featured .article-card:first-child .card-title {
    font-size: var(--text-2xl);
}

@media (max-width: 1200px) {
    .article-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .article-grid-featured {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .article-grid-featured .article-card:first-child {
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .article-grid,
    .article-grid-2,
    .article-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   8. ENHANCED HEADER & NAVIGATION
   ========================================================================== */

.revved-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--revved-header-bg);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.revved-header.scrolled {
    box-shadow: var(--shadow-md);
}

.revved-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: var(--space-xl);
}

/* Logo */
.revved-logo {
    flex-shrink: 0;
}

.revved-logo img,
.site-logo-img {
    height: 40px;
    width: auto;
    transition: transform var(--transition-fast);
}

.revved-logo:hover img,
.revved-logo:hover .site-logo-img {
    transform: scale(1.02);
}

/* Navigation Menu */
.revved-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.revved-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.revved-menu > li {
    position: relative;
}

.revved-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--revved-nav-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.revved-menu > li > a:hover,
.revved-menu > li.current-menu-item > a {
    background: var(--revved-hover-overlay);
    color: var(--revved-accent);
}

/* Active Section Indicator */
.revved-menu > li.current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-md);
    right: var(--space-md);
    height: 3px;
    background: var(--revved-accent);
    border-radius: var(--radius-full);
}

/* Dropdown/Submenu */
.revved-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--revved-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    list-style: none;
    z-index: 100;
}

.revved-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.revved-menu .sub-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    color: var(--revved-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.revved-menu .sub-menu li a:hover {
    background: var(--revved-hover-overlay);
    color: var(--revved-accent);
}

/* ==========================================================================
   9. INTELLIGENT SEARCH
   ========================================================================== */

.revved-header-search {
    flex-shrink: 0;
}

.revved-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.revved-search-input {
    width: 200px;
    padding: var(--space-sm) var(--space-md);
    padding-right: 40px;
    font-size: var(--text-sm);
    border: 2px solid var(--revved-border-color);
    border-radius: var(--radius-full);
    background: var(--revved-bg-tertiary);
    color: var(--revved-text-primary);
    transition: var(--transition-fast);
}

.revved-search-input:focus {
    width: 280px;
    border-color: var(--revved-accent);
    outline: none;
    box-shadow: var(--shadow-glow);
}

.revved-search-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--revved-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.revved-search-btn:hover {
    color: var(--revved-accent);
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: calc(100% + var(--space-sm));
    left: 0;
    right: 0;
    background: var(--revved-bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: var(--space-sm);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-suggestion-item:hover {
    background: var(--revved-hover-overlay);
}

.search-suggestion-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-suggestion-title {
    font-weight: 500;
    font-size: var(--text-sm);
}

.search-suggestion-category {
    font-size: var(--text-xs);
    color: var(--revved-text-muted);
}

/* Category Filters in Search */
.search-filters {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--revved-border-color);
    margin-bottom: var(--space-sm);
}

.search-filter-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--revved-text-secondary);
    background: var(--revved-bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-filter-btn:hover,
.search-filter-btn.active {
    background: var(--revved-accent);
    color: #000;
}

/* ==========================================================================
   10. MOBILE NAVIGATION
   ========================================================================== */

.revved-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--revved-text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.revved-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.revved-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.revved-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 968px) {
    .revved-menu-toggle {
        display: flex;
    }
    
    .revved-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--revved-bg-card);
        padding: var(--space-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        overflow-y: auto;
        z-index: 999;
    }
    
    .revved-nav.active {
        transform: translateX(0);
    }
    
    .revved-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .revved-menu > li > a {
        padding: var(--space-md);
        font-size: var(--text-lg);
        border-bottom: 1px solid var(--revved-border-color);
    }
    
    .revved-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: var(--space-lg);
        background: transparent;
    }
    
    .revved-header-search {
        display: none;
    }
    
    /* Mobile search in menu */
    .mobile-search {
        display: block;
        padding: var(--space-md);
        border-bottom: 1px solid var(--revved-border-color);
    }
    
    .mobile-search .revved-search-input {
        width: 100%;
    }
}

/* ==========================================================================
   11. INTERACTIVE RATING COMPONENT
   ========================================================================== */

.rating-slider-container {
    margin: var(--space-lg) 0;
}

.rating-slider-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--revved-border-color);
}

.rating-slider-label {
    width: 120px;
    flex-shrink: 0;
    font-weight: 500;
    font-size: var(--text-sm);
}

.rating-slider-track {
    flex-grow: 1;
    height: 8px;
    background: var(--revved-bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.rating-slider-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rating-slider-value {
    width: 50px;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--revved-accent);
    text-align: right;
}

/* Overall Rating Badge */
.overall-rating-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    color: #000;
}

.overall-rating-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1;
}

.overall-rating-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* ==========================================================================
   12. IMAGE GALLERY COMPONENT
   ========================================================================== */

.gallery-component {
    position: relative;
    margin: var(--space-2xl) 0;
}

.gallery-main-image {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--revved-bg-tertiary);
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: var(--text-sm);
}

.gallery-thumbnails {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--revved-accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.gallery-nav:hover {
    background: var(--revved-accent);
    color: #000;
}

.gallery-nav.prev {
    left: var(--space-md);
}

.gallery-nav.next {
    right: var(--space-md);
}

/* Fullscreen Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-xl);
    z-index: 2;
}

.gallery-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* ==========================================================================
   13. INTERACTIVE POLLS
   ========================================================================== */

.poll-widget {
    background: var(--revved-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.poll-question {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.poll-option {
    position: relative;
    padding: var(--space-md);
    background: var(--revved-bg-tertiary);
    border: 2px solid var(--revved-border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    overflow: hidden;
}

.poll-option:hover {
    border-color: var(--revved-accent);
}

.poll-option.selected {
    border-color: var(--revved-accent);
    background: var(--revved-accent-glow);
}

.poll-option-text {
    position: relative;
    z-index: 1;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.poll-option-percentage {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--revved-accent);
}

.poll-option-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--revved-accent-glow);
    transition: width 0.6s ease;
}

.poll-total-votes {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--revved-text-muted);
    text-align: center;
}

.poll-submit {
    width: 100%;
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--revved-accent);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.poll-submit:hover {
    background: var(--revved-accent-dark);
}

.poll-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   14. NEWSLETTER ENHANCEMENT
   ========================================================================== */

.newsletter-section {
    background: linear-gradient(135deg, var(--revved-bg-secondary) 0%, var(--revved-bg-tertiary) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    background: var(--revved-accent);
    color: #000;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.newsletter-description {
    font-size: var(--text-lg);
    color: var(--revved-text-secondary);
    margin-bottom: var(--space-xl);
}

.newsletter-form-inline {
    display: flex;
    gap: var(--space-sm);
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-form-inline input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    border: 2px solid var(--revved-border-color);
    border-radius: var(--radius-full);
    background: var(--revved-bg-card);
    color: var(--revved-text-primary);
}

.newsletter-form-inline input:focus {
    border-color: var(--revved-accent);
    outline: none;
}

.newsletter-form-inline button {
    padding: var(--space-md) var(--space-xl);
    background: var(--revved-accent);
    color: #000;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form-inline button:hover {
    background: var(--revved-accent-dark);
}

.newsletter-privacy {
    margin-top: var(--space-md);
    font-size: var(--text-xs);
    color: var(--revved-text-muted);
}

@media (max-width: 640px) {
    .newsletter-form-inline {
        flex-direction: column;
    }
    
    .newsletter-form-inline button {
        width: 100%;
    }
}

/* ==========================================================================
   15. TEXT-TO-SPEECH BUTTON
   ========================================================================== */

.tts-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--revved-bg-tertiary);
    border: 1px solid var(--revved-border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--revved-text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tts-button:hover {
    background: var(--revved-accent-glow);
    border-color: var(--revved-accent);
    color: var(--revved-accent);
}

.tts-button.playing {
    background: var(--revved-accent);
    color: #000;
    border-color: var(--revved-accent);
}

.tts-button svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   16. SOCIAL SHARE IMPROVEMENTS
   ========================================================================== */

.social-share-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--revved-border-color);
    border-bottom: 1px solid var(--revved-border-color);
    margin: var(--space-xl) 0;
}

.social-share-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--revved-text-secondary);
}

.social-share-buttons {
    display: flex;
    gap: var(--space-sm);
}

.social-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-share-btn.facebook {
    background: #1877F2;
    color: #fff;
}

.social-share-btn.twitter {
    background: #000;
    color: #fff;
}

.social-share-btn.linkedin {
    background: #0A66C2;
    color: #fff;
}

.social-share-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.social-share-btn.copy {
    background: var(--revved-bg-tertiary);
    color: var(--revved-text-secondary);
    border: 1px solid var(--revved-border-color);
}

.social-share-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.social-share-btn.copied {
    background: var(--revved-success);
    color: #fff;
    border-color: var(--revved-success);
}

.social-share-btn.copy-error {
    background: var(--revved-error);
    color: #fff;
    border-color: var(--revved-error);
}

/* ==========================================================================
   17. ANIMATIONS & HOVER EFFECTS
   ========================================================================== */

/* Subtle zoom on hover */
.zoom-on-hover {
    overflow: hidden;
}

.zoom-on-hover img {
    transition: transform 0.5s ease;
}

.zoom-on-hover:hover img {
    transform: scale(1.05);
}

/* Parallax effect */
.parallax-container {
    perspective: 1000px;
}

.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Card lift effect */
.lift-on-hover {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.lift-on-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-up {
    animation: scaleUp 0.4s ease forwards;
}

/* Staggered animation for lists */
.stagger-animation > * {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

/* Speedometer loading animation */
@keyframes speedometer {
    0% { stroke-dashoffset: 100; }
    50% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

.speedometer-anim {
    stroke-dasharray: 100;
    animation: speedometer 1s ease forwards;
}

/* ==========================================================================
   18. ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus visible styles */
:focus-visible {
    outline: 3px solid var(--revved-accent);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--revved-accent);
    color: #000;
    padding: var(--space-sm) var(--space-md);
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
        scroll-behavior: auto !important;
    }
    
    /* Allow essential transitions for interactive feedback */
    .article-card:hover,
    .gallery-thumb:hover,
    button:focus {
        transition-duration: 0.2s !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --revved-accent: #00FF00;
        --revved-text-primary: #000;
        --revved-bg-primary: #fff;
    }
    
    .article-card,
    .poll-widget,
    .newsletter-section {
        border: 2px solid #000;
    }
}

/* ==========================================================================
   19. PRINT STYLES
   ========================================================================== */

@media print {
    .revved-header,
    .revved-footer,
    .share-sidebar,
    .article-sidebar,
    .back-to-top,
    .theme-toggle-btn,
    .tts-button,
    .social-share-bar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .article-main {
        max-width: 100%;
        margin: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .article-title {
        font-size: 24pt;
    }
}
