/*
 Theme Name:   Tinkers Shop
 Theme URI:    https://github.com/marcusdycus/didactic-octo-fishstick
 Description:  A deliberately cheesy portfolio theme that's technically impressive underneath
 Author:       Marcus Dycus
 Version:      1.0.0
 Text Domain:  tinkersshop
 Requires at least: 6.0
 Requires PHP: 8.0
*/

/* ==========================================================================
   CSS RESET & BASE
   Clean foundation under the chaos
   ========================================================================== */

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

:root {
    /* The "bad" palette - neon chaos */
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    --neon-blue: #00f0ff;
    --neon-yellow: #fff000;
    --neon-orange: #ff6600;
    --hot-red: #ff0040;

    /* The actual good palette underneath */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --accent: #ff00ff;
    --accent-secondary: #00f0ff;

    /* Spacing system (actually well-structured) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Type scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 2rem;
    --text-3xl: 3rem;
    --text-4xl: 4.5rem;
}

body {
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Override parent theme */
body .wp-site-blocks {
    padding: 0 !important;
}

/* ==========================================================================
   FUNKY NAV HEADER
   Glassmorphic sticky nav with neon accents and scroll progress
   ========================================================================== */

.funky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 0, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.funky-header.scrolled {
    box-shadow: 0 4px 30px rgba(255, 0, 255, 0.1);
}

.funky-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Brand / Logo */
.funky-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.funky-logo img {
    max-height: 45px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--neon-pink));
    transition: filter 0.3s ease;
}

.funky-logo:hover img {
    filter: drop-shadow(0 0 16px var(--neon-pink)) drop-shadow(0 0 32px var(--neon-blue));
}

.funky-logo-text {
    text-decoration: none;
    font-size: var(--text-xl);
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: text-shadow 0.3s ease;
}

.funky-logo-text:hover {
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-blue);
}

.logo-bracket {
    color: var(--neon-pink);
    font-family: 'Courier New', monospace;
    font-weight: 400;
}

.logo-name {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.funky-tagline {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-style: italic;
    display: none;
}

@media (min-width: 900px) {
    .funky-tagline {
        display: inline;
    }
}

/* Glitch hover effect for logo */
.glitch-hover {
    position: relative;
}

.glitch-hover:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Nav List */
.funky-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.funky-nav-item {
    position: relative;
}

.funky-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    font-size: var(--text-sm);
}

.funky-nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(0, 240, 255, 0.1));
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 8px;
}

.funky-nav-link:hover::before,
.funky-nav-link:focus-visible::before {
    opacity: 1;
}

.funky-nav-link:hover,
.funky-nav-link:focus-visible {
    color: var(--text-primary);
}

.funky-nav-link:hover .nav-index {
    color: var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
}

.nav-index {
    font-family: 'Courier New', monospace;
    font-size: var(--text-xs);
    color: var(--neon-blue);
    opacity: 0.6;
    transition: all 0.25s ease;
    font-weight: 700;
}

.nav-label {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: var(--text-xs);
    position: relative;
    z-index: 1;
}

.nav-desc {
    display: none;
}

/* Current page indicator */
.funky-nav-item.current-menu-item .funky-nav-link,
.funky-nav-item.current_page_item .funky-nav-link {
    color: var(--neon-pink);
}

.funky-nav-item.current-menu-item .nav-index,
.funky-nav-item.current_page_item .nav-index {
    color: var(--neon-pink);
    opacity: 1;
}

.funky-nav-item.current-menu-item .funky-nav-link::after,
.funky-nav-item.current_page_item .funky-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--neon-pink);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-pink);
}

/* Scroll progress bar */
.header-progress-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.header-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-green));
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--neon-pink);
}

/* Hamburger toggle (mobile) */
.funky-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    z-index: 1001;
}

.funky-menu-toggle:hover {
    border-color: var(--neon-pink);
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--neon-pink);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.funky-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.funky-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.funky-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 768px) {
    .funky-menu-toggle {
        display: flex;
    }

    .funky-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        z-index: 9998;
        background: #0a0a0f;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 100px var(--space-md) var(--space-md);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .funky-nav.open {
        transform: translateX(0);
    }

    .funky-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-xs);
        width: 100%;
    }

    .funky-nav-link {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-lg);
        border: 1px solid rgba(255, 0, 255, 0.15);
        border-radius: 12px;
        color: var(--text-primary);
    }

    .funky-nav-link:hover,
    .funky-nav-link:active {
        background: rgba(255, 0, 255, 0.1);
    }

    .nav-index {
        font-size: var(--text-lg);
        min-width: 2.5em;
        color: var(--neon-pink);
        opacity: 1;
    }

    .nav-label {
        font-size: var(--text-base);
    }

    /* Keep hamburger above the nav panel */
    .funky-menu-toggle {
        z-index: 9999;
    }

    .nav-label {
        font-size: var(--text-base);
    }
}

/* Push page content below fixed header */
#cringe-wrapper {
    padding-top: 72px;
}

.hero-section {
    min-height: calc(100vh - 72px);
}

/* ==========================================================================
   CURSOR CANVAS
   ========================================================================== */

#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ==========================================================================
   GLASSMORPHISM UTILITY
   The one modern trend used ironically AND effectively
   ========================================================================== */

.glassmorphism {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glassmorphism:hover {
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: 0 8px 32px rgba(255, 0, 255, 0.1);
}

/* ==========================================================================
   ANIMATIONS
   Smooth, performant (GPU-accelerated) — the irony is intentional
   ========================================================================== */

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

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-8deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

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

@keyframes rainbow {
    0% { color: #ff0000; }
    16% { color: #ff8800; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    66% { color: #0088ff; }
    83% { color: #8800ff; }
    100% { color: #ff0000; }
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-blue);
        transform: translate(0);
    }
    20% {
        text-shadow: -3px 0 var(--neon-pink), 3px 0 var(--neon-blue);
        transform: translate(2px, -1px);
    }
    40% {
        text-shadow: 3px 0 var(--neon-pink), -3px 0 var(--neon-blue);
        transform: translate(-2px, 1px);
    }
    60% {
        text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-blue);
        transform: translate(1px, 2px);
    }
    80% {
        text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-blue);
        transform: translate(-1px, -2px);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skill-fill {
    from { width: 0; }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(8px); opacity: 1; }
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 5px var(--neon-pink); }
    50% { box-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink); }
}

/* Animation utility classes */
.blink { animation: blink 1s step-end infinite; }
.spinning { animation: spin 4s linear infinite; }
.wobble { animation: wobble 2s ease-in-out infinite; }
.pulse-icon { animation: pulse 2s ease-in-out infinite; }
.rainbow-text { animation: rainbow 3s linear infinite; }

/* ==========================================================================
   MARQUEE BARS
   ========================================================================== */

.marquee-top,
.footer-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-green), var(--neon-yellow));
    background-size: 300% 100%;
    animation: gradient-shift 8s ease infinite;
    padding: var(--space-xs) 0;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--bg-dark);
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 20s linear infinite;
    gap: 0;
}

.marquee-content span {
    padding: 0 2rem;
    flex-shrink: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-md);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 0, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: float-up 1s ease-out;
}

.badge-ribbon {
    display: inline-block;
    background: var(--hot-red);
    color: white;
    padding: 4px 24px;
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: 4px;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    animation: badge-pulse 2s ease-in-out infinite;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    animation: glitch 3s ease-in-out infinite;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-style: italic;
}

.hero-subtitle .blink {
    color: var(--neon-green);
    font-weight: 700;
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.btn-cheesy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary-cheesy {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3);
}

.btn-primary-cheesy:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 0, 255, 0.5);
}

.btn-secondary-cheesy {
    background: transparent;
    color: var(--neon-green);
    border-color: var(--neon-green);
}

.btn-secondary-cheesy:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(57, 255, 20, 0.3);
}

.btn-sparkle {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Hit Counter */
.hit-counter {
    margin-top: var(--space-sm);
}

.counter-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    border: 2px solid var(--neon-green);
    border-radius: 6px;
    padding: 6px 16px;
    font-family: 'Courier New', monospace;
}

.counter-label {
    color: var(--neon-green);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.counter-digits {
    display: inline-flex;
    gap: 2px;
}

.counter-digits .digit {
    background: #001a00;
    color: var(--neon-green);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: var(--text-sm);
    font-weight: 700;
    min-width: 1.2em;
    text-align: center;
    text-shadow: 0 0 8px var(--neon-green);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    z-index: 2;
}

.arrow-down {
    color: var(--neon-pink);
    font-size: var(--text-sm);
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

.arrow-down:nth-child(2) { animation-delay: 0.15s; }
.arrow-down:nth-child(3) { animation-delay: 0.3s; }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */

section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xs);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-style: italic;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.construction-tape {
    background: repeating-linear-gradient(
        -45deg,
        var(--neon-yellow),
        var(--neon-yellow) 20px,
        #222 20px,
        #222 40px
    );
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    display: inline-block;
}

.construction-tape h2 {
    color: #000;
    text-shadow: none;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.about-card {
    padding: var(--space-md);
    text-align: center;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.about-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
    color: var(--neon-pink);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-sm);
}

.skill-card {
    padding: var(--space-md);
    text-align: center;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-xs);
}

.skill-name {
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.skill-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-xs);
}

.skill-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-percent {
    font-size: var(--text-xs);
    font-family: 'Courier New', monospace;
    color: var(--neon-green);
    min-width: 3em;
    text-align: right;
}

.skill-badge {
    display: inline-block;
    background: rgba(255, 0, 255, 0.15);
    color: var(--neon-pink);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.project-card {
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: -30px;
    background: var(--hot-red);
    color: white;
    padding: 4px 40px;
    font-size: var(--text-xs);
    font-weight: 700;
    transform: rotate(45deg);
    letter-spacing: 2px;
}

.wip-badge { background: var(--neon-orange); }
.classic-badge { background: var(--neon-blue); color: var(--bg-dark); }

.project-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
    color: var(--neon-blue);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-sm);
}

.tech-tag {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-blue);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.project-link {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 700;
    transition: letter-spacing 0.3s ease;
}

.project-link:hover {
    letter-spacing: 2px;
}

.under-construction-banner {
    display: inline-block;
    background: var(--bg-card);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 6px;
    font-size: var(--text-sm);
    color: var(--neon-orange);
    margin-top: var(--space-xs);
    border: 1px dashed var(--neon-orange);
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.blog-card {
    padding: var(--space-md);
}

.blog-date {
    font-size: var(--text-xs);
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xs);
}

.blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--neon-pink);
}

.blog-card p {
    color: var(--text-secondary);
    margin: var(--space-xs) 0;
}

.read-more-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-sm);
}

.no-posts {
    grid-column: 1 / -1;
    padding: var(--space-lg);
    text-align: center;
}

.no-posts p {
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg);
    text-align: center;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
    font-size: var(--text-lg);
}

.contact-icon {
    font-size: 1.8rem;
    display: inline-block;
}

.contact-item a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--neon-pink);
}

.guestbook-cta {
    margin-top: var(--space-sm);
}

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

.site-footer-cheesy {
    text-align: center;
    padding: var(--space-md) 0 0;
    position: relative;
}

.footer-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-sm);
}

.footer-badge {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.footer-disclaimer {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    padding-bottom: var(--space-md);
    font-style: italic;
    opacity: 0.7;
}

/* ==========================================================================
   TILT CARD EFFECT
   ========================================================================== */

.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* ==========================================================================
   SCROLL REVEAL — elements start hidden, JS reveals them
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   Genuinely good responsive design — the irony
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --text-4xl: 2.5rem;
        --text-3xl: 2rem;
        --text-2xl: 1.5rem;
        --space-xl: 4rem;
        --space-lg: 2rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .about-grid,
    .skills-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        font-size: var(--text-base);
        flex-direction: column;
        gap: var(--space-xs);
    }

    /* Sandbox / default pages */
    .sandbox-page {
        padding: var(--space-md) var(--space-sm);
    }

    .sandbox-content {
        font-size: var(--text-base);
    }

    .sandbox-header h1 {
        font-size: var(--text-2xl);
    }

    .meta-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    /* Full width template */
    .fullwidth-header h1 {
        font-size: var(--text-2xl);
    }

    .fullwidth-content h2,
    .fullwidth-content h3,
    .fullwidth-content p {
        padding: 0 var(--space-sm);
    }

    /* Landing page template */
    .landing-hero {
        min-height: 80vh;
    }

    .landing-hero-overlay {
        margin: var(--space-sm);
        padding: var(--space-md);
        border-radius: 16px;
    }

    .landing-title {
        font-size: var(--text-2xl);
    }

    .landing-content {
        padding: var(--space-lg) var(--space-sm);
        font-size: var(--text-base);
    }

    /* Portfolio template */
    .portfolio-page {
        padding: var(--space-md) var(--space-sm);
    }

    .portfolio-header h1 {
        font-size: var(--text-2xl);
    }

    .portfolio-links {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-tech-stack {
        justify-content: center;
    }

    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-nav {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    /* Footer badges */
    .footer-badges {
        padding: var(--space-sm);
    }

    /* Construction tape */
    .construction-tape {
        padding: var(--space-xs) var(--space-sm);
    }

    .construction-tape h1,
    .construction-tape h2 {
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    :root {
        --text-4xl: 2rem;
        --text-3xl: 1.5rem;
    }

    section {
        padding: var(--space-lg) var(--space-sm);
    }

    .badge-ribbon {
        font-size: var(--text-xs);
        padding: 2px 16px;
    }

    /* Stack columns on small screens */
    .sandbox-content .wp-block-columns,
    .landing-content .wp-block-columns,
    .fullwidth-content .wp-block-columns,
    .portfolio-content .wp-block-columns {
        flex-direction: column !important;
    }

    /* Tables scroll horizontally */
    .sandbox-content table,
    .landing-content table,
    .fullwidth-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Buttons full width on tiny screens */
    .btn-cheesy {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-cta-group .btn-cheesy,
    .portfolio-links .btn-cheesy,
    .landing-cta .btn-cheesy {
        width: 100%;
    }
}

/* ==========================================================================
   SANDBOX / CONTENT TEST PAGE
   Styles WP block editor output to match the funky theme
   ========================================================================== */

.sandbox-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.sandbox-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.sandbox-header h1 {
    font-size: var(--text-3xl);
}

.sandbox-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-top: var(--space-sm);
    font-style: italic;
}

/* Featured image */
.sandbox-featured-image {
    margin-bottom: var(--space-lg);
    overflow: hidden;
    padding: 6px;
}

.sandbox-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Content area — style WP block editor output */
.sandbox-content {
    line-height: 1.9;
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.sandbox-content h1,
.sandbox-content h2,
.sandbox-content h3,
.sandbox-content h4,
.sandbox-content h5,
.sandbox-content h6 {
    color: var(--text-primary);
    margin: var(--space-md) 0 var(--space-sm);
    line-height: 1.3;
}

.sandbox-content h2 {
    font-size: var(--text-2xl);
    border-bottom: 2px solid rgba(255, 0, 255, 0.2);
    padding-bottom: var(--space-xs);
}

.sandbox-content h3 {
    font-size: var(--text-xl);
    color: var(--neon-blue);
}

.sandbox-content p {
    margin-bottom: var(--space-sm);
}

.sandbox-content a {
    color: var(--neon-pink);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.sandbox-content a:hover {
    color: var(--neon-blue);
}

.sandbox-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.sandbox-content em {
    color: var(--neon-green);
    font-style: italic;
}

/* Images in content */
.sandbox-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: var(--space-sm) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sandbox-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 0, 255, 0.15);
}

.sandbox-content .wp-caption,
.sandbox-content figcaption {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    margin-top: var(--space-xs);
}

/* WP Gallery */
.sandbox-content .wp-block-gallery {
    gap: var(--space-sm) !important;
}

.sandbox-content .wp-block-gallery img {
    border-radius: 10px;
}

/* Blockquotes */
.sandbox-content blockquote,
.sandbox-content .wp-block-quote {
    border-left: 4px solid var(--neon-pink);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) 0;
    background: rgba(255, 0, 255, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-primary);
}

.sandbox-content blockquote cite {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--neon-blue);
    font-style: normal;
}

/* Code blocks */
.sandbox-content pre,
.sandbox-content .wp-block-code {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 12px;
    padding: var(--space-md);
    overflow-x: auto;
    margin: var(--space-md) 0;
    font-family: 'Courier New', monospace;
    font-size: var(--text-sm);
    color: var(--neon-green);
    line-height: 1.6;
}

.sandbox-content code {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

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

/* Lists */
.sandbox-content ul,
.sandbox-content ol {
    margin: var(--space-sm) 0;
    padding-left: var(--space-md);
}

.sandbox-content li {
    margin-bottom: var(--space-xs);
}

.sandbox-content ul li::marker {
    color: var(--neon-pink);
}

.sandbox-content ol li::marker {
    color: var(--neon-blue);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Tables */
.sandbox-content table,
.sandbox-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: var(--text-base);
}

.sandbox-content th,
.sandbox-content td {
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.sandbox-content th {
    background: rgba(255, 0, 255, 0.1);
    color: var(--neon-pink);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--text-sm);
    letter-spacing: 1px;
}

.sandbox-content tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

/* Separators / horizontal rules */
.sandbox-content hr,
.sandbox-content .wp-block-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), var(--neon-blue), transparent);
    margin: var(--space-lg) 0;
}

/* WP Buttons */
.sandbox-content .wp-block-button__link,
.sandbox-content .wp-block-button a {
    font-family: inherit;
    font-weight: 700;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue)) !important;
    color: white !important;
    padding: 14px 28px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.sandbox-content .wp-block-button__link:hover,
.sandbox-content .wp-block-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3);
}

/* Page meta footer */
.sandbox-meta {
    margin-top: var(--space-xl);
    padding: var(--space-md);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-sm);
    text-align: center;
}

.meta-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.meta-value {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ==========================================================================
   FULL WIDTH TEMPLATE
   ========================================================================== */

.fullwidth-page {
    width: 100%;
}

.fullwidth-header {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.fullwidth-header h1 {
    font-size: var(--text-4xl);
    animation: glitch 3s ease-in-out infinite;
    margin-bottom: var(--space-xs);
}

.fullwidth-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-xl);
    font-style: italic;
}

.fullwidth-hero-image {
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.fullwidth-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fullwidth-content {
    width: 100%;
    line-height: 1.9;
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* Reuse sandbox content styles for typography in fullwidth */
.fullwidth-content h2,
.fullwidth-content h3,
.fullwidth-content h4 { color: var(--text-primary); margin: var(--space-md) auto var(--space-sm); max-width: 1200px; padding: 0 var(--space-md); }
.fullwidth-content h2 { font-size: var(--text-2xl); border-bottom: 2px solid rgba(255, 0, 255, 0.2); padding-bottom: var(--space-xs); }
.fullwidth-content h3 { font-size: var(--text-xl); color: var(--neon-blue); }
.fullwidth-content p { margin: 0 auto var(--space-sm); max-width: 1200px; padding: 0 var(--space-md); }
.fullwidth-content a { color: var(--neon-pink); }
.fullwidth-content strong { color: var(--text-primary); }
.fullwidth-content em { color: var(--neon-green); }
.fullwidth-content img { max-width: 100%; height: auto; display: block; }
.fullwidth-content .wp-block-image.alignfull img { width: 100%; border-radius: 0; }
.fullwidth-content .wp-block-image.alignwide { max-width: 1400px; margin: var(--space-md) auto; padding: 0 var(--space-md); }
.fullwidth-content .wp-block-image.alignwide img { border-radius: 12px; }

.fullwidth-content blockquote,
.fullwidth-content .wp-block-quote {
    border-left: 4px solid var(--neon-pink);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-md) auto;
    max-width: 1200px;
    background: rgba(255, 0, 255, 0.05);
    border-radius: 0 12px 12px 0;
}

.fullwidth-content .wp-block-button__link,
.fullwidth-content .wp-block-button a {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue)) !important;
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fullwidth-content .wp-block-button__link:hover,
.fullwidth-content .wp-block-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3);
}

/* ==========================================================================
   LANDING PAGE TEMPLATE
   ========================================================================== */

.landing-page {
    width: 100%;
}

.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.landing-hero-no-image {
    background: var(--bg-dark);
}

.landing-hero-overlay {
    text-align: center;
    padding: var(--space-lg);
    position: relative;
    z-index: 2;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.landing-title {
    font-size: var(--text-4xl);
    animation: glitch 3s ease-in-out infinite;
    margin-bottom: var(--space-sm);
}

.landing-tagline {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.landing-cta {
    margin-top: var(--space-sm);
}

.landing-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    line-height: 1.9;
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

/* Inherit sandbox-content typography for landing pages */
.landing-content h2 { font-size: var(--text-2xl); color: var(--text-primary); border-bottom: 2px solid rgba(255, 0, 255, 0.2); padding-bottom: var(--space-xs); margin: var(--space-md) 0 var(--space-sm); }
.landing-content h3 { font-size: var(--text-xl); color: var(--neon-blue); margin: var(--space-md) 0 var(--space-sm); }
.landing-content p { margin-bottom: var(--space-sm); }
.landing-content a { color: var(--neon-pink); }
.landing-content strong { color: var(--text-primary); }
.landing-content em { color: var(--neon-green); }
.landing-content img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); margin: var(--space-sm) 0; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
.landing-content blockquote { border-left: 4px solid var(--neon-pink); padding: var(--space-sm) var(--space-md); background: rgba(255, 0, 255, 0.05); border-radius: 0 12px 12px 0; margin: var(--space-md) 0; }

.landing-content .wp-block-button__link,
.landing-content .wp-block-button a {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue)) !important;
    color: white !important;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.landing-content .wp-block-button__link:hover,
.landing-content .wp-block-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3);
}

/* ==========================================================================
   PORTFOLIO PIECE TEMPLATE
   ========================================================================== */

.portfolio-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.portfolio-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.portfolio-header h1 {
    font-size: var(--text-3xl);
    animation: glitch 3s ease-in-out infinite;
    margin-bottom: var(--space-xs);
}

.portfolio-tagline {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    font-style: italic;
}

.portfolio-hero {
    margin-bottom: var(--space-lg);
    overflow: hidden;
    padding: 6px;
}

.portfolio-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.portfolio-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.portfolio-content {
    margin-bottom: var(--space-lg);
}

.portfolio-footer {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.portfolio-nav {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-nav a {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.portfolio-nav a:hover {
    color: var(--neon-blue);
    letter-spacing: 1px;
}

/* Portfolio links (Live Demo / Source Code buttons) */
.portfolio-links {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

/* Portfolio gallery */
.portfolio-gallery {
    margin: var(--space-lg) 0;
}

.portfolio-gallery h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--neon-blue);
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.portfolio-gallery-item {
    overflow: hidden;
    padding: 4px;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-gallery-item:hover {
    transform: scale(1.03);
}

.portfolio-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* ==========================================================================
   BUY ME A COFFEE — glitchy button
   ========================================================================== */

.bmc-wrapper {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 9000;
}

.bmc-glitch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-dark);
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: var(--text-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.bmc-glitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.bmc-glitch:hover::before {
    left: 100%;
}

.bmc-glitch:hover {
    border-color: var(--neon-blue);
    box-shadow:
        0 0 10px rgba(255, 0, 255, 0.4),
        0 0 30px rgba(255, 0, 255, 0.15),
        inset 0 0 10px rgba(255, 0, 255, 0.05);
}

.bmc-glitch-text {
    position: relative;
}

.bmc-glitch:hover .bmc-glitch-text {
    animation: glitch 0.4s ease-in-out;
}

.bmc-glitch-icon {
    font-size: 1.4rem;
    filter: grayscale(1) brightness(2);
    transition: filter 0.3s ease;
}

.bmc-glitch:hover .bmc-glitch-icon {
    filter: none;
    animation: wobble 0.5s ease-in-out;
}

@media (max-width: 480px) {
    .bmc-wrapper {
        right: var(--space-sm);
        bottom: var(--space-sm);
    }

    .bmc-glitch {
        padding: 10px 16px;
        font-size: var(--text-xs);
    }

    .bmc-glitch-text {
        display: none;
    }
}

/* ==========================================================================
   SINGLE POST TEMPLATE
   ========================================================================== */

.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md) var(--space-lg);
}

.single-post-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-sm);
}

.single-post-meta-top {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.single-post-date {
    font-family: 'Courier New', monospace;
    font-size: var(--text-sm);
    color: var(--neon-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.single-post-cat {
    font-size: var(--text-sm);
    color: var(--neon-pink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.single-post-header h1 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    word-wrap: break-word;
}

.single-post-excerpt {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-sm);
}

.single-post-author {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.single-post-hero {
    margin-bottom: var(--space-lg);
    overflow: hidden;
    padding: 6px;
}

.single-post-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Reuse sandbox-content styles for post body */
.single-post-content {
    margin-bottom: var(--space-lg);
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.single-post-nav {
    display: flex;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.single-post-nav a {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    max-width: 45%;
}

.single-post-nav a:hover {
    color: var(--neon-blue);
}

@media (max-width: 768px) {
    .single-post {
        padding: var(--space-md) var(--space-sm);
    }

    .single-post-header h1 {
        font-size: var(--text-2xl);
    }

    .single-post-nav {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .single-post-nav a {
        max-width: 100%;
    }
}

/* ==========================================================================
   BLOG CARD TITLE FIX — better contrast
   ========================================================================== */

.blog-card h3 a {
    color: var(--text-primary) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.blog-card h3 a:hover {
    color: var(--neon-pink) !important;
}

/* ==========================================================================
   ACCESSIBILITY
   The one thing we don't joke about
   ========================================================================== */

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

    .marquee-content {
        animation: none;
    }
}

:focus-visible {
    outline: 3px solid var(--neon-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
