/* ============================================================
   TemplateVogue.com - Smart Comparison Templates
   Dark Theme Stylesheet
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --bg-elevated: #1e1e2a;
    --bg-input: #1a1a26;

    --text-primary: #e8e8ed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --text-link: #818cf8;

    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-gradient: linear-gradient(135deg, #6366f1, #a855f7);
    --accent-glow: rgba(99, 102, 241, 0.15);

    --border-color: #222233;
    --border-light: #2a2a3d;

    --green: #22c55e;
    --red: #ef4444;
    --yellow: #f59e0b;
    --blue: #3b82f6;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --container-max: 1200px;
    --content-max: 780px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

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

/* ---- Navigation ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--text-primary);
}

.brand-icon {
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: 0.2s;
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 999px;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.hero-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* ---- Category Filter ---- */
.category-filter {
    padding: 20px 0 30px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.pill:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.pill.active {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.pill-count {
    font-size: 0.75rem;
    padding: 1px 7px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

/* ---- Articles Grid ---- */
.main-content {
    padding: 20px 0 60px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cat-color, var(--accent-primary));
    padding: 4px 10px;
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 12%, transparent);
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.card-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.card-read-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: transform 0.2s;
}

.article-card:hover .card-arrow {
    transform: translateX(4px);
}

/* ---- Article Page ---- */
.breadcrumb-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--text-link);
}

.breadcrumb .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-secondary);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Article Layout */
.article-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.article-header {
    margin-bottom: 32px;
}

.article-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cat-color, var(--accent-primary));
    padding: 5px 14px;
    background: color-mix(in srgb, var(--cat-color, var(--accent-primary)) 12%, transparent);
    border-radius: 999px;
    margin-bottom: 16px;
}

.article-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.article-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

/* ---- Prose / Article Body ---- */
.prose h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    letter-spacing: -0.01em;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--text-primary);
}

.prose h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 10px;
}

.prose p {
    margin-bottom: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

.prose a {
    color: var(--text-link);
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.3);
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration-color: var(--text-link);
}

.prose ul,
.prose ol {
    margin: 0 0 20px 20px;
    color: var(--text-secondary);
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.prose blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 16px 20px;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.prose hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 32px 0;
}

.prose pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.prose p code,
.prose li code {
    background: var(--bg-elevated);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--accent-secondary);
}

.prose img {
    margin: 24px 0;
    border: 1px solid var(--border-color);
}

/* ---- Comparison Tables ---- */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table thead {
    background: var(--bg-elevated);
}

.comparison-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-primary);
    white-space: nowrap;
}

.comparison-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: top;
}

.comparison-table tbody tr {
    transition: background 0.15s;
}

.comparison-table tbody tr:hover {
    background: var(--bg-card);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.cell-yes {
    color: var(--green) !important;
    font-weight: 500;
}

.cell-no {
    color: var(--red) !important;
    font-weight: 500;
}

.cell-partial {
    color: var(--yellow) !important;
    font-weight: 500;
}

/* ---- Sidebar ---- */
.article-sidebar {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.sidebar-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Table of Contents */
.toc-nav ul {
    list-style: none;
}

.toc-nav li {
    margin-bottom: 4px;
}

.toc-nav a {
    display: block;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.toc-level-3 a {
    padding-left: 24px;
    font-size: 0.8rem;
}

/* Related Articles */
.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 8px;
}

.related-list a {
    display: block;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.related-list a:hover {
    background: var(--bg-elevated);
}

.related-title {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.related-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Share Section ---- */
.share-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.share-section h3 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}

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

.share-btn.twitter {
    background: #1a1a2e;
    border: 1px solid #333;
}

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

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.reddit {
    background: #ff4500;
}

/* ---- Newsletter ---- */
.newsletter {
    padding: 60px 0;
}

.newsletter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.newsletter-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

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

.newsletter-form button {
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---- Ads ---- */
.ad-container {
    margin: 24px 0;
    text-align: center;
    min-height: 90px;
}

.ad-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 20px;
}

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

.footer-brand .navbar-brand {
    margin-bottom: 14px;
    display: inline-flex;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.footer-links li {
    margin-bottom: 8px;
}

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

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ---- Error Page ---- */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ---- Categories Page ---- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.category-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---- About Page ---- */
.about-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 60px 0;
}

.about-content h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px 24px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 32px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .newsletter-card {
        padding: 30px 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        text-align: center;
    }

    .filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* ---- Print Styles ---- */
@media print {

    .navbar,
    .site-footer,
    .ad-container,
    .ad-card,
    .ad-sidebar,
    .share-section,
    .newsletter,
    .back-to-top,
    .nav-toggle,
    .article-sidebar {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table th,
    .comparison-table td {
        border: 1px solid #ccc;
    }
}