/* ==========================================================================
   KIRO FOX - SIMPLIFIED 80'S RETRO-FUTURISTIC DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Orbitron:wght@600;800;900&family=Rajdhani:wght@600;700&display=swap');

:root {
    --neon-pink: #ff2a85;
    --neon-pink-glow: rgba(255, 42, 133, 0.5);
    --neon-cyan: #00f3ff;
    --neon-cyan-glow: rgba(0, 243, 255, 0.5);
    --neon-purple: #9d00ff;
    --neon-yellow: #ffe600;

    --bg-dark: #0a0414;
    --bg-card: rgba(18, 9, 32, 0.85);
    --bg-card-hover: rgba(28, 14, 48, 0.95);
    --border-color: rgba(255, 42, 133, 0.35);

    --text-main: #f0f2fd;
    --text-muted: #a39bb8;
    --text-dim: #796f94;

    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-tech: 'Rajdhani', sans-serif;

    --border-radius: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
}

body {
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Canvas */
#synthwaveCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* CRT Scanlines */
.crt-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
}

body.crt-enabled .crt-overlay {
    display: block;
}

/* Container */
.site-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.retro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    margin: 20px 0 30px 0;
    background: rgba(9, 3, 18, 0.85);
    backdrop-filter: blur(12px);
    border: 2px solid var(--neon-pink);
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(255, 42, 133, 0.25);
    position: sticky;
    top: 15px;
    z-index: 100;
}

.logo-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-pink);
}

.logo-sub {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}

.retro-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-pink);
    background: rgba(255, 42, 133, 0.15);
    text-shadow: 0 0 8px var(--neon-pink);
}

.nav-controls {
    display: flex;
    gap: 8px;
}

.retro-btn {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--neon-pink);
    background: rgba(255, 42, 133, 0.1);
    color: #fff;
    transition: var(--transition);
}

.retro-btn:hover {
    background: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 15px var(--neon-pink);
}

/* Sections */
.hero-card, .section-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.hero-card:hover, .section-box:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 12px 35px rgba(255, 42, 133, 0.2);
}

/* Banner Box */
.banner-box {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--neon-pink);
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(255, 42, 133, 0.3);
}

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

/* Profile Layout */
.profile-layout {
    display: flex;
    gap: 24px;
    align-items: center;
}

.avatar-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid var(--neon-pink);
    box-shadow: 0 0 20px var(--neon-pink-glow);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main {
    flex: 1;
}

.profile-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2px;
}

.profile-tagline {
    font-family: var(--font-tech);
    font-size: 1rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 700;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-pill {
    background: rgba(9, 3, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.meta-label {
    color: var(--text-muted);
    margin-right: 6px;
}

.meta-val {
    font-weight: 700;
    color: #fff;
}

.highlight-cyan { color: var(--neon-cyan); }
.highlight-pink { color: var(--neon-pink); }
.highlight-yellow { color: var(--neon-yellow); }

/* Quick Social Icon Buttons */
.social-quick-icons {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.svg-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.social-icon-btn:hover {
    transform: translateY(-3px) scale(1.08);
}

.social-icon-btn.twitch:hover { border-color: #a970ff; color: #a970ff; box-shadow: 0 0 15px rgba(169, 112, 255, 0.6); }
.social-icon-btn.bluesky:hover { border-color: #0085ff; color: #0085ff; box-shadow: 0 0 15px rgba(0, 133, 255, 0.6); }
.social-icon-btn.twitter:hover { border-color: #1da1f2; color: #1da1f2; box-shadow: 0 0 15px rgba(29, 161, 242, 0.6); }
.social-icon-btn.furaffinity:hover { border-color: #ff9900; color: #ff9900; box-shadow: 0 0 15px rgba(255, 153, 0, 0.6); }
.social-icon-btn.discord:hover { border-color: #5865f2; color: #5865f2; box-shadow: 0 0 15px rgba(88, 101, 242, 0.6); }
.social-icon-btn.vrchat:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 15px var(--neon-cyan-glow); }

/* Preferences Box */
.pref-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pref-col h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pref-likes h3 { color: #50ff96; }
.pref-dislikes h3 { color: #ff5050; }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(9, 3, 18, 0.6);
    border: 1px solid rgba(80, 255, 150, 0.3);
    color: #e0e0e0;
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 6px;
}

.tag-dislike {
    border-color: rgba(255, 80, 80, 0.3);
}

/* Vertically Stacked Schematic Blocks */
.schematics-stacked-layout {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.schematic-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.schematic-subheading {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--neon-pink);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

/* Schematic Container & Layout */
.schematic-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: start;
}

.schematic-view {
    background: #05020a;
    border: 2px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.2);
}

.schematic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 243, 255, 0.3);
}

.schematic-tag {
    color: var(--neon-pink);
    letter-spacing: 1px;
}

.schematic-status {
    color: var(--neon-cyan);
}

.chassis-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.chassis-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: contrast(1.05) brightness(0.95);
}

/* CRT HUD Overlay & Crosshairs */
.hud-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(9, 3, 18, 0.8) 100%),
                repeating-linear-gradient(0deg, rgba(0, 243, 255, 0.05), rgba(0, 243, 255, 0.05) 1px, transparent 1px, transparent 20px),
                repeating-linear-gradient(90deg, rgba(0, 243, 255, 0.05), rgba(0, 243, 255, 0.05) 1px, transparent 1px, transparent 20px);
    pointer-events: none;
}

.crosshair {
    position: absolute;
    color: var(--neon-cyan);
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    pointer-events: none;
}
.ch-tl { top: 8px; left: 10px; }
.ch-tr { top: 8px; right: 10px; }
.ch-bl { bottom: 8px; left: 10px; }
.ch-br { bottom: 8px; right: 10px; }

/* Target Dots & Pings */
.target-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.dot-core {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.dot-ping {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--neon-pink);
    animation: targetPing 1.8s infinite ease-out;
}

@keyframes targetPing {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

.dot-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: bold;
    color: #fff;
    background: rgba(9, 3, 18, 0.9);
    border: 1px solid var(--neon-cyan);
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0.85;
    transition: var(--transition);
}

.target-dot:hover .dot-core,
.target-dot.active .dot-core {
    background: var(--neon-cyan);
    transform: scale(1.4);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.target-dot:hover .dot-label,
.target-dot.active .dot-label {
    opacity: 1;
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

/* Legend Cards */
.schematic-legend {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legend-card {
    background: rgba(9, 3, 18, 0.7);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
    transition: var(--transition);
}

.legend-card:hover {
    border-color: var(--neon-cyan);
}

.legend-card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(0, 243, 255, 0.3);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.85rem;
}

.legend-item:hover, .legend-item.active {
    background: rgba(255, 42, 133, 0.15);
    border-color: var(--neon-pink);
    transform: translateX(4px);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-pink { background: var(--neon-pink); box-shadow: 0 0 6px var(--neon-pink); }
.dot-cyan { background: var(--neon-cyan); box-shadow: 0 0 6px var(--neon-cyan); }
.dot-purple { background: var(--neon-purple); box-shadow: 0 0 6px var(--neon-purple); }
.dot-yellow { background: var(--neon-yellow); box-shadow: 0 0 6px var(--neon-yellow); }

.legend-name {
    font-family: var(--font-tech);
    font-weight: bold;
    color: var(--text-muted);
    font-size: 0.8rem;
    min-width: 90px;
}

.legend-val {
    font-weight: 600;
    color: #fff;
    flex: 1;
    text-align: right;
}

@media (max-width: 850px) {
    .schematic-container {
        grid-template-columns: 1fr;
    }
}

/* Social Grid Tiles */
.section-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--neon-pink);
    padding-bottom: 8px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.social-tile {
    background: rgba(9, 3, 18, 0.6);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
    cursor: pointer;
}

.social-tile:hover {
    border-color: var(--neon-cyan);
    background: rgba(28, 14, 48, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.2);
}

.tile-icon-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-pink);
}

.tile-svg {
    width: 24px;
    height: 24px;
}

.tile-details {
    flex: 1;
}

.tile-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.tile-sub {
    display: block;
    font-family: var(--font-tech);
    font-size: 0.85rem;
    color: var(--neon-cyan);
}

.tile-action {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-pink);
}

/* Gallery Row */
.gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.art-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    background: #000;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.art-card:hover {
    border-color: var(--neon-pink);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 42, 133, 0.3);
}

.art-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.art-card:hover img {
    transform: scale(1.06);
}

.art-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(9, 3, 18, 0.85);
    color: var(--neon-cyan);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    text-align: center;
}

/* Floating Mascot Button */
.chibi-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chibi-float-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.chibi-mini-img {
    width: 90px;
    height: auto;
    filter: drop-shadow(0 0 10px var(--neon-pink));
}

.chibi-bubble {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neon-pink);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chibi-float-btn:hover .chibi-bubble {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    background: var(--bg-dark);
    border: 2px solid var(--neon-pink);
    border-radius: 12px;
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--neon-pink);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.lightbox-info {
    padding: 16px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.lightbox-info h4 {
    color: var(--neon-cyan);
    font-size: 1rem;
}

.lightbox-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Toast */
.retro-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10000;
    background: var(--bg-dark);
    border: 2px solid var(--neon-cyan);
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.retro-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 24px 0 40px 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        text-align: center;
    }
    .meta-row {
        justify-content: center;
    }
    .social-quick-icons {
        justify-content: center;
    }
    .pref-container {
        grid-template-columns: 1fr;
    }
    .retro-header {
        flex-direction: column;
        gap: 12px;
    }
}
