/* Wetware Sync - Pop Art Bold Theme
 * Inspired by comic book / Roy Lichtenstein aesthetic
 */

/* Import Bold Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* CSS Variables */
:root {
    /* Pop Art Colors */
    --pop-red: #FF3B30;
    --pop-red-dark: #E6352B;
    --pop-yellow: #FFCC00;
    --pop-blue: #007AFF;
    --pop-black: #1a1a1a;
    --pop-white: #ffffff;
    --pop-cream: #FFFEF5;
    --pop-gray: #f5f5f5;
    --pop-gray-dark: #e0e0e0;

    /* Text colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;

    /* Typography */
    --font-headline: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Shadows */
    --shadow-pop: 4px 4px 0 var(--pop-black);
    --shadow-pop-lg: 6px 6px 0 var(--pop-black);
    --shadow-pop-red: 4px 4px 0 var(--pop-red);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--pop-cream);
    color: var(--text-primary);
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

.site-main {
    flex: 1;
    width: 100%;
}

/* Halftone Pattern Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 400;
    line-height: 1.1;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

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

a:hover {
    color: var(--pop-red-dark);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Utility Classes */
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.-mt-12 { margin-top: -3rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-4 { padding-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.-ml-2 { margin-left: -0.5rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid { display: grid; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Sizing */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.h-4 { height: 1rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 64rem; }
.max-w-5xl { max-width: 72rem; }

/* Feature image container - match content width (max-w-4xl = 64rem) */
.feature-image-container,
.post-content-inner {
    max-width: 64rem;
}

/* Reduce space below feature image */
.feature-image-wrapper {
    margin-bottom: 2rem;
}

/* Remove default figure margin so image aligns with content */
.feature-image-container figure {
    margin: 0;
}

/* Typography Sizes */
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* Effects */
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.block { display: block; }
.inline-block { display: inline-block; }
.object-cover { object-fit: cover; }
.rounded-full { border-radius: 50%; }

/* Transitions */
.transition-all { transition: all 0.2s ease; }
.transition-transform { transition: transform 0.2s ease; }

/* Line Clamp */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   HEADER - Bold Bar
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--pop-red);
    border-bottom: 4px solid var(--pop-black);
    box-shadow: 0 4px 0 var(--pop-black);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
    max-width: 64rem;
}

.site-logo {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--pop-white);
    text-transform: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.site-logo:hover {
    color: var(--pop-yellow);
}

/* Desktop Navigation */
.site-nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pop-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--pop-yellow);
}

.site-nav a.nav-current {
    color: var(--pop-yellow);
}

.site-nav a::after {
    display: none;
}

/* Social Icons in Nav */
.site-nav .social-icon {
    display: flex;
    align-items: center;
    padding: 0;
}

.site-nav .social-icon svg {
    width: 20px;
    height: 20px;
}

/* YouTube icon in header - same styling as other social icons */
.site-nav .social-icon-youtube {
    color: var(--pop-white);
    transition: color 0.2s ease;
}

.site-nav .social-icon-youtube:hover {
    color: var(--pop-yellow);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--pop-white);
}

.mobile-menu-btn .menu-close {
    display: none;
}

.mobile-menu-btn.active .menu-open {
    display: none;
}

.mobile-menu-btn.active .menu-close {
    display: block;
}

/* Mobile Navigation */
.site-nav.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-top: 3px solid var(--pop-black);
    gap: 0.5rem;
}

.site-nav.mobile-nav a {
    display: block;
    padding: 0.5rem 0;
}

.mobile-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(0,0,0,0.2);
}

.mobile-social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-social svg {
    width: 20px;
    height: 20px;
}

/* Mobile YouTube - same as other icons */
.mobile-social .mobile-youtube {
    color: var(--pop-white);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .site-nav.desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .site-nav.mobile-nav.active {
        display: flex;
    }
}

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

.hero-section {
    position: relative;
}

.hero-section .hero-bg {
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop-lg);
    position: relative;
}

.hero-title {
    font-family: var(--font-headline);
    font-size: 4rem;
    color: var(--pop-black);
    text-transform: uppercase;
    line-height: 0.95;
}

.hero-title .cursor {
    display: none;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   BLOG HERO - Pop Art Style
   ======================================== */

.blog-hero {
    background: var(--pop-red);
    padding: 4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.blog-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-family: var(--font-headline);
    font-size: 4rem;
    color: var(--pop-white);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0 var(--pop-black);
}

.blog-hero-desc {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--pop-white);
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-hero-form {
    max-width: 500px;
    margin: 0 auto;
}

.blog-hero-input-wrap {
    display: flex;
    gap: 0;
    border: 4px solid var(--pop-black);
    box-shadow: 4px 4px 0 var(--pop-black);
    background: var(--pop-white);
}

.blog-hero-input {
    flex: 1;
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    border: none;
    background: transparent;
    color: var(--pop-black);
}

.blog-hero-input::placeholder {
    color: var(--text-muted);
}

.blog-hero-input:focus {
    outline: none;
}

.blog-hero-btn {
    padding: 1rem 2rem;
    font-family: var(--font-headline);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: var(--pop-yellow);
    color: var(--pop-black);
    border: none;
    border-left: 4px solid var(--pop-black);
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-hero-btn:hover {
    background: var(--pop-black);
    color: var(--pop-yellow);
}

.blog-hero-btn .btn-loading {
    display: none;
}

.blog-hero-form.loading .btn-text {
    display: none;
}

.blog-hero-form.loading .btn-loading {
    display: inline;
}

@media (max-width: 600px) {
    .blog-hero {
        padding: 3rem 1rem;
    }

    .blog-hero-title {
        font-size: 2.5rem;
        text-shadow: 3px 3px 0 var(--pop-black);
    }

    .blog-hero-desc {
        font-size: 1rem;
    }

    .blog-hero-input-wrap {
        flex-direction: column;
        box-shadow: 3px 3px 0 var(--pop-black);
    }

    .blog-hero-btn {
        border-left: none;
        border-top: 4px solid var(--pop-black);
    }
}

/* ========================================
   POST CARDS - Comic Style
   ======================================== */

.post-card {
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop);
    position: relative;
    transition: all 0.2s ease;
}

.post-card.post-card-link {
    cursor: pointer;
}

.post-card-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.post-card > *:not(.post-card-overlay-link) {
    position: relative;
    z-index: 1;
}

.post-card-tags {
    position: relative;
    z-index: 2;
}

.post-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pop-black);
}

/* Post card image */
.post-card img {
    border-bottom: 4px solid var(--pop-black);
    transition: all 0.3s ease;
}

.post-card:hover img {
    filter: contrast(1.1);
}

/* Post title */
.post-card h3 a {
    font-family: var(--font-headline);
    font-size: 1.75rem;
    color: var(--pop-black);
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.post-card:hover h3 a {
    color: var(--pop-red);
}

/* Post meta */
.post-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--pop-gray);
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--pop-red);
    color: var(--pop-white);
}

/* Post footer tags section */
.post-footer {
    border-top: none !important;
    background: transparent !important;
    padding-top: 0 !important;
}

.post-footer .tag {
    background: var(--pop-gray);
}

/* Read more link */
.read-more {
    font-family: var(--font-headline);
    font-size: 1rem;
    color: var(--pop-red);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: var(--pop-black);
}

.read-more svg {
    transition: transform 0.2s ease;
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* ========================================
   POST HEADER
   ======================================== */

.post-header {
    background: var(--pop-cream);
    position: relative;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .post-header {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
}

.post-header h1 {
    font-family: var(--font-headline);
    font-size: 3.5rem;
    color: var(--pop-black);
    text-transform: uppercase;
    line-height: 1;
}

.post-header .post-meta {
    color: var(--text-secondary);
}

.post-header .post-meta span {
    color: var(--text-secondary);
}

/* Author in header */
.post-header .flex.items-center img {
    border: 3px solid var(--pop-black);
}

/* ========================================
   POST CONTENT - Prose Styles
   ======================================== */

.prose {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: var(--font-headline);
    color: var(--pop-black);
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    text-transform: uppercase;
}

.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.5rem; }

.prose p {
    margin-bottom: 1.5em;
}

.prose a {
    color: var(--pop-red);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.prose a:hover {
    background: var(--pop-yellow);
}

.prose strong {
    color: var(--pop-black);
    font-weight: 700;
}

.prose code {
    background: var(--pop-gray);
    border: 2px solid var(--pop-black);
    padding: 0.2em 0.5em;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--pop-black);
}

.prose pre {
    background: var(--pop-black);
    border: 4px solid var(--pop-black);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2em 0;
    box-shadow: var(--shadow-pop-red);
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--pop-white);
}

.prose blockquote {
    border-left: 6px solid var(--pop-red);
    padding-left: 1.5rem;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-secondary);
    background: var(--pop-gray);
    padding: 1.5rem;
    padding-left: 2rem;
}

.prose ul, .prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose li::marker {
    color: var(--pop-red);
    font-weight: bold;
}

.prose img {
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop);
    margin: 2em auto;
}

.prose hr {
    border: none;
    height: 4px;
    background: var(--pop-black);
    margin: 3em 0;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--pop-red);
    border: 4px solid var(--pop-black);
    color: var(--pop-white);
    font-family: var(--font-headline);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-pop);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pop-black);
    color: var(--pop-white);
}

.btn-primary:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--pop-black);
}

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

.pagination a {
    padding: 0.75rem 1.5rem;
    background: var(--pop-white);
    border: 3px solid var(--pop-black);
    color: var(--pop-black);
    font-family: var(--font-headline);
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 var(--pop-black);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--pop-red);
    color: var(--pop-white);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--pop-black);
}

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

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

.site-footer {
    margin-top: 0;
}

/* CTA Section */
.footer-cta {
    background: var(--pop-red);
    padding: 4rem 1.5rem;
    text-align: center;
}

.footer-cta .container {
    max-width: 900px;
}

.footer-cta-title {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--pop-white);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.footer-cta-desc {
    font-family: var(--font-body);
    font-size: 1.125rem;
    color: var(--pop-white);
    line-height: 1.7;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.footer-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-cta-btn {
    font-family: var(--font-headline);
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: 3px solid var(--pop-black);
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-cta-btn-primary {
    background: var(--pop-yellow);
    color: var(--pop-black);
    box-shadow: 4px 4px 0 var(--pop-black);
}

.footer-cta-btn-primary:hover {
    background: var(--pop-white);
    color: var(--pop-black);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pop-black);
}

.footer-cta-btn-secondary {
    background: var(--pop-white);
    color: var(--pop-black);
    box-shadow: 4px 4px 0 var(--pop-black);
}

.footer-cta-btn-secondary:hover {
    background: var(--pop-yellow);
    color: var(--pop-black);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pop-black);
}

/* Main Footer */
.footer-main {
    background: #2a2a2a;
    padding: 0;
}

.footer-main .container {
    max-width: 1280px;
    padding: 3rem 1.5rem 2rem;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col {
    text-align: left;
}

.footer-brand {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--pop-yellow);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--pop-yellow);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
    font-family: var(--font-body);
}

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

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
}

.footer-location {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-cta {
        padding: 3rem 1.5rem;
    }

    .footer-cta-title {
        font-size: 2rem;
    }

    .footer-cta-desc {
        font-size: 1rem;
    }

    .footer-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-cta-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-social-link {
        justify-content: center;
    }
}

/* Legacy footer nav */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: var(--pop-white);
    font-family: var(--font-headline);
    font-size: 1rem;
    text-transform: uppercase;
}

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

.footer-powered a {
    color: var(--pop-red);
}

.footer-extras {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255,255,255,0.1);
}

.footer-clock,
.visitor-counter {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.footer-clock .clock-label,
.visitor-counter .counter-label {
    color: var(--pop-red);
    margin-right: 0.5rem;
}

.footer-clock .clock-value {
    color: var(--pop-white);
}

.visitor-counter .counter-value {
    color: var(--pop-yellow);
}

/* ========================================
   GHOST KG CARDS
   ======================================== */

.kg-card {
    margin: 2em 0;
}

.kg-width-wide {
    position: relative;
    width: 85vw;
    max-width: 1100px;
    left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.kg-image-card img {
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop);
}

.kg-bookmark-card {
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
}

.kg-bookmark-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.kg-bookmark-title {
    color: var(--pop-black);
    font-family: var(--font-headline);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.kg-bookmark-thumbnail {
    width: 180px;
    flex-shrink: 0;
    border-left: 4px solid var(--pop-black);
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   ERROR PAGE
   ======================================== */

.error-template {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-family: var(--font-headline);
    font-size: 12rem;
    color: var(--pop-red);
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 6px 6px 0 var(--pop-black);
}

.error-message {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--pop-black);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.error-ascii {
    display: none;
}

.error-status,
.error-details {
    font-family: var(--font-body);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.error-suggestions {
    margin-top: 2rem;
    text-align: left;
}

.error-suggestions h3 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    color: var(--pop-black);
    margin-bottom: 1rem;
}

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

.error-suggestions li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.error-suggestions li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--pop-red);
    font-weight: bold;
}

/* ========================================
   NEWSLETTER SIGNUP - Pop Art Style
   ======================================== */

.transmission-signup {
    position: relative;
}

.transmission-box {
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop-lg);
    padding: 2.5rem;
    position: relative;
}

.transmission-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.transmission-status {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--pop-red);
    text-transform: uppercase;
    font-weight: 700;
}

.transmission-blink {
    width: 10px;
    height: 10px;
    background: var(--pop-red);
    border-radius: 50%;
    animation: pulse 1.5s ease infinite;
}

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

.transmission-title {
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--pop-black);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.transmission-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.transmission-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.transmission-input-wrap {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    padding: 0 1rem;
    transition: all 0.2s ease;
}

.transmission-input-wrap:focus-within {
    box-shadow: var(--shadow-pop);
    transform: translate(-2px, -2px);
}

.transmission-prompt {
    font-family: var(--font-mono);
    color: var(--pop-red);
    font-size: 1rem;
    font-weight: 700;
}

.transmission-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--pop-black);
    outline: none;
}

.transmission-input::placeholder {
    color: var(--text-muted);
}

/* Override browser autofill styles */
.transmission-input:-webkit-autofill,
.transmission-input:-webkit-autofill:hover,
.transmission-input:-webkit-autofill:focus,
.transmission-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--pop-white) inset !important;
    -webkit-text-fill-color: var(--pop-black) !important;
}

.transmission-btn {
    background: var(--pop-red);
    border: 4px solid var(--pop-black);
    color: var(--pop-white);
    font-family: var(--font-headline);
    font-size: 1.2rem;
    text-transform: uppercase;
    padding: 1rem 2rem;
    cursor: pointer;
    box-shadow: var(--shadow-pop);
    transition: all 0.2s ease;
}

.transmission-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pop-black);
}

.transmission-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--pop-black);
}

.transmission-btn .btn-loading {
    display: none;
}

.transmission-form.loading .btn-text {
    display: none;
}

.transmission-form.loading .btn-loading {
    display: inline;
}

.transmission-form.success .transmission-input-wrap,
.transmission-form.success .transmission-btn {
    display: none;
}

.transmission-form.success::after {
    content: "You're in! Check your inbox.";
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--pop-red);
    display: block;
    padding: 1rem 0;
}

.transmission-footer {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .transmission-form {
        flex-direction: column;
    }

    .transmission-btn {
        width: 100%;
    }
}

/* Footer Transmission */
.footer-transmission {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-transmission .transmission-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--pop-black);
    border: none;
    box-shadow: none;
    padding: 2rem;
}

.footer-transmission .transmission-status {
    color: var(--pop-yellow);
}

.footer-transmission .transmission-title {
    color: var(--pop-white);
}

.footer-transmission .transmission-desc {
    color: rgba(255,255,255,0.7);
}

.footer-transmission .transmission-header {
    justify-content: center;
}

.footer-transmission .transmission-form {
    justify-content: center;
}

.footer-transmission .transmission-input-wrap {
    background: var(--pop-white);
}

.footer-transmission .transmission-footer {
    color: rgba(255,255,255,0.5);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 1rem;
}

/* ========================================
   AUTHOR PAGE
   ======================================== */

.author-header {
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:p-12 { padding: 3rem; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-5xl { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .lg\:text-6xl { font-size: 3.75rem; }
}

/* Mobile nav adjustments */
@media (max-width: 768px) {
    .site-nav {
        gap: 1rem;
    }

    .site-nav a {
        font-size: 1rem;
    }

    .site-logo {
        font-size: 1.5rem;
    }

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

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

    .error-code {
        font-size: 6rem;
    }
}

/* ========================================
   SELECTION & SCROLLBAR
   ======================================== */

::selection {
    background: var(--pop-red);
    color: var(--pop-white);
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--pop-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--pop-red);
    border: 2px solid var(--pop-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pop-red-dark);
}

/* ========================================
   RELATED POSTS
   ======================================== */

.related-posts {
    background: var(--pop-gray);
    padding: 4rem 0;
    border-top: 4px solid var(--pop-black);
}

.related-posts-title {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--pop-black);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.related-post-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pop-black);
}

.related-post-card h4 {
    font-family: var(--font-headline);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.related-post-card h4 a {
    color: var(--pop-black);
}

.related-post-card:hover h4 a {
    color: var(--pop-red);
}

.related-post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   UNIFIED POST FOOTER
   ======================================== */

.post-footer-unified {
    padding: 3rem 0 4rem;
    background: var(--pop-cream);
}

.post-footer-card {
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop-lg);
    padding: 2rem 2.25rem;
    position: relative;
}

/* Decorative corner accent */
.post-footer-card::before {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 40px;
    height: 40px;
    background: var(--pop-yellow);
    border: 4px solid var(--pop-black);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.footer-section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--pop-white);
    background: var(--pop-black);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
}

.footer-divider {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--pop-black) 0,
        var(--pop-black) 8px,
        transparent 8px,
        transparent 16px
    );
    margin: 1.75rem 0;
    opacity: 0.15;
}

/* Footer Share Section */
.footer-share-section {
    padding-bottom: 0.5rem;
}

.footer-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: 3px solid var(--pop-black);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 3px 3px 0 var(--pop-black);
}

.footer-share-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--pop-black);
}

.footer-share-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--pop-black);
}

.footer-share-x {
    background: var(--pop-black);
    color: var(--pop-white);
}

.footer-share-x:hover {
    background: var(--pop-white);
    color: var(--pop-black);
    border-color: var(--pop-black);
    box-shadow: 5px 5px 0 var(--pop-black);
}

.footer-share-linkedin {
    background: var(--pop-blue);
    color: var(--pop-white);
    border-color: var(--pop-blue);
}

.footer-share-linkedin:hover {
    background: var(--pop-white);
    color: var(--pop-blue);
    border-color: var(--pop-blue);
    box-shadow: 5px 5px 0 var(--pop-black);
}

.footer-share-copy {
    background: var(--pop-white);
    color: var(--pop-black);
}

.footer-share-copy:hover {
    background: var(--pop-yellow);
    box-shadow: 5px 5px 0 var(--pop-black);
}

.footer-share-copy .copied-text {
    display: none;
}

.footer-share-copy.copied .copy-text {
    display: none;
}

.footer-share-copy.copied .copied-text {
    display: inline;
}

.footer-share-copy.copied {
    background: var(--pop-yellow);
    border-color: var(--pop-black);
}

/* Footer Tags Section */
.footer-tags-section {
    padding: 0.5rem 0;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.footer-tag {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    background: var(--pop-white);
    border: 2px solid var(--pop-black);
    color: var(--pop-black);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    transition: all 0.15s ease;
    box-shadow: 2px 2px 0 var(--pop-black);
}

.footer-tag:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--pop-black);
    background: var(--pop-yellow);
    color: var(--pop-white);
}

/* Footer Author Section */
.footer-author-section {
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--pop-cream) 0%, rgba(255, 204, 0, 0.1) 100%);
    border: 3px solid var(--pop-black);
    margin-top: 0.5rem;
}

/* Smaller label inside author section */
.footer-author-section .footer-section-label {
    background: transparent;
    color: var(--text-muted);
    padding: 0;
    margin-bottom: 0.25rem;
    font-size: 0.6rem;
}

.footer-author-avatar {
    position: relative;
    flex-shrink: 0;
}

.footer-author-avatar img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid var(--pop-red);
    box-shadow: 4px 4px 0 var(--pop-black);
    object-fit: cover;
}

.footer-author-placeholder {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pop-red);
    border-radius: 50%;
    border: 4px solid var(--pop-black);
    box-shadow: 4px 4px 0 var(--pop-black);
    font-family: var(--font-headline);
    font-size: 2.5rem;
    color: var(--pop-white);
}

.footer-author-info {
    flex: 1;
}

.footer-author-name {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--pop-black);
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.footer-author-name a {
    color: var(--pop-black);
    transition: color 0.15s ease;
}

.footer-author-name a:hover {
    color: var(--pop-red);
}

.footer-author-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-author-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--pop-black);
    padding: 0.5rem 0.85rem;
    background: var(--pop-white);
    border: 2px solid var(--pop-black);
    box-shadow: 2px 2px 0 var(--pop-black);
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.footer-author-link:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--pop-black);
    background: var(--pop-yellow);
}

.footer-author-link svg {
    flex-shrink: 0;
}

/* Author link specific colors - matching share button scheme */
.footer-author-link-website {
    background: var(--pop-red);
    border-color: var(--pop-red);
    color: var(--pop-white);
    box-shadow: 2px 2px 0 var(--pop-black);
}

.footer-author-link-website:hover {
    background: var(--pop-white);
    color: var(--pop-red);
    border-color: var(--pop-red);
    box-shadow: 3px 3px 0 var(--pop-red);
}

.footer-author-link-x {
    background: var(--pop-black);
    border-color: var(--pop-black);
    color: var(--pop-white);
}

.footer-author-link-x:hover {
    background: var(--pop-white);
    color: var(--pop-black);
    box-shadow: 3px 3px 0 var(--pop-black);
}

.footer-author-link-linkedin {
    background: var(--pop-blue);
    border-color: var(--pop-blue);
    color: var(--pop-white);
    box-shadow: 2px 2px 0 var(--pop-black);
}

.footer-author-link-linkedin:hover {
    background: var(--pop-white);
    color: var(--pop-blue);
    border-color: var(--pop-blue);
    box-shadow: 3px 3px 0 var(--pop-blue);
}

.footer-author-link-youtube {
    background: var(--pop-red);
    border-color: var(--pop-red);
    color: var(--pop-white);
    box-shadow: 2px 2px 0 var(--pop-black);
}

.footer-author-link-youtube:hover {
    background: var(--pop-white);
    color: var(--pop-red);
    border-color: var(--pop-red);
    box-shadow: 3px 3px 0 var(--pop-red);
}

.footer-author-link-all {
    background: var(--pop-white);
    border-color: var(--pop-black);
    color: var(--pop-black);
    box-shadow: 2px 2px 0 var(--pop-black);
}

.footer-author-link-all:hover {
    background: var(--pop-yellow);
    color: var(--pop-black);
    box-shadow: 3px 3px 0 var(--pop-black);
}

@media (max-width: 600px) {
    .post-footer-card {
        padding: 1.5rem;
    }

    .footer-author-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .footer-author-name {
        font-size: 1.75rem;
    }

    .footer-author-links {
        justify-content: center;
    }

    .footer-author-avatar img,
    .footer-author-placeholder {
        width: 80px;
        height: 80px;
    }

    .footer-share-buttons {
        flex-direction: column;
    }

    .footer-share-btn {
        justify-content: center;
    }
}

/* Legacy Author Section - keep for other pages */
.author-section {
    background: var(--pop-white) !important;
    border-top: 1px solid var(--pop-gray-dark);
    padding: 3rem 0 !important;
}

.author-bio {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
}

.author-bio-inner {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

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

.author-avatar-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pop-red);
    border-radius: 50%;
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--pop-white);
}

.author-name {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    color: var(--pop-black);
    margin-bottom: 0.25rem;
    text-transform: none;
}

.author-name a {
    color: var(--pop-black);
}

.author-name a:hover {
    color: var(--pop-red);
}

.author-bio-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.author-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    background: var(--pop-gray);
    border: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.author-link:hover {
    background: var(--pop-red);
    color: var(--pop-white);
}

@media (max-width: 600px) {
    .author-bio-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-links {
        justify-content: center;
    }

    .author-avatar img,
    .author-avatar-placeholder {
        width: 72px;
        height: 72px;
    }
}

/* ========================================
   SHARE BUTTONS
   ======================================== */

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pop-gray-dark);
}

.share-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn:hover {
    color: var(--pop-red);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Header Share Links */
.header-share-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--pop-white);
    border: 2px solid var(--pop-black);
    color: var(--pop-black);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* X button - black */
.header-share-x {
    background: var(--pop-black);
    color: var(--pop-white);
}

.header-share-x:hover {
    background: #333;
    transform: scale(1.05);
}

/* LinkedIn button - blue */
.header-share-linkedin {
    background: var(--pop-blue);
    border-color: var(--pop-blue);
    color: var(--pop-white);
}

.header-share-linkedin:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: scale(1.05);
}

/* Copy button - white with yellow hover */
.header-share-copy {
    background: var(--pop-white);
    color: var(--pop-black);
}

.header-share-copy:hover {
    background: var(--pop-yellow);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .header-share-links {
        margin-top: 0.5rem;
    }
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10003;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border: 6px solid var(--pop-white);
    box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-family: var(--font-headline);
    font-size: 1.2rem;
    color: var(--pop-white);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 3px solid var(--pop-white);
    background: var(--pop-red);
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: var(--pop-white);
    color: var(--pop-red);
}

/* ========================================
   SEARCH OVERLAY
   ======================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10002;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.search-overlay.active {
    display: flex;
}

.search-terminal {
    width: 90%;
    max-width: 600px;
    background: var(--pop-white);
    border: 4px solid var(--pop-black);
    box-shadow: var(--shadow-pop-lg);
}

.search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--pop-red);
    border-bottom: 4px solid var(--pop-black);
}

.search-title {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    color: var(--pop-white);
    text-transform: uppercase;
}

.search-close {
    font-family: var(--font-headline);
    color: var(--pop-white);
    cursor: pointer;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 2px solid var(--pop-gray-dark);
}

.search-prompt {
    font-family: var(--font-mono);
    color: var(--pop-red);
    margin-right: 0.5rem;
    font-weight: 700;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--pop-black);
    outline: none;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 1rem;
    border-bottom: 2px solid var(--pop-gray);
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--font-headline);
    font-size: 1.1rem;
    color: var(--pop-black);
}

.search-result-item:hover {
    background: var(--pop-yellow);
}

.search-hint,
.search-loading,
.search-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.search-footer {
    padding: 0.75rem 1rem;
    background: var(--pop-gray);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* ========================================
   TABLE OF CONTENTS
   ======================================== */

.table-of-contents {
    background: var(--pop-gray);
    border: none;
    box-shadow: none;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    border-left: none;
}

.toc-header {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.25rem;
}

.toc-list a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    padding: 0.4rem 0.75rem;
    margin: 0 -0.75rem;
    border-radius: 4px;
    transition: all 0.15s ease;
    text-decoration: none;
}

.toc-list a:hover {
    color: var(--pop-red);
    background: rgba(255, 59, 48, 0.08);
}

.toc-list a.active {
    color: var(--pop-red);
    background: rgba(255, 59, 48, 0.1);
    font-weight: 500;
}

.toc-h3 {
    padding-left: 1rem;
}

.toc-h3 a {
    font-size: 0.85rem;
}

/* Collapsible TOC on mobile */
@media (max-width: 768px) {
    .table-of-contents {
        margin-bottom: 2rem;
        padding: 1rem 1.25rem;
    }

    .toc-list a {
        font-size: 0.85rem;
        padding: 0.35rem 0.5rem;
        margin: 0 -0.5rem;
    }
}

/* ========================================
   ANIMATIONS (Minimal)
   ======================================== */

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.glitch {
    /* Disabled for pop art theme */
}

/* Boot overlay - disabled */
.boot-overlay {
    display: none !important;
}

.boot-content {
    text-align: center;
}

.boot-line {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--pop-white);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.5s; }
.boot-line:nth-child(3) { animation-delay: 0.8s; }
.boot-line:nth-child(4) { animation-delay: 1.1s; }

.boot-line.success {
    color: var(--pop-yellow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.boot-progress {
    width: 300px;
    height: 8px;
    background: var(--pop-white);
    border: 3px solid var(--pop-black);
    margin: 2rem auto 0;
    overflow: hidden;
}

.boot-progress-bar {
    width: 0;
    height: 100%;
    background: var(--pop-black);
    animation: loadProgress 1.5s ease forwards;
    animation-delay: 0.3s;
}

@keyframes loadProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Konami */
.konami-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pop-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
}

.konami-text {
    font-family: var(--font-headline);
    font-size: 4rem;
    color: var(--pop-black);
    text-align: center;
    text-transform: uppercase;
}

.konami-text small {
    display: block;
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* ========================================
   FLOATING CONTACT - Peeking Photo
   ======================================== */

.floating-contact {
    display: none;
    position: fixed;
    top: 100px;
    right: -280px;
    z-index: 100002;
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Extend hover area to prevent animation loop */
    padding-left: 60px;
    margin-left: -60px;
}

.floating-contact:hover {
    right: 20px;
}

/* Invisible trigger zone to prevent hover flicker */
.floating-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 100px;
    height: 100%;
    background: transparent;
}

.floating-contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
    transition: filter 0.3s ease;
}

.floating-contact:hover .floating-contact-link {
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.35));
}

.floating-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--pop-black);
    background: var(--pop-cream);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    order: 1;
    transform: rotate(-12deg);
}

.floating-contact:hover .floating-photo {
    transform: rotate(0deg) scale(1.08);
}

.floating-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.floating-chat-bubble {
    background: var(--pop-yellow);
    border: 3px solid var(--pop-black);
    box-shadow: 4px 4px 0 var(--pop-black);
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    white-space: nowrap;
    position: relative;
    order: 2;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.floating-contact:hover .floating-chat-bubble {
    opacity: 1;
    transform: translateX(0);
}

/* Speech bubble tail pointing left to photo */
.floating-chat-bubble::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 12px solid var(--pop-yellow);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.floating-chat-bubble::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 15px solid var(--pop-black);
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
}

.chat-text {
    display: block;
    font-family: var(--font-headline);
    font-size: 1.25rem;
    color: var(--pop-black);
    margin-bottom: 0.25rem;
}

.chat-cta {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--pop-red);
    font-weight: 700;
}

/* Only show on desktop */
@media (min-width: 1200px) {
    .floating-contact {
        display: block;
    }
}
