/*
Theme Name: GoblinScape
Theme URI: https://goblinscape.com
Author: GoblinScape
Description: A dark fantasy theme for GoblinScape - your DnD, RPG, and gaming content hub.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: goblinscape
Tags: dark, fantasy, gaming, blog, two-columns, custom-menu, featured-images, sticky-post, threaded-comments
*/

/* =============================================
   FONTS & ROOT VARIABLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cinzel+Decorative:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=IM+Fell+English:ital@0;1&display=swap');

:root {
    --bg-base:       #080810;
    --bg-surface:    #0f0f1a;
    --bg-elevated:   #161625;
    --bg-card:       #1a1a2e;

    --accent-gold:   #d4af37;
    --accent-gold-light: #f0cc55;
    --accent-purple: #7b2d8b;
    --accent-purple-light: #9d3daf;
    --accent-crimson: #8b1a1a;
    --accent-green:  #2d6e3e;

    --text-primary:  #e8e6d9;
    --text-muted:    #8a8899;
    --text-faint:    #4a4a5e;

    --border:        #2a2a3e;
    --border-gold:   rgba(212, 175, 55, 0.3);

    --font-heading:  'Cinzel', 'Georgia', serif;
    --font-display:  'Cinzel Decorative', 'Georgia', serif;
    --font-body:     'Crimson Text', 'Georgia', serif;
    --font-lore:     'IM Fell English', 'Georgia', serif;

    --radius:        4px;
    --radius-lg:     8px;

    --shadow-glow-gold:   0 0 20px rgba(212, 175, 55, 0.15);
    --shadow-glow-purple: 0 0 20px rgba(123, 45, 139, 0.2);
    --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.6);

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

/* =============================================
   RESET & BASE
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(123, 45, 139, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 26, 26, 0.05) 0%, transparent 60%);
    min-height: 100vh;
}

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

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

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

ul, ol {
    padding-left: 1.5em;
}

/* =============================================
   ORNAMENT / DECORATIVE
   ============================================= */

.ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-gold);
    opacity: 0.5;
    margin: 0.5em 0;
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-gold));
}

.ornament::after {
    background: linear-gradient(to left, transparent, var(--accent-gold));
}

/* =============================================
   SITE HEADER
   ============================================= */

#masthead {
    background: linear-gradient(180deg, #050508 0%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.8), var(--shadow-glow-gold);
}

.site-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.site-logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    display: block;
    max-height: 48px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.35));
    transition: filter 0.2s ease;
}

.site-logo:hover {
    filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.55));
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    margin: 0;
}

.site-title a {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5d050 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

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

/* =============================================
   NAVIGATION
   ============================================= */

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 0;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 4px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
    border: 1px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.07);
    border-color: var(--border-gold);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius);
    min-width: 180px;
    flex-direction: column;
    display: none;
    box-shadow: var(--shadow-card);
    z-index: 200;
}

.main-navigation li:hover > .sub-menu {
    display: flex;
}

.main-navigation .sub-menu a {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-gold);
    color: var(--accent-gold);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =============================================
   HERO BANNER
   ============================================= */

.site-hero {
    background:
        linear-gradient(180deg, rgba(8, 8, 16, 0.85) 0%, rgba(8, 8, 16, 0.6) 50%, rgba(8, 8, 16, 0.9) 100%),
        linear-gradient(135deg, #1a0a2e 0%, #0a0a10 40%, #1a0808 100%);
    padding: 80px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-gold);
    position: relative;
    overflow: hidden;
}

.site-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 100%, rgba(123, 45, 139, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 26, 26, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.7;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, #c8a020 0%, #f5d050 40%, #c8a020 70%, #e8b830 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-tagline {
    font-family: var(--font-lore);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8b2000, #c83200);
    color: var(--accent-gold);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 20px rgba(200, 50, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a02800, #e03800);
    color: var(--accent-gold-light);
    box-shadow: 0 0 30px rgba(200, 50, 0, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-gold);
    border-color: var(--border-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-gold-light);
    transform: translateY(-1px);
}

/* =============================================
   LAYOUT
   ============================================= */

.site-main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.site-main-wrapper.no-sidebar {
    grid-template-columns: 1fr;
    max-width: var(--content-width);
}

/* =============================================
   SECTION HEADINGS
   ============================================= */

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    white-space: nowrap;
}

.section-title::before {
    content: '⚔ ';
    opacity: 0.7;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-gold), transparent);
}

/* =============================================
   POST CARDS
   ============================================= */

.posts-grid {
    display: grid;
    gap: 24px;
}

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

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-card);
}

.post-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card), var(--shadow-glow-gold);
}

.post-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.25s;
}

.post-card:hover .post-card-thumb {
    opacity: 1;
}

.post-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a0a2e, #0a0a20, #1a0808);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.4;
}

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

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.post-category-badge {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 3px 10px;
    border-radius: 2px;
}

.post-date {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    text-transform: uppercase;
}

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

.post-card-title a {
    color: inherit;
}

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

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.read-more {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.read-more::after {
    content: ' →';
}

.read-more:hover {
    opacity: 1;
    color: var(--accent-gold-light);
}

.post-author-mini {
    font-size: 0.75rem;
    color: var(--text-faint);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

/* =============================================
   FEATURED POST (LARGE)
   ============================================= */

.post-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

.post-card-featured .post-card-thumb,
.post-card-featured .post-card-thumb-placeholder {
    aspect-ratio: auto;
    height: 100%;
}

.post-card-featured .post-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.post-card-featured .post-card-excerpt {
    -webkit-line-clamp: 4;
}

/* =============================================
   SINGLE POST / CONTENT
   ============================================= */

.entry-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-gold);
}

.entry-header .post-category-badge {
    margin-bottom: 12px;
    display: inline-block;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.entry-meta a:hover {
    color: var(--accent-gold);
}

.entry-thumbnail {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-card), var(--shadow-glow-gold);
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-heading);
    color: var(--accent-gold-light);
    margin: 2em 0 0.75em;
    line-height: 1.25;
}

.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }

.entry-content h2::before {
    content: '⚔ ';
    font-size: 0.8em;
    opacity: 0.5;
}

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

.entry-content blockquote {
    border-left: 3px solid var(--accent-gold);
    background: var(--bg-elevated);
    padding: 16px 24px;
    margin: 2em 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-lore);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.entry-content blockquote::before {
    content: '\201C';
    font-size: 3em;
    line-height: 0;
    vertical-align: -0.5em;
    color: var(--accent-gold);
    opacity: 0.4;
    margin-right: 4px;
}

.entry-content code {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: 0.875em;
    color: #7dd3a8;
}

.entry-content pre {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.5em 0;
}

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

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25em;
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.entry-content th {
    background: var(--bg-elevated);
    border: 1px solid var(--border-gold);
    padding: 10px 16px;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.entry-content td {
    border: 1px solid var(--border);
    padding: 10px 16px;
}

.entry-content tr:nth-child(even) td {
    background: var(--bg-elevated);
}

.entry-content img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.entry-content a {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.entry-content a:hover {
    border-bottom-color: var(--accent-gold);
}

.entry-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.entry-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.entry-tags-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.tag-pill {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    transition: border-color 0.2s, color 0.2s;
}

.tag-pill:hover {
    border-color: var(--border-gold);
    color: var(--accent-gold);
}

/* =============================================
   POST NAVIGATION
   ============================================= */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}

.nav-previous,
.nav-next {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: border-color 0.2s;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: var(--border-gold);
}

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

.nav-label {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-faint);
    display: block;
    margin-bottom: 6px;
}

.nav-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.3;
}

/* =============================================
   COMMENTS
   ============================================= */

.comments-area {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border-gold);
}

.comments-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 32px;
}

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

.comment {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid var(--border-gold);
    width: 40px;
    height: 40px;
}

.comment-author-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.7rem;
    color: var(--text-faint);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.comment-content {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.comment-form-wrapper {
    margin-top: 40px;
}

.comment-form-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--border-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-form .form-group {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.comment-form .submit {
    background: linear-gradient(135deg, #5a1a7a, #7b2d8b);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.comment-form .submit:hover {
    background: linear-gradient(135deg, #6a2090, #9035a0);
    box-shadow: var(--shadow-glow-purple);
}

/* =============================================
   SIDEBAR
   ============================================= */

.sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.widget:hover {
    border-color: rgba(212, 175, 55, 0.15);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-gold);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

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

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

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

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

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s;
    background: var(--bg-card);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    border-color: var(--border-gold);
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.07);
}

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

#colophon {
    background: linear-gradient(0deg, #040408 0%, var(--bg-surface) 100%);
    border-top: 1px solid var(--border-gold);
    margin-top: 80px;
}

.footer-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .site-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-faint);
    line-height: 1.6;
    margin-top: 8px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-gold);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

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

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--text-faint);
    transition: color 0.2s;
}

.footer-col ul li a::before {
    content: '› ';
    color: var(--accent-gold);
    opacity: 0.4;
}

.footer-col ul li a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.footer-bottom a {
    color: var(--text-faint);
}

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

/* =============================================
   404 / SEARCH / NO RESULTS
   ============================================= */

.error-page,
.no-results {
    text-align: center;
    padding: 80px 24px;
}

.error-page-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    opacity: 0.3;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.error-page h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

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

/* =============================================
   SEARCH FORM
   ============================================= */

.search-form {
    display: flex;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 10px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--border-gold);
}

.search-submit {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 10px 16px;
    color: var(--accent-gold);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s;
}

.search-submit:hover {
    background: rgba(212, 175, 55, 0.2);
}

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

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-main-wrapper {
        grid-template-columns: 1fr;
        padding: 32px 16px;
    }

    .sidebar {
        position: static;
    }

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

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

    .post-card-featured .post-card-thumb,
    .post-card-featured .post-card-thumb-placeholder {
        aspect-ratio: 16/9;
        height: auto;
    }

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

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 40px 16px 24px;
    }

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

    .menu-toggle {
        display: block;
    }

    .main-navigation.toggled ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-gold);
        padding: 16px;
        gap: 4px;
    }

    .main-navigation:not(.toggled) ul {
        display: none;
    }

    .site-hero {
        padding: 60px 16px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.3rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .entry-title {
        font-size: 1.6rem;
    }
}

/* =============================================
   SCROLLBAR
   ============================================= */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.3);
}

/* =============================================
   SELECTION
   ============================================= */

::selection {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold-light);
}
