/*
Theme Name: PluginVST Magazine
Theme URI: https://pluginvst.fr
Author: PluginVST
Author URI: https://pluginvst.fr
Description: Thème magazine moderne pour PluginVST - plugins audio, VST, instruments virtuels
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pluginvst-magazine
Tags: magazine, music, audio, responsive, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==============================
   RESET & BASE
============================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:    #e63946;
    --color-secondary:  #1d3557;
    --color-accent:     #457b9d;
    --color-dark:       #0d0d0d;
    --color-darker:     #111827;
    --color-mid:        #1f2937;
    --color-light:      #f1f5f9;
    --color-white:      #ffffff;
    --color-text:       #e2e8f0;
    --color-muted:      #94a3b8;
    --color-border:     #2d3748;
    --font-heading:     'Oswald', 'Impact', sans-serif;
    --font-body:        'Inter', 'Segoe UI', sans-serif;
    --font-mono:        'JetBrains Mono', monospace;
    --radius:           6px;
    --radius-lg:        12px;
    --shadow:           0 4px 24px rgba(0,0,0,0.4);
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.3);
    --transition:       0.25s ease;
    --max-width:        1280px;
    --header-height:    70px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--color-darker);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-white); }

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

ul, ol { list-style: none; }

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

p { margin-bottom: 1.2em; color: var(--color-text); }

/* ==============================
   LAYOUT
============================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

/* ==============================
   HEADER
============================== */
#masthead {
    background: var(--color-dark);
    border-bottom: 3px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}

/* Logo */
.site-branding { flex-shrink: 0; }

.site-title a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-title a span {
    color: var(--color-primary);
}

.site-description {
    font-size: 0.7rem;
    color: var(--color-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navigation */
.main-nav { flex: 1; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--color-white);
    background: var(--color-primary);
}

/* Search Header */
.header-search { flex-shrink: 0; }

.header-search form {
    display: flex;
    align-items: center;
    background: var(--color-mid);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.header-search form:focus-within {
    border-color: var(--color-primary);
}

.header-search input {
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 8px 16px;
    font-size: 0.85rem;
    width: 180px;
    outline: none;
}

.header-search button {
    background: var(--color-primary);
    border: none;
    color: white;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.header-search button:hover { background: #c1121f; }

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-white);
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.2rem;
}

/* ==============================
   TICKER / BREAKING NEWS
============================== */
.breaking-ticker {
    background: var(--color-primary);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.ticker-label {
    background: var(--color-dark);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
}

.ticker-scroll {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
    gap: 60px;
}

.ticker-scroll a {
    color: var(--color-white);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.ticker-scroll a:hover { text-decoration: underline; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==============================
   HERO / FEATURED POSTS
============================== */
.hero-section {
    padding: 40px 0 50px;
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: auto auto;
    gap: 20px;
}

/* Hero Main */
.hero-main {
    grid-row: span 2;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.hero-main .post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.hero-main .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-main:hover .post-thumbnail img {
    transform: scale(1.04);
}

.hero-main .post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, transparent 100%);
}

.hero-main .post-category {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.hero-main .post-title {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-main .post-title a {
    color: var(--color-white);
}

.hero-main .post-title a:hover {
    color: var(--color-primary);
}

.hero-main .post-meta {
    font-size: 0.78rem;
    color: var(--color-muted);
}

/* Hero Side Cards */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-side-card {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.hero-side-card .post-thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-side-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-side-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.hero-side-card .post-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 20px 18px;
    background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, transparent 100%);
}

.hero-side-card .post-category {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.hero-side-card .post-title {
    font-size: 1.05rem;
    line-height: 1.25;
}

.hero-side-card .post-title a { color: var(--color-white); }
.hero-side-card .post-title a:hover { color: var(--color-primary); }

/* ==============================
   SECTION TITLES
============================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}

.section-title {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--color-white);
}

.section-title span { color: var(--color-primary); }

.section-link {
    font-size: 0.78rem;
    color: var(--color-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    padding: 5px 14px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.section-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ==============================
   HOMEPAGE SECTIONS
============================== */
.home-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--color-border);
}

/* Posts Grid 3 cols */
.posts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Posts Grid 4 cols */
.posts-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ==============================
   POST CARD
============================== */
.post-card {
    background: var(--color-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

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

.post-card .card-thumbnail {
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

.post-card:hover .card-thumbnail img {
    transform: scale(1.06);
}

.post-card .card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .card-category {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.post-card .card-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 10px;
    flex: 1;
}

.post-card .card-title a {
    color: var(--color-white);
}

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

.post-card .card-excerpt {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-muted);
}

.card-rating {
    color: #fbbf24;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* ==============================
   HORIZONTAL POST CARD (LIST)
============================== */
.post-card-h {
    display: flex;
    gap: 16px;
    background: var(--color-mid);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    padding: 12px;
    transition: border-color var(--transition);
    align-items: center;
}

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

.post-card-h .card-thumbnail {
    width: 110px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.post-card-h .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-h .card-body {
    flex: 1;
    min-width: 0;
}

.post-card-h .card-category {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.post-card-h .card-title {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

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

.post-card-h .card-meta {
    font-size: 0.72rem;
    color: var(--color-muted);
}

/* ==============================
   FEATURED BANNER / AD ZONE
============================== */
.ad-banner {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0d1b2a 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.07;
}

.ad-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--color-white);
}

.ad-banner p {
    color: var(--color-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

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

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

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

/* ==============================
   TWO-COL SECTION (Posts + Sidebar)
============================== */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 50px 0;
}

/* ==============================
   SIDEBAR
============================== */
#secondary {
    /* sidebar styles applied per widget */
}

.widget {
    background: var(--color-mid);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
}

.widget-title {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
    position: relative;
    color: var(--color-white);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 40px; height: 2px;
    background: var(--color-primary);
}

/* Popular Posts Widget */
.popular-post-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.popular-post-item:last-child { border-bottom: none; }

.popular-post-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-border);
    font-weight: 900;
    line-height: 1;
    min-width: 30px;
}

.popular-post-item:hover .popular-post-number {
    color: var(--color-primary);
}

.popular-post-title {
    font-size: 0.85rem;
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 600;
}

.popular-post-title a { color: var(--color-text); }
.popular-post-title a:hover { color: var(--color-primary); }

/* Categories Widget */
.cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.88rem;
}

.cat-list li:last-child { border-bottom: none; }

.cat-list a { color: var(--color-text); }
.cat-list a:hover { color: var(--color-primary); }

.cat-count {
    background: var(--color-border);
    color: var(--color-muted);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Tags Widget */
.tag-cloud a {
    display: inline-block;
    background: var(--color-border);
    color: var(--color-muted);
    font-size: 0.75rem !important;
    padding: 5px 12px;
    border-radius: 20px;
    margin: 3px;
    transition: all var(--transition);
}

.tag-cloud a:hover {
    background: var(--color-primary);
    color: white;
}

/* Newsletter Widget */
.newsletter-widget input[type="email"] {
    width: 100%;
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-white);
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-widget input[type="email"]:focus {
    border-color: var(--color-primary);
}

.newsletter-widget .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ==============================
   SINGLE POST
============================== */
.single-post-header {
    padding: 50px 0 40px;
    background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
    border-bottom: 1px solid var(--color-border);
}

.single-breadcrumb {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 20px;
}

.single-breadcrumb a { color: var(--color-primary); }
.single-breadcrumb span { margin: 0 8px; }

.single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-bottom: 22px;
}

.single-meta .meta-item { display: flex; align-items: center; gap: 6px; }

.single-post-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    margin-bottom: 20px;
    color: var(--color-white);
}

.single-excerpt {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 28px;
}

.single-featured-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 500px;
    margin-top: 30px;
}

.single-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post Content */
.entry-content {
    font-size: 1.02rem;
    line-height: 1.85;
    color: #cbd5e1;
}

.entry-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-white);
}

.entry-content h3 {
    font-size: 1.2rem;
    margin: 30px 0 12px;
    color: var(--color-white);
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content ul, .entry-content ol {
    list-style: disc;
    padding-left: 28px;
    margin-bottom: 1.4em;
}

.entry-content li { margin-bottom: 0.5em; }

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    background: var(--color-mid);
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-text);
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.entry-content pre, .entry-content code {
    background: var(--color-dark);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    padding: 2px 8px;
    border-radius: 4px;
    color: #e879f9;
}

.entry-content pre {
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--color-border);
}

/* Rating Box */
.rating-box {
    background: var(--color-mid);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 40px 0;
}

.rating-box .rating-score {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.4rem;
    letter-spacing: 3px;
    margin: 8px 0;
}

.rating-criteria { margin-top: 16px; }

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.82rem;
}

.rating-bar-label {
    width: 120px;
    color: var(--color-muted);
    flex-shrink: 0;
}

.rating-bar-track {
    flex: 1;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.rating-bar-value {
    width: 28px;
    text-align: right;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Post Tags & Share */
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

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

.post-tags a {
    background: var(--color-mid);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all var(--transition);
}

.post-tags a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.share-buttons { display: flex; gap: 8px; }

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 600;
    transition: opacity var(--transition);
    color: white;
}

.share-btn:hover { opacity: 0.85; color: white; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.copy     { background: var(--color-border); }

/* Related Posts */
.related-posts {
    padding: 50px 0;
    border-top: 1px solid var(--color-border);
}

/* ==============================
   PAGINATION
============================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-mid);
    transition: all var(--transition);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ==============================
   FOOTER
============================== */
#colophon {
    background: var(--color-dark);
    border-top: 3px solid var(--color-primary);
    margin-top: auto;
}

.footer-top {
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid var(--color-border);
}

.footer-about .site-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    display: block;
}

.footer-about p {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
    width: 38px;
    height: 38px;
    background: var(--color-mid);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
}

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

.footer-col h4 {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    color: var(--color-white);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 30px; height: 1px;
    background: var(--color-primary);
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-muted);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '›';
    color: var(--color-primary);
    font-size: 1.1rem;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--color-muted);
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-bottom-nav { display: flex; gap: 20px; }

/* ==============================
   ARCHIVE / CATEGORY PAGE
============================== */
.archive-header {
    background: var(--color-dark);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
    margin-bottom: 40px;
}

.archive-header .archive-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.archive-header h1 {
    font-size: 2.5rem;
    color: var(--color-white);
}

.archive-header .archive-desc {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-top: 10px;
    max-width: 600px;
}

/* ==============================
   SEARCH RESULTS
============================== */
.search-header {
    padding: 40px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}

.search-header h1 { font-size: 2rem; }
.search-header p { color: var(--color-muted); margin-top: 10px; }

/* ==============================
   404 PAGE
============================== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 .error-code {
    font-size: 8rem;
    color: var(--color-primary);
    line-height: 1;
    font-family: var(--font-heading);
    opacity: 0.8;
}

.error-404 h2 {
    font-size: 2rem;
    margin: 20px 0 12px;
}

.error-404 p {
    color: var(--color-muted);
    max-width: 400px;
    margin: 0 auto 30px;
}

/* ==============================
   BACK TO TOP
============================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover { background: #c1121f; }

/* ==============================
   LOADING SKELETON
============================== */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--color-mid) 25%, var(--color-border) 50%, var(--color-mid) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.8s infinite;
    border-radius: var(--radius);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr 280px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .posts-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --header-height: 60px; }

    .header-inner { flex-wrap: wrap; gap: 10px; }
    .main-nav { display: none; width: 100%; order: 3; }
    .main-nav.open { display: block; padding: 10px 0; }
    .nav-menu { flex-direction: column; align-items: flex-start; }
    .menu-toggle { display: block; }
    .header-search { display: none; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-main .post-title { font-size: 1.5rem; }
    .hero-side { flex-direction: row; }

    .content-sidebar-wrap { grid-template-columns: 1fr; }
    #secondary { order: -1; }

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

    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .hero-side { flex-direction: column; }
    .posts-grid-3 { grid-template-columns: 1fr; }
    .posts-grid-4 { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .post-footer { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-main .post-title { font-size: 1.2rem; }
    .single-post-title { font-size: 1.6rem; }
}
