/* ============================================================================
   PROFESSIONAL ARTICLE SYSTEM
   Inspired by Claude.ai - Clean, spacious, elegant typography
   ============================================================================ */

/* VARIABLES */
:root {
    /* Professional neutral palette inspired by Claude.ai */
    --color-bg: #fafaf8;
    --color-bg-secondary: #ffffff;
    --color-surface: #f5f4f0;
    --color-text: #2b2b2b;
    --color-text-secondary: #5c5c5c;
    --color-text-muted: #8c8c8c;
    --color-accent: #cd7f59;
    --color-accent-hover: #b36f4d;
    --color-border: #e8e4df;
    
    /* Professional typography - Claude.ai style */
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --color-bg: #1a1a1a;
    --color-bg-secondary: #242424;
    --color-surface: #2e2e2e;
    --color-text: #e8e8e8;
    --color-text-secondary: #b8b8b8;
    --color-text-muted: #888888;
    --color-accent: #d89478;
    --color-accent-hover: #e0a490;
    --color-border: #3a3a3a;
}

/* ============================================================================
   BASE - SPACIOUS FOUNDATION
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

/* ============================================================================
   TYPOGRAPHY - LARGE & ELEGANT
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; }

p {
    margin-bottom: 1.75rem;
}

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

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

/* ============================================================================
   LAYOUT - GENEROUS SPACING
   ============================================================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 3rem;
}

.main-content {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

/* ============================================================================
   HEADER - MINIMAL & CLEAN WITH SHRINK ON SCROLL
   ============================================================================ */

.site-header {
    background-color: rgba(250, 250, 248, 0.9);
    border-bottom: 1px solid var(--color-border);
    padding: 1.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.shrink {
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .site-header {
    background-color: rgba(26, 26, 26, 0.9);
}

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

.site-logo h1 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    transition: font-size 0.3s ease;
}

.site-header.shrink .site-logo h1 {
    font-size: 1.25rem;
}

.site-logo:hover h1 {
    color: var(--color-accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-form {
    position: relative;
}

.search-input {
    padding: 0.875rem 3rem 0.875rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background-color: var(--color-bg-secondary);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    width: 280px;
    transition: all 0.3s ease;
}

.site-header.shrink .search-input {
    padding: 0.625rem 2.75rem 0.625rem 1rem;
    font-size: 0.9375rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(205, 127, 89, 0.1);
}

.search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

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

.theme-toggle {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.875rem;
    cursor: pointer;
    border-radius: 10px;
    color: var(--color-text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-header.shrink .theme-toggle {
    padding: 0.625rem;
}

.theme-toggle:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

[data-theme="light"] .moon-icon,
[data-theme="dark"] .sun-icon {
    display: none;
}

/* ============================================================================
   ARTICLES GRID - PROFESSIONAL 2-COLUMN LAYOUT
   ============================================================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    margin-bottom: 4rem;
}

/* FEATURED ARTICLE - ELEGANT HERO */
.article-card.featured {
    grid-column: 1 / -1;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 5rem;
    transition: box-shadow 0.3s ease;
}

.article-card.featured:hover {
    box-shadow: var(--shadow-lg);
}

.article-card.featured .article-image img {
    height: 520px;
    width: 100%;
    object-fit: cover;
}

.article-card.featured .article-content {
    padding: 4rem;
}

.article-card.featured .article-meta {
    margin-bottom: 1.5rem;
}

.article-card.featured .article-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-card.featured .article-excerpt {
    font-size: 1.375rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.article-card.featured .article-tags {
    margin-bottom: 2.5rem;
}

/* REGULAR ARTICLE CARDS */
.article-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.article-image {
    width: 100%;
    overflow: hidden;
}

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

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

.article-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    font-family: var(--font-sans);
}

.article-meta time,
.article-meta .author {
    color: var(--color-accent);
}

.separator {
    opacity: 0.4;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 700;
}

.article-title a {
    color: var(--color-text);
}

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

.article-excerpt {
    color: var(--color-text-secondary);
    margin-bottom: 1.75rem;
    flex-grow: 1;
    font-size: 1.125rem;
    line-height: 1.65;
    font-family: var(--font-sans);
}

/* PROFESSIONAL TAGS - PERFECTLY ALIGNED */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2rem;
    align-items: center;
}

.tag {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: var(--font-sans);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 36px;
    line-height: 1;
}

.tag:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.read-more {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.read-more:hover {
    gap: 1rem;
    color: var(--color-accent-hover);
}

/* ============================================================================
   ARTICLE DETAIL - PROFESSIONAL READING EXPERIENCE
   ============================================================================ */

.article-detail {
    max-width: 1280px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--color-border);
}

.article-header .article-meta {
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.article-header .article-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 2.5rem;
    font-family: var(--font-serif);
}

.article-header .article-tags {
    justify-content: center;
}

.article-featured-image {
    margin-bottom: 5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

/* LARGE, COMFORTABLE READING - MUCH WIDER ON DESKTOP */
.article-body {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text);
    font-family: var(--font-sans);
    max-width: 1100px;
    margin: 0 auto;
}

.article-body > p:first-of-type {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.article-body h2 {
    font-size: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: var(--color-text);
    font-family: var(--font-serif);
}

.article-body h3 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 2.5rem;
    padding-left: 2.5rem;
}

.article-body li {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-body blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 2rem 2.5rem;
    margin: 3rem 0;
    background: var(--color-surface);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.375rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 3.5rem 0;
    box-shadow: var(--shadow-sm);
}

/* Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 5rem 0;
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
}

.nav-link {
    padding: 2.5rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-link:hover:not(.disabled) {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.nav-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.nav-link.next {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 600;
    font-family: var(--font-sans);
}

.nav-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
    font-family: var(--font-serif);
}

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

.related-articles h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-serif);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.related-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-content {
    padding: 2rem;
}

.related-content time {
    font-size: 0.875rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: var(--font-sans);
}

.related-content h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: var(--font-serif);
}

.related-content h3 a {
    color: var(--color-text);
}

.related-content h3 a:hover {
    color: var(--color-accent);
}

.related-content p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-family: var(--font-sans);
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 5rem 0;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-link {
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-secondary);
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    min-width: 48px;
    text-align: center;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.page-link:hover:not(.disabled):not(.active) {
    background: var(--color-surface);
    border-color: var(--color-accent);
}

.page-link.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.page-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ellipsis {
    padding: 0 0.5rem;
    color: var(--color-text-muted);
}

/* ============================================================================
   SEARCH RESULTS
   ============================================================================ */

.search-results-header {
    text-align: center;
    margin-bottom: 5rem;
    padding: 4rem;
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.search-results-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.search-results-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    font-family: var(--font-sans);
}

.no-results {
    text-align: center;
    padding: 5rem 4rem;
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.no-results p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    font-family: var(--font-sans);
}

.no-results a {
    display: inline-block;
    padding: 1.125rem 2.5rem;
    background: var(--color-accent);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.no-results a:hover {
    background: var(--color-accent-hover);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 3rem;
    margin-top: 5rem;
}

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

.footer-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-serif);
}

.footer-description p {
    color: var(--color-text-secondary);
    line-height: 1.65;
    font-size: 1.0625rem;
    font-family: var(--font-sans);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-family: var(--font-sans);
}

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

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    font-family: var(--font-sans);
    transition: color 0.2s ease;
}

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

.footer-info {
    text-align: right;
}

.footer-info p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .main-content {
        padding: 3rem 0;
    }
    
    /* MOBILE HEADER - HIDE CONTROLS ON SCROLL DOWN */
    .header-content {
        flex-direction: column;
        gap: 1.25rem;
        transition: all 0.3s ease;
    }
    
    .header-right {
        width: 100%;
        overflow: hidden;
        max-height: 100px;
        opacity: 1;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    }
    
    .site-header.hide-controls .header-right {
        max-height: 0;
        opacity: 0;
        margin: 0;
    }
    
    .site-header.hide-controls {
        padding: 1rem 0;
    }
    
    .search-input {
        width: 100%;
    }
    
    .article-card.featured .article-content {
        padding: 2.5rem;
    }
    
    .article-card.featured .article-title {
        font-size: 2.25rem;
    }
    
    .article-header .article-title {
        font-size: 2.75rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-link.next {
        text-align: left;
        align-items: flex-start;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-info {
        text-align: left;
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
    --color-bg: #1a1a1a;
    --color-bg-secondary: #242424;
    --color-surface: #2a2a2a;
    --color-text: #e8e8e8;
    --color-text-secondary: #b8b8b8;
    --color-text-muted: #888888;
    --color-accent: #d89478;
    --color-accent-hover: #e0a490;
    --color-border: #333333;
}

/* ============================================================================
   BASE - PROFESSIONAL FOUNDATION
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 20px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

/* ============================================================================
   TYPOGRAPHY - LARGE & SPACIOUS
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1.5rem;
}

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

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

/* ============================================================================
   LAYOUT - SPACIOUS
   ============================================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.main-content {
    padding: 5rem 0;
    min-height: calc(100vh - 200px);
}

/* ============================================================================
   HEADER - CLEAN & MINIMAL
   ============================================================================ */

.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .site-header {
    background-color: rgba(26, 26, 26, 0.95);
}

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

.site-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.site-logo:hover h1 {
    color: var(--color-accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-form {
    position: relative;
}

.search-input {
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 0.95rem;
    width: 300px;
    transition: all 0.2s ease;
}

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

.search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

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

.theme-toggle {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    cursor: pointer;
    border-radius: 8px;
    color: var(--color-text);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--color-accent);
    color: white;
}

[data-theme="light"] .moon-icon,
[data-theme="dark"] .sun-icon {
    display: none;
}

/* ============================================================================
   ARTICLES GRID - PROFESSIONAL 2-COLUMN
   ============================================================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

/* FEATURED ARTICLE - PROFESSIONAL HERO */
.article-card.featured {
    grid-column: 1 / -1;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4rem;
    transition: all 0.3s ease;
}

.article-card.featured:hover {
    box-shadow: var(--shadow-lg);
}

.article-card.featured .article-image img {
    height: 500px;
    width: 100%;
    object-fit: cover;
}

.article-card.featured .article-content {
    padding: 3.5rem;
}

.article-card.featured .article-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-card.featured .article-excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

/* REGULAR ARTICLE CARDS */
.article-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.article-image {
    width: 100%;
    overflow: hidden;
}

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

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

.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-meta time,
.article-meta .author {
    color: var(--color-accent);
}

.separator {
    opacity: 0.5;
}

.article-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

.article-title a {
    color: var(--color-text);
}

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

.article-excerpt {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1.05rem;
    line-height: 1.6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--color-border);
}

.tag:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.read-more {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

/* Navigation */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
}

.nav-link {
    padding: 2rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover:not(.disabled) {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.nav-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.nav-link.next {
    text-align: right;
}

.nav-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Related Articles */
/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 4rem 0;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-link {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-secondary);
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
    transition: all 0.2s ease;
}

.page-link:hover:not(.disabled) {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.page-link.active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.page-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ellipsis {
    padding: 0 0.5rem;
    color: var(--color-text-muted);
}

/* ============================================================================
   SEARCH RESULTS
   ============================================================================ */

.search-results-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--color-surface);
    border-radius: 12px;
}

.search-results-header h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.search-results-header p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
}

.no-results {
    text-align: center;
    padding: 4rem;
    background: var(--color-surface);
    border-radius: 12px;
}

.no-results p {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.no-results a {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    border-radius: 8px;
    font-weight: 600;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 18px;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .article-header .article-title {
        font-size: 2.4rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-link.next {
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        text-align: left;
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
