/* ========================================
   AutoHoje HTML5 - Main Stylesheet
   Matching React version exactly
   ======================================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Oswald:wght@400;500;600;700&display=swap');

/* CSS Variables - Dark Automotive Theme */
:root {
    /* Colors */
    --background: hsl(220, 20%, 7%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(220, 18%, 10%);
    --card-foreground: hsl(0, 0%, 98%);
    --popover: hsl(220, 18%, 10%);
    --popover-foreground: hsl(0, 0%, 98%);
    
    /* Brand Red */
    --primary: hsl(0, 85%, 50%);
    --primary-foreground: hsl(0, 0%, 100%);
    
    --secondary: hsl(220, 15%, 15%);
    --secondary-foreground: hsl(0, 0%, 90%);
    
    --muted: hsl(220, 15%, 20%);
    --muted-foreground: hsl(220, 10%, 60%);
    
    --accent: hsl(0, 85%, 50%);
    --accent-foreground: hsl(0, 0%, 100%);
    
    --border: hsl(220, 15%, 18%);
    --input: hsl(220, 15%, 18%);
    --ring: hsl(0, 85%, 50%);
    
    --radius: 0.5rem;
    
    /* Gradients */
    --gradient-hero: linear-gradient(180deg, transparent 0%, hsla(220, 20%, 7%, 0.6) 50%, hsl(220, 20%, 7%) 100%);
    --gradient-card: linear-gradient(180deg, transparent 0%, hsla(220, 18%, 10%, 0.95) 100%);
    
    /* Shadows */
    --shadow-glow: 0 0 30px hsla(0, 85%, 50%, 0.3);
    --shadow-card: 0 10px 40px -10px hsla(0, 0%, 0%, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --header-height: 64px;
    --header-height-md: 80px;
    --container-max: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.main-content {
    min-height: 100vh;
    padding-top: var(--header-height);
}

@media (min-width: 768px) {
    .main-content {
        padding-top: var(--header-height-md);
    }
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(13, 15, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

@media (min-width: 768px) {
    .header-inner {
        height: var(--header-height-md);
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.logo-primary {
    background: var(--primary);
    padding: 0.375rem 0.75rem;
    border-radius: 2px;
    transition: box-shadow 0.3s;
}

.logo:hover .logo-primary {
    box-shadow: var(--shadow-glow);
}

.logo-primary span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-foreground);
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

@media (min-width: 768px) {
    .logo-primary span {
        font-size: 1.5rem;
    }
}

.logo-secondary {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

@media (min-width: 768px) {
    .logo-secondary {
        font-size: 1.5rem;
    }
}

/* Navigation */
.main-nav {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .user-actions {
        display: flex;
    }
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--foreground);
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--foreground);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-ghost:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-foreground);
    background: var(--primary);
    border: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background: hsl(0, 85%, 45%);
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.mobile-nav.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.mobile-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
}

.mobile-nav .nav-link:hover {
    background: var(--secondary);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-content {
    position: relative;
    width: 100%;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero-content {
        padding-bottom: 6rem;
    }
}

.hero-inner {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.hero-title a {
    color: var(--foreground);
    text-decoration: none;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero .btn-lg {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
}

@media (min-width: 768px) {
    .scroll-indicator {
        display: block;
    }
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid var(--muted-foreground);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-dot {
    width: 0.25rem;
    height: 0.5rem;
    background: var(--muted-foreground);
    border-radius: 9999px;
}

/* ========================================
   Category Bar (Tabs)
   ======================================== */
.category-bar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 40;
}

@media (min-width: 768px) {
    .category-bar {
        top: var(--header-height-md);
    }
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: all 0.2s;
    cursor: pointer;
}

.category-tab:hover {
    color: var(--foreground);
    background: var(--muted);
}

.category-tab.active {
    color: var(--primary-foreground);
    background: var(--primary);
}

.category-tab svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: var(--primary);
    border-radius: 2px;
}

.section-link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s;
}

.section-link:hover {
    gap: 0.5rem;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

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

.card-image {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

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

.card-content {
    padding: 1.25rem;
}

.card-category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.card-meta svg {
    width: 14px;
    height: 14px;
}

/* Featured Card */
.card-featured {
    grid-column: span 2;
}

.card-featured .card-image {
    aspect-ratio: 21/9;
}

.card-featured .card-title {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .card-featured {
        grid-column: span 1;
    }
    
    .card-featured .card-image {
        aspect-ratio: 16/9;
    }
}

/* Horizontal Card */
.card-horizontal {
    display: flex;
    flex-direction: row;
}

.card-horizontal .card-image {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
}

.card-horizontal .card-content {
    flex: 1;
    padding: 1rem;
}

.card-horizontal .card-title {
    font-size: 0.875rem;
    -webkit-line-clamp: 3;
}

/* ========================================
   Grid System
   ======================================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

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

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

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

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

/* ========================================
   Quick News / Ticker
   ======================================== */
.quick-news {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.quick-news-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-news-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    white-space: nowrap;
}

.quick-news-list {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-news-list::-webkit-scrollbar {
    display: none;
}

.quick-news-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.quick-news-item::before {
    content: '›';
    color: var(--primary);
}

.quick-news-item a {
    color: var(--muted-foreground);
    transition: color 0.2s;
}

.quick-news-item a:hover {
    color: var(--foreground);
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.newsletter-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
}

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

.newsletter-form input::placeholder {
    color: var(--muted-foreground);
}

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

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 4rem 0 2rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 1rem 0 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    border-radius: 50%;
    color: var(--muted-foreground);
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

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

/* ========================================
   Page Header
   ======================================== */
.page-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--muted-foreground);
    max-width: 600px;
}

/* ========================================
   Article Page
   ======================================== */
.article-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .article-container {
        padding: 3rem 1.5rem;
    }
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.article-back:hover {
    color: var(--primary);
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 2.5rem;
    }
}

.article-subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.article-featured-image {
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    border-radius: var(--radius);
}

.article-featured-image figcaption {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.75rem;
    text-align: center;
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--foreground);
}

.article-content p {
    margin-bottom: 1.75rem;
}

.article-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 3rem 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--foreground);
}

.article-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--foreground);
}

.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
}

.article-content img {
    width: 100%;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.article-content figure {
    margin: 2.5rem 0;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-content figure img {
    margin: 0;
    border-radius: 0;
}

.article-content figcaption {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    padding: 1rem 1.25rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: var(--card);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--muted-foreground);
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--primary);
}

.article-content ul,
.article-content ol {
    margin: 1.75rem 0;
    padding-left: 1.75rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.article-content li::marker {
    color: var(--primary);
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.article-content a:hover {
    color: #ef4444;
}

.article-content .lead {
    font-size: 1.375rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Info Box / Highlight Box */
.article-content .info-box,
.article-content .highlight-box {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.article-content .info-box h4,
.article-content .highlight-box h4 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Specs Table */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-content th,
.article-content td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-content th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Code/Technical */
.article-content code {
    background: var(--card);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.article-content pre {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border);
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* Horizontal Rule / Divider */
.article-content hr,
.article-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 3rem 0;
}

/* Article Related Box */
.article-content .article-related {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2.5rem 0;
}

.article-content .article-related h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    border: none;
    padding: 0;
}

.article-content .article-related ul {
    margin: 0;
    padding-left: 1.25rem;
}

.article-content .article-related li {
    margin-bottom: 0.5rem;
}

/* Drop Cap for first paragraph */
.article-content > p:first-of-type:not(.lead)::first-letter {
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Image Gallery in Article */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
}

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

.article-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.article-gallery img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

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

/* Video Embed */
.article-content .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2.5rem 0;
    border-radius: var(--radius);
}

.article-content .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Comparison Box */
.article-content .comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.article-content .comparison-box .pros,
.article-content .comparison-box .cons {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.article-content .comparison-box .pros h4 {
    color: #22c55e;
}

.article-content .comparison-box .cons h4 {
    color: #ef4444;
}

@media (max-width: 640px) {
    .article-content .comparison-box {
        grid-template-columns: 1fr;
    }
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.tag {
    padding: 0.375rem 0.75rem;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Share Section */
.share-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.share-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Article Source */
.article-source {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 1.5rem 0;
}

.article-source a {
    color: var(--primary);
}

/* Related Articles */
.related-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--primary);
}

.related-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.related-content {
    flex: 1;
    min-width: 0;
}

.related-category {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.related-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-excerpt {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Cookie Consent
   ======================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cookie-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.cookie-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cookie-text p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.cookie-text a {
    color: var(--primary);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-actions .btn-ghost {
    border: 1px solid var(--border);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }

.bg-card { background: var(--card); }
.bg-muted { background: var(--muted); }

.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }

.overflow-hidden { overflow: hidden; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Search Dropdown
   ======================================== */
.search-dropdown {
    position: absolute;
    right: 1rem;
    top: 100%;
    margin-top: 0.5rem;
    width: 320px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.search-form-inline {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.625rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

/* ========================================
   Form Elements
   ======================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}

/* ========================================
   Loading States
   ======================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Empty States
   ======================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.empty-state-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* GPU-accelerated animations */
.hero-image,
.hero-gradient,
.scroll-indicator,
.scroll-dot,
.card,
.article-card,
.btn-primary,
.nav-link {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize hover animations */
.card:hover,
.article-card:hover,
.btn-primary:hover {
    transform: translateY(-4px) translateZ(0);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
