/*
Theme Name: Flavor Mag
Theme URI: https://flavor-mag.example.com
Author: Flavor Mag Team
Author URI: https://flavor-mag.example.com
Description: A magazine-style editorial theme with hero sections, mixed grid layouts, and professional typography. Inspired by FlyMag, TopList, and traditional editorial sites.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flavor-mag
Tags: magazine, editorial, blog, grid-layout, custom-logo, custom-menu, featured-images, right-sidebar, theme-options
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
    /* Colors */
    --color-accent: #dc2626;
    --color-accent-hover: #b91c1c;
    --color-accent-light: rgba(220, 38, 38, 0.06);
    --color-accent-medium: rgba(220, 38, 38, 0.12);
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-heading: #0f172a;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-border-light: rgba(0, 0, 0, 0.03);
    --color-footer-bg: #0f172a;
    --color-footer-surface: #1e293b;
    --color-footer-text: rgba(255, 255, 255, 0.7);
    --color-footer-heading: rgba(255, 255, 255, 0.95);
    --color-footer-muted: rgba(255, 255, 255, 0.4);
    --color-footer-border: rgba(255, 255, 255, 0.08);

    /* Shadows — multi-layer */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.04), 0 10px 24px rgba(0,0,0,0.08);
    --shadow-xl: 0 8px 12px rgba(0,0,0,0.04), 0 20px 40px rgba(0,0,0,0.12);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #dc2626, #f97316);
    --gradient-accent-hover: linear-gradient(135deg, #b91c1c, #ea580c);
    --gradient-dark: linear-gradient(to bottom, rgba(15,23,42,0.2) 0%, rgba(15,23,42,0.5) 40%, rgba(15,23,42,0.9) 100%);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

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

body {
    font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.011em;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--color-heading);
}

h4, h5, h6 {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-heading);
}

h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.85rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.4rem; }
h5 { font-size: 1rem; margin-bottom: 0.3rem; }
h6 { font-size: 0.875rem; margin-bottom: 0.3rem; }

p {
    margin-bottom: 1.25rem;
}

blockquote {
    border-left: 4px solid transparent;
    border-image: var(--gradient-accent) 1;
    padding: 20px 24px;
    margin: 1.5em 0;
    background: var(--color-accent-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
}

blockquote p:last-child {
    margin-bottom: 0;
}

pre {
    background: var(--color-heading);
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

code {
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ==========================================================================
   Layout Container
   ========================================================================== */

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Top Bar — Gradient Accent Line
   ========================================================================== */

.top-bar {
    background: var(--color-heading);
    color: rgba(255,255,255,0.7);
    font-size: 0.8125rem;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-accent) 1;
}

.top-bar .site-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-date {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.top-bar-links a {
    color: rgba(255,255,255,0.6);
    margin-left: 15px;
    font-size: 0.8125rem;
    transition: color var(--transition-fast);
}

.top-bar-links a:hover {
    color: #fff;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
    background: var(--color-surface);
    padding: 28px 0 0;
    border-bottom: 1px solid var(--color-border);
}

.header-branding {
    text-align: center;
    padding-bottom: 22px;
}

.site-logo img {
    max-height: 60px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--color-heading);
    transition: color var(--transition-fast);
}

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

.site-title a i {
    margin-right: 8px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-top: 6px;
    font-style: italic;
}

/* ==========================================================================
   Primary Navigation — Animated Underline
   ========================================================================== */

.primary-navigation {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border-light);
}

.primary-navigation ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.primary-navigation li {
    position: relative;
}

.primary-navigation a {
    display: block;
    padding: 14px 18px;
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast);
    position: relative;
}

.primary-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 36px);
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-pill);
    transition: transform var(--transition-medium);
    transform-origin: center;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after {
    transform: translateX(-50%) scaleX(1);
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
    color: var(--color-accent);
}

.primary-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-surface);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    z-index: 1000;
    flex-direction: column;
    overflow: hidden;
}

.primary-navigation li:hover > ul {
    display: flex;
}

.primary-navigation ul ul a {
    padding: 11px 18px;
    font-size: 0.875rem;
    text-transform: none;
    border-bottom: 1px solid var(--color-border-light);
}

.primary-navigation ul ul a::after {
    display: none;
}

.primary-navigation ul ul li:last-child a {
    border-bottom: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 10px auto;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ==========================================================================
   Hero Section — Taller, Navy-Slate Overlay
   ========================================================================== */

.hero-section {
    position: relative;
    height: 560px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-category {
    display: inline-block;
    background: var(--gradient-accent);
    color: #fff;
    padding: 6px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}

.hero-category a {
    color: #fff;
}

.hero-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 12px;
    max-width: 720px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero-title a {
    color: #fff;
}

.hero-title a:hover {
    color: rgba(255,255,255,0.9);
}

.hero-meta {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
}

.hero-meta a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.hero-meta a:hover {
    color: #fff;
}

.hero-meta span {
    margin-right: 15px;
}

.hero-no-image {
    background: linear-gradient(135deg, var(--color-heading) 0%, var(--color-footer-surface) 100%);
}

/* ==========================================================================
   Main Content + Sidebar Layout
   ========================================================================== */

.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
    padding: 32px 0 40px;
}

.main-content {
    min-width: 0;
}

/* ==========================================================================
   Post Cards — Modern Cards
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.post-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    transition: box-shadow var(--transition-medium), transform var(--transition-medium);
}

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

.post-card.featured-card {
    grid-column: 1 / -1;
}

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

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

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.post-card-thumbnail .card-category {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gradient-accent);
    color: #fff;
    padding: 5px 14px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.post-card-thumbnail .card-category a {
    color: #fff;
}

.post-card-body {
    padding: 20px;
}

.post-card-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

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

.post-card-title a {
    color: var(--color-heading);
    transition: color var(--transition-fast);
}

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

.post-card-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.post-card-meta a {
    color: var(--color-text-muted);
    font-weight: 600;
    transition: color var(--transition-fast);
}

.post-card-meta a:hover {
    color: var(--color-accent);
}

.post-card-meta span {
    margin-right: 12px;
}

.no-thumbnail {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* ==========================================================================
   Pagination — Pill Buttons
   ========================================================================== */

.pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.pagination .page-numbers.current {
    background: var(--gradient-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.pagination .page-numbers.dots {
    background: none;
    border: none;
    padding: 0 6px;
    box-shadow: none;
}

.pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Sidebar — Modern Widgets
   ========================================================================== */

.site-sidebar {
    min-width: 0;
}

.widget {
    background: var(--color-surface);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-accent) 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9375rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.widget ul li a:hover {
    color: var(--color-accent);
}

.widget select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    background: var(--color-surface);
}

/* Search Widget */
.widget .search-form {
    display: flex;
}

.widget .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    font-size: 0.9375rem;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--color-text);
    background: var(--color-surface);
    outline: none;
    transition: border-color var(--transition-fast);
}

.widget .search-field:focus {
    border-color: var(--color-accent);
}

.widget .search-submit {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
    transition: box-shadow var(--transition-fast);
}

.widget .search-submit:hover {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* ==========================================================================
   Single Post / Article
   ========================================================================== */

.single-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.single-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
}

.single-hero-content {
    position: relative;
    z-index: 2;
    padding: 36px 40px;
    color: #fff;
    width: 100%;
}

.single-hero-content .hero-category {
    display: inline-block;
    background: var(--gradient-accent);
    color: #fff;
    padding: 6px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}

.single-hero-content .hero-category a {
    color: #fff;
}

.single-hero-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 0;
    max-width: 720px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--color-text-muted);
    opacity: 0.5;
}

/* Article Content */
.article-header {
    margin-bottom: 25px;
}

.article-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    color: var(--color-heading);
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.article-meta .author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border-light);
}

.article-meta .author-name {
    font-weight: 600;
    color: var(--color-text);
}

.article-meta .author-name a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.article-meta .author-name a:hover {
    color: var(--color-accent);
}

.article-meta .meta-sep {
    color: var(--color-border);
}

.article-meta .post-date {
    color: var(--color-text-muted);
}

.article-meta .post-category a {
    display: inline-block;
    background: var(--color-accent-light);
    color: var(--color-accent);
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.article-meta .post-category a:hover {
    background: var(--color-accent);
    color: #fff;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    max-width: 100%;
}

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

.article-body h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.article-body h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.article-body img {
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
}

.article-body figure {
    margin: 1.5rem 0;
}

.article-body figcaption {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}

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

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-body th,
.article-body td {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.article-body th {
    background: var(--color-accent-light);
    font-weight: 700;
    color: var(--color-heading);
}

/* Tags — Pill with border */
.article-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.article-tags span {
    font-weight: 700;
    margin-right: 8px;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.article-tags a {
    display: inline-block;
    background: transparent;
    color: var(--color-text-secondary);
    padding: 5px 14px;
    font-size: 0.8125rem;
    margin: 4px 4px 4px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.article-tags a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent-light);
}

.author-box-info h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.author-box-info h4 a {
    color: var(--color-heading);
    transition: color var(--transition-fast);
}

.author-box-info h4 a:hover {
    color: var(--color-accent);
}

.author-box-bio {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

.related-posts-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--color-heading);
    letter-spacing: -0.02em;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-post-card {
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition-medium), transform var(--transition-medium);
}

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

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

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.related-post-body {
    padding: 16px;
}

.related-post-body h4 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
}

.related-post-body h4 a {
    color: var(--color-heading);
    transition: color var(--transition-fast);
}

.related-post-body h4 a:hover {
    color: var(--color-accent);
}

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

/* Post Navigation */
.post-navigation {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    background: var(--color-surface);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    box-shadow: var(--shadow-md);
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.post-navigation a {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

/* Comments Section */
.comments-area {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.comment-list {
    list-style: none;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.comment-list .comment-body {
    display: flex;
    gap: 15px;
}

.comment-list .comment-author .avatar {
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.comment-list .comment-author .fn {
    font-weight: 700;
    color: var(--color-heading);
}

.comment-list .comment-metadata {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.comment-list .comment-metadata a {
    color: var(--color-text-muted);
}

.comment-list .comment-content p {
    margin-bottom: 0.75rem;
}

.comment-list .children {
    margin-left: 40px;
    list-style: none;
}

.comment-respond {
    margin-top: 32px;
}

.comment-reply-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9375rem;
    margin-bottom: 16px;
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

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

.comment-form .form-submit input {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-form .form-submit input:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
}

/* ==========================================================================
   Archive / Category Header
   ========================================================================== */

.archive-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.archive-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-heading);
    letter-spacing: -0.025em;
}

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

.archive-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

/* ==========================================================================
   Page Content
   ========================================================================== */

.page-content {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.page-content .article-body {
    font-size: 17px;
    line-height: 1.8;
}

.page-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--color-heading);
    letter-spacing: -0.025em;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404-content {
    text-align: center;
    padding: 72px 24px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.error-404-content .error-code {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 7rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.4;
}

.error-404-content h1 {
    font-size: 1.85rem;
    margin-bottom: 16px;
}

.error-404-content p {
    font-size: 1.0625rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto 28px;
}

.error-404-content .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 28px;
}

.error-404-content .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--color-text);
    outline: none;
}

.error-404-content .search-field:focus {
    border-color: var(--color-accent);
}

.error-404-content .search-submit {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    padding: 12px 22px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Source Sans 3', sans-serif;
}

.error-404-content .back-home {
    display: inline-block;
    background: var(--gradient-accent);
    color: #fff;
    padding: 14px 36px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    border-radius: var(--radius-pill);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.error-404-content .back-home:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
    color: #fff;
}

/* ==========================================================================
   Search Results
   ========================================================================== */

.search-results-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.search-results-header h1 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.85rem;
    letter-spacing: -0.025em;
}

.search-results-header h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.search-no-results {
    text-align: center;
    padding: 48px 24px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.search-no-results h2 {
    margin-bottom: 16px;
}

.search-no-results p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* ==========================================================================
   Footer — Dark & Premium
   ========================================================================== */

.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    margin-top: 60px;
}

.footer-widgets {
    padding: 48px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.footer-widget-area .widget {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.footer-widget-area .widget-title {
    color: var(--color-footer-heading);
    border-bottom: none;
    border-image: none;
    padding-bottom: 12px;
    position: relative;
    font-size: 0.9375rem;
}

.footer-widget-area .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-pill);
}

.footer-widget-area .widget ul li {
    border-bottom-color: var(--color-footer-border);
}

.footer-widget-area .widget ul li a {
    color: var(--color-footer-text);
}

.footer-widget-area .widget ul li a:hover {
    color: var(--color-footer-heading);
}

.footer-widget-area .widget,
.footer-widget-area .widget a {
    color: var(--color-footer-text);
}

.footer-bottom {
    border-top: 1px solid var(--color-footer-border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--color-footer-muted);
}

.footer-menu ul {
    display: flex;
    gap: 24px;
}

.footer-menu a {
    color: var(--color-footer-muted);
    font-size: 0.8125rem;
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--color-footer-heading);
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.alignleft {
    float: left;
    margin: 0 20px 15px 0;
}

.alignright {
    float: right;
    margin: 0 0 15px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 15px;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 1.25rem;
}

.wp-caption-text {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1.25rem;
}

.gallery-item {
    flex: 1;
    min-width: 100px;
}

.sticky .post-card {
    border: 2px solid transparent;
    background-image: linear-gradient(var(--color-surface), var(--color-surface)), var(--gradient-accent);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.wp-block-image figcaption {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
}

/* ==========================================================================
   Responsive — 1200px
   ========================================================================== */

@media (max-width: 1200px) {
    .site-container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

/* ==========================================================================
   Responsive — 768px (Tablet)
   ========================================================================== */

@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        margin-top: 30px;
    }

    .hero-section {
        height: 360px;
        border-radius: 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-content {
        padding: 24px 20px;
    }

    .single-hero {
        height: 320px;
        border-radius: 0;
    }

    .article-title {
        font-size: 1.65rem;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .primary-navigation .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .primary-navigation .nav-menu.toggled {
        display: flex;
    }

    .primary-navigation a {
        padding: 12px 18px;
        border-bottom: 1px solid var(--color-border-light);
    }

    .primary-navigation a::after {
        display: none;
    }

    .primary-navigation ul ul {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--color-accent-light);
    }

    .primary-navigation ul ul a {
        padding-left: 36px;
    }

    .top-bar .site-container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .top-bar-links a {
        margin: 0 8px;
    }

    .site-title {
        font-size: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-content {
        padding: 28px;
        border-radius: var(--radius-md);
    }

    .error-404-content .error-code {
        font-size: 5rem;
    }
}

/* ==========================================================================
   Responsive — 480px (Mobile)
   ========================================================================== */

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .site-container {
        padding: 0 15px;
    }

    .hero-section {
        height: 280px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-meta {
        font-size: 0.75rem;
    }

    .single-hero {
        height: 240px;
    }

    .single-hero-title {
        font-size: 1.4rem;
    }

    .site-title {
        font-size: 1.625rem;
    }

    .article-title {
        font-size: 1.4rem;
    }

    .article-body {
        font-size: 16px;
    }

    .article-meta {
        gap: 10px;
        font-size: 0.8125rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .page-content {
        padding: 20px;
    }

    .error-404-content {
        padding: 48px 16px;
        border-radius: var(--radius-sm);
    }

    .error-404-content .error-code {
        font-size: 3.5rem;
    }

    .breadcrumbs {
        font-size: 0.75rem;
    }

    .comment-list .children {
        margin-left: 15px;
    }

    .post-card-body {
        padding: 16px;
    }

    .post-card {
        border-radius: var(--radius-md);
    }

    .post-card-title {
        font-size: 1rem;
    }

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

    .footer-menu ul {
        flex-direction: column;
        gap: 12px;
    }
}
