/*
Theme Name: WasabiNoise
Theme URI: https://wasabinoise.com
Author: Wasabi Cat
Author URI: https://wasabi.cat
Description: A cyberpunk-inspired dark theme for WasabiNoise blog. Neon green accents, retro-futuristic typography, and terminal aesthetics.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wasabinoise
Tags: blog, dark, custom-header, custom-menu, featured-images, threaded-comments
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1a1f2b;
    --border-color: #222;
    --border-subtle: #1a1f2b;

    --text-primary: #fff;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --text-faint: #555;

    --accent: #00ff41;
    --accent-dim: rgba(0, 255, 65, 0.4);
    --accent-glow: rgba(0, 255, 65, 0.15);
    --accent-subtle: rgba(0, 255, 65, 0.08);

    --red: #DC143C;

    --font-display: 'Silkscreen', monospace;
    --font-mono: 'JetBrains Mono', monospace;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --max-width: 1200px;
    --content-width: 820px;
    --gap: 32px;
    --radius: 8px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Film grain overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

a:hover {
    text-shadow: 0 0 8px var(--accent-dim);
}

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

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.15;
}

h1 { font-size: 2.8rem; margin-bottom: 0.5em; }
h2 { font-size: 2rem; margin-bottom: 0.5em; }
h3 { font-size: 1.5rem; margin-bottom: 0.4em; }
h4 { font-size: 1.2rem; margin-bottom: 0.4em; }

p {
    margin-bottom: 1.2em;
}

blockquote {
    border-left: 3px solid var(--accent);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--accent-subtle);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-secondary);
}

code, kbd, pre {
    font-family: var(--font-mono);
}

code {
    background: var(--bg-card);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent);
}

pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5em;
    overflow-x: auto;
    margin: 1.5em 0;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.85em;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5em 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.content-area {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 var(--gap);
}

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

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-title {
    font-family: var(--font-display);
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0;
    white-space: nowrap;
}

.site-title a {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-dim);
}

.site-title a:hover {
    text-shadow: 0 0 30px var(--accent-dim), 0 0 60px rgba(0, 255, 65, 0.15);
}

.site-description {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: none;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.main-navigation a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--accent);
    background: var(--accent-subtle);
    text-shadow: 0 0 8px var(--accent-dim);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* ============================================
   HERO / PAGE HEADER
   ============================================ */
.page-header {
    padding: 80px 0 40px;
    text-align: center;
}

.page-header .section-label {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.page-header .section-label::after {
    content: ' \2588';
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 40px rgba(0, 255, 65, 0.15);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0.8em auto 0;
}

/* ============================================
   POSTS GRID
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    padding-bottom: 80px;
}

/* ============================================
   POST CARD
   ============================================ */
.post-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-dim);
}

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

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

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

.post-card-thumbnail .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-display);
    font-size: 10px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.post-card-content {
    padding: 28px;
}

.post-card-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.post-card-meta .meta-separator {
    color: var(--border-color);
}

.post-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.post-card h2 a {
    color: var(--text-primary);
}

.post-card h2 a:hover {
    color: var(--accent);
    text-shadow: none;
}

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.2em;
}

.post-card .read-more {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    opacity: 0.7;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease, letter-spacing 0.2s ease;
}

.post-card .read-more:hover {
    opacity: 1;
    letter-spacing: 1px;
}

/* YouTube embed in cards */
.post-card-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 1.2em;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-card-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Cards without thumbnails */
.post-card.no-thumbnail .post-card-content {
    padding: 32px;
}

.post-card-category-inline {
    margin-bottom: 12px;
}

.category-badge-inline {
    font-family: var(--font-display);
    font-size: 10px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 4px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Hide embeds in excerpts */
.post-card-excerpt iframe,
.post-card-excerpt .wp-block-embed,
.post-card-excerpt figure {
    display: none;
}

/* Override WordPress block content-width constraints inside cards */
.post-card-content h2,
.post-card-content p,
.post-card-content .post-card-excerpt,
.post-card-content .post-card-excerpt p {
    max-width: none;
    width: 100%;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
    padding: 80px 0 40px;
    text-align: center;
}

.single-post-header .post-categories {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.single-post-header .post-categories a {
    background: var(--accent-subtle);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 3px;
    margin: 0 4px;
}

.single-post-header h1 {
    font-size: 2.6rem;
    max-width: 800px;
    margin: 0 auto 20px;
}

.single-post-header .post-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.single-post-header .post-meta a {
    color: var(--text-muted);
}

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

/* Featured image */
.single-featured-image {
    max-width: 960px;
    margin: 0 auto 48px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Post content */
.post-content {
    padding-bottom: 60px;
}

.post-content h2 {
    margin-top: 2em;
}

.post-content h3 {
    margin-top: 1.8em;
}

.post-content ul,
.post-content ol {
    margin: 1em 0 1.5em 1.5em;
}

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

.post-content a {
    border-bottom: 1px solid var(--accent-dim);
}

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

.post-content img {
    border-radius: var(--radius);
    margin: 1.5em auto;
}

.post-content .wp-block-image {
    margin: 2em 0;
}

/* Responsive YouTube embeds in post content */
.post-content iframe[src*="youtube.com"],
.post-content iframe[src*="youtu.be"] {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    border-radius: var(--radius);
    display: block;
    margin: 1.5em 0;
}

/* Bandcamp and other inline embeds — allow natural flow with spacing */
.post-content iframe[src*="bandcamp.com"] {
    border: none;
    border-radius: var(--radius);
    max-width: 100%;
    margin: 8px;
}

.post-content figure figcaption {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Post tags */
.post-tags {
    padding: 2em 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2em;
}

.post-tags span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-right: 8px;
}

.post-tags a {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 4px;
    margin: 4px 4px 4px 0;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.post-tags a:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
    text-shadow: none;
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    padding: 2em 0;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color 0.2s ease;
}

.post-navigation a:hover {
    border-color: var(--accent-dim);
    text-shadow: none;
}

.post-navigation .nav-label {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.post-navigation .nav-title {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 15px;
}

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

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    padding: 3em 0;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 2em;
}

.comments-title::before {
    content: '> ';
}

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

.comment {
    padding: 1.5em;
    margin-bottom: 1em;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.comment .comment-author {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.comment .comment-metadata {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    margin-bottom: 1em;
}

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

.comment-content p {
    font-size: 0.95rem;
}

.comment .children {
    list-style: none;
    margin-left: 2em;
    margin-top: 1em;
}

/* Comment form */
.comment-respond {
    margin-top: 2em;
}

.comment-reply-title {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 1.5em;
}

.comment-reply-title::before {
    content: '> ';
}

.comment-form label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

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

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

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

.comment-form .form-submit input {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.comment-form .form-submit input:hover {
    box-shadow: 0 0 20px var(--accent-dim);
    transform: translateY(-1px);
}

/* ============================================
   SIDEBAR / WIDGETS
   ============================================ */
.widget {
    margin-bottom: 2em;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.widget-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1em;
    padding-bottom: 0.8em;
    border-bottom: 1px solid var(--border-color);
}

.widget-title::before {
    content: '> ';
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
}

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

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

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

/* Search widget */
.search-form {
    display: flex;
    gap: 8px;
}

.search-field {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
}

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

.search-submit {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    cursor: pointer;
}

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

.pagination .page-numbers {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--accent-dim);
    color: var(--accent);
    text-shadow: none;
}

.pagination .page-numbers.current {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
    background: var(--bg-secondary);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-branding {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--accent);
}

.footer-info {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
}

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

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

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.footer-nav a {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.5px;
}

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

/* Footer projects */
.footer-projects {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.footer-section-label {
    color: var(--text-faint);
    letter-spacing: 0.5px;
}

.footer-separator {
    color: var(--border-color);
}

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

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

/* Transcript section */
.post-transcript {
    padding: 2.5em 0;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

.post-transcript h2 {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 1.5em;
}

.post-transcript h2::before {
    content: '> ';
}

.transcript-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2em;
}

.transcript-placeholder {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0;
}

/* Online status indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--accent); }
    50% { opacity: 0.4; box-shadow: 0 0 8px var(--accent); }
}

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

.error-404 .error-code {
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--accent);
    text-shadow: 0 0 60px var(--accent-dim);
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 h1 {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 2em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .posts-grid {
        gap: 40px;
    }

    .post-card.has-thumbnail {
        display: grid;
        grid-template-columns: 320px 1fr;
    }

    .post-card.has-thumbnail .post-card-thumbnail {
        aspect-ratio: auto;
    }

    .post-card.no-thumbnail {
        display: block;
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        gap: 32px;
    }
}

@media (max-width: 767px) {
    :root {
        --gap: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-navigation a {
        display: block;
        padding: 10px 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .page-header {
        padding: 60px 0 30px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .single-post-header h1 {
        font-size: 1.8rem;
    }

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

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

    .error-404 .error-code {
        font-size: 80px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

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

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin: 1.5em auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

/* Gutenberg block styles */
.wp-block-button__link {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 12px 28px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.wp-block-button__link:hover {
    box-shadow: 0 0 20px var(--accent-dim);
    color: var(--bg-primary);
    text-shadow: none;
}

.wp-block-separator {
    border-color: var(--border-color);
}

.wp-block-quote {
    border-left-color: var(--accent);
}

.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table td,
.wp-block-table th {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    font-size: 14px;
}

.wp-block-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
