/* ========================================
   VTUBERMANAGER.COM - STYLES
   Hand-drawn cyberpunk management sim
   ======================================== */

/* Color Variables */
:root {
    --void-indigo: #0a0a1a;
    --deep-plum: #1a0f2e;
    --midnight-navy: #0d1b2a;
    --electric-sakura: #ff2d95;
    --neon-cyan: #00f0ff;
    --neon-lime: #39ff14;
    --hot-amber: #ff9f1c;
    --pale-glow: #e0dff5;
    --muted-lavender: #8b85a3;
    --holo-pink: #ff6ec7;
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background-color: var(--void-indigo);
    color: var(--pale-glow);
    overflow-x: hidden;
    position: relative;
}

/* ========================================
   BLOB ANIMATIONS
   ======================================== */

@keyframes blob-morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    50% { border-radius: 70% 30% 70% 30% / 30% 70% 30% 70%; }
    75% { border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes blob-drift {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.blob {
    position: fixed;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0;
    animation: blob-morph 16s ease-in-out infinite, blob-drift 6s ease-in-out infinite;
    z-index: -1;
    filter: blur(60px);
}

.blob-large {
    width: 500px;
    height: 500px;
    animation-duration: 20s, 8s;
}

.blob-medium {
    width: 200px;
    height: 200px;
    animation-duration: 16s, 6s;
    filter: blur(30px);
}

.blob-small {
    width: 80px;
    height: 80px;
    animation-duration: 12s, 5s;
    filter: blur(15px);
}

.blob-1 {
    background: radial-gradient(circle, rgba(255, 45, 149, 0.25) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s, 0s;
}

.blob-2 {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: 2s, 1s;
}

.blob-3 {
    background: radial-gradient(circle, rgba(57, 255, 20, 0.15) 0%, transparent 70%);
    top: 50%;
    right: -100px;
    animation-delay: 4s, 2s;
}

.blob-4 {
    background: radial-gradient(circle, rgba(255, 159, 28, 0.2) 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 1s, 0.5s;
}

.blob-5 {
    background: radial-gradient(circle, rgba(255, 110, 199, 0.18) 0%, transparent 70%);
    bottom: 20%;
    left: 20%;
    animation-delay: 3s, 1.5s;
}

.blob-6 {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    top: 30%;
    right: 15%;
    animation-delay: 2s, 0.8s;
}

.blob-7 {
    background: radial-gradient(circle, rgba(57, 255, 20, 0.25) 0%, transparent 70%);
    bottom: 15%;
    right: 25%;
    animation-delay: 4s, 1.2s;
}

/* ========================================
   BOOT SCREEN
   ======================================== */

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

@keyframes cursor-blink {
    0%, 49% { border-right: 2px solid var(--neon-cyan); }
    50%, 100% { border-right: 2px solid transparent; }
}

@keyframes fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes scale-up {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--void-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fade-out 3s ease-out forwards;
    animation-delay: 2s;
}

.boot-screen.hidden {
    display: none;
    pointer-events: none;
}

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

.cursor-blink {
    font-family: 'Azeret Mono', monospace;
    font-size: 16px;
    color: var(--neon-cyan);
    letter-spacing: 0.08em;
    border-right: 2px solid var(--neon-cyan);
    animation: cursor-blink 0.6s step-end infinite;
    min-width: 1px;
    display: inline-block;
}

#boot-text {
    animation: typewriter 1.5s steps(20, end);
}

/* ========================================
   HUD STATUS BAR
   ======================================== */

.hud-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: var(--midnight-navy);
    border-bottom: 2px solid var(--holo-pink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
    font-family: 'Fredoka', sans-serif;
    letter-spacing: 0.01em;
}

.status-logotype {
    font-weight: 700;
    font-size: 16px;
    color: var(--electric-sakura);
    text-shadow: 0 0 20px rgba(255, 45, 149, 0.6), 0 0 40px rgba(255, 45, 149, 0.3);
}

.status-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--electric-sakura);
    font-weight: 600;
}

@keyframes pulse-glow {
    0%, 100% { 
        background-color: var(--electric-sakura);
        box-shadow: 0 0 8px var(--electric-sakura);
    }
    50% { 
        background-color: #ff2d95;
        box-shadow: 0 0 16px var(--electric-sakura);
    }
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--electric-sakura);
    animation: pulse-glow 1s ease-in-out infinite;
}

.live-text {
    text-shadow: 0 0 12px rgba(255, 45, 149, 0.5);
}

/* ========================================
   HUD ALERT PANEL
   ======================================== */

@keyframes alert-float {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(-2deg); }
}

.hud-alert-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 200px;
    background-color: var(--deep-plum);
    border: 2px solid var(--holo-pink);
    border-radius: 12px;
    padding: 12px;
    z-index: 99;
    filter: url(#hand-drawn);
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
    animation: alert-float 4s ease-in-out infinite;
}

.alert-speech-bubble {
    font-family: 'Architects Daughter', cursive;
    font-size: 14px;
    color: var(--neon-lime);
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   HUD TICKER
   ======================================== */

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

.hud-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background-color: var(--midnight-navy);
    border-top: 2px solid var(--holo-pink);
    overflow: hidden;
    z-index: 100;
    display: flex;
    align-items: center;
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.3);
}

.ticker-content {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    font-family: 'Azeret Mono', monospace;
    font-size: 12px;
    color: var(--neon-cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ticker-item {
    flex-shrink: 0;
}

/* ========================================
   HUD MAIN CONTAINER
   ======================================== */

.hud-main-container {
    position: fixed;
    top: 48px;
    left: 0;
    right: 280px;
    bottom: 36px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px;
    scroll-behavior: smooth;
    z-index: 50;
}

/* Custom scrollbar */
.hud-main-container::-webkit-scrollbar {
    width: 6px;
}

.hud-main-container::-webkit-scrollbar-track {
    background: var(--deep-plum);
}

.hud-main-container::-webkit-scrollbar-thumb {
    background: var(--holo-pink);
    border-radius: 3px;
}

.hud-main-container::-webkit-scrollbar-thumb:hover {
    background: var(--electric-sakura);
}

/* ========================================
   HUD SECTIONS
   ======================================== */

.hud-section {
    margin-bottom: 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.6), 0 0 40px rgba(0, 240, 255, 0.3);
    margin-bottom: 40px;
    letter-spacing: 0.01em;
    position: relative;
    display: inline-block;
}

.section-heading::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
    border-radius: 1px;
}

/* ========================================
   TALENT ROSTER SECTION
   ======================================== */

.roster-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.talent-card {
    background-color: var(--deep-plum);
    border: 2px solid var(--holo-pink);
    border-radius: 16px;
    padding: 24px;
    filter: url(#hand-drawn);
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: rotate(calc(sin(var(--index)) * 3deg));
    position: relative;
    animation: card-slide-in 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes card-slide-in {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(calc(sin(var(--index)) * 3deg));
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(calc(sin(var(--index)) * 3deg));
    }
}

.talent-card:hover {
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.6);
    transform: translateY(-4px) rotate(calc(sin(var(--index)) * 3deg));
}

.talent-avatar {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3), rgba(255, 45, 149, 0.2));
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    margin-bottom: 16px;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.talent-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--electric-sakura);
    text-shadow: 0 0 12px rgba(255, 45, 149, 0.5);
    margin-bottom: 12px;
}

.talent-stats {
    font-family: 'Architects Daughter', cursive;
    font-size: 14px;
    color: var(--neon-lime);
    line-height: 1.8;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

/* ========================================
   DASHBOARD SECTION
   ======================================== */

.dashboard-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.analytics-chart {
    background-color: var(--deep-plum);
    border: 2px solid var(--holo-pink);
    border-radius: 12px;
    padding: 24px;
    filter: url(#hand-drawn);
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
}

.chart-label {
    font-family: 'Architects Daughter', cursive;
    font-size: 16px;
    color: var(--neon-lime);
    margin-bottom: 20px;
    text-align: center;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 8px;
}

.bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--electric-sakura) 0%, var(--hot-amber) 100%);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255, 45, 149, 0.5);
    animation: bar-grow 1.2s ease-out;
    border: 1px solid var(--holo-pink);
    filter: url(#hand-drawn);
}

@keyframes bar-grow {
    from { height: 0; opacity: 0; }
    to { height: var(--height, 100%); opacity: 1; }
}

.bar-label {
    font-family: 'Azeret Mono', monospace;
    font-size: 12px;
    color: var(--neon-cyan);
    margin-top: 8px;
    letter-spacing: 0.08em;
}

.stat-card {
    background-color: var(--deep-plum);
    border: 2px solid var(--holo-pink);
    border-radius: 12px;
    padding: 20px;
    filter: url(#hand-drawn);
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-label {
    font-family: 'Architects Daughter', cursive;
    font-size: 14px;
    color: var(--muted-lavender);
    margin-bottom: 8px;
}

.stat-value {
    font-family: 'Azeret Mono', monospace;
    font-size: 28px;
    color: var(--neon-cyan);
    font-weight: 700;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

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

.stat-arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid var(--neon-lime);
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

/* ========================================
   SCHEDULE SECTION
   ======================================== */

.schedule-timeline {
    position: relative;
    margin-top: 60px;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    stroke: var(--muted-lavender);
    transform: translateX(-50%);
    filter: url(#hand-drawn);
    stroke-width: 2;
    opacity: 0.8;
}

.timeline-event {
    margin-bottom: 60px;
    display: flex;
    animation: timeline-fade-in 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes timeline-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-event:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-event:nth-child(3) {
    animation-delay: 0.4s;
}

.timeline-event:nth-child(4) {
    animation-delay: 0.6s;
}

.timeline-event:nth-child(5) {
    animation-delay: 0.8s;
}

.timeline-event-left {
    justify-content: flex-end;
    margin-right: 52%;
}

.timeline-event-right {
    justify-content: flex-start;
    margin-left: 52%;
}

.event-card {
    background-color: var(--deep-plum);
    border: 2px solid var(--holo-pink);
    border-radius: 12px;
    padding: 16px;
    width: 220px;
    filter: url(#hand-drawn);
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 0 20px rgba(255, 110, 199, 0.6);
    transform: translateY(-2px);
}

.event-time {
    font-family: 'Azeret Mono', monospace;
    font-size: 12px;
    color: var(--neon-cyan);
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.event-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--electric-sakura);
    text-shadow: 0 0 12px rgba(255, 45, 149, 0.4);
    margin-bottom: 6px;
}

.event-desc {
    font-family: 'Architects Daughter', cursive;
    font-size: 12px;
    color: var(--muted-lavender);
}

/* ========================================
   CHAT SECTION
   ======================================== */

.chat-wall {
    position: relative;
    height: 400px;
    background-color: var(--midnight-navy);
    border: 2px solid var(--holo-pink);
    border-radius: 12px;
    padding: 20px;
    filter: url(#hand-drawn);
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
    overflow: hidden;
    margin-top: 60px;
}

@keyframes chat-float-up {
    0% {
        transform: translateY(400px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.chat-bubble {
    position: absolute;
    left: 20px;
    bottom: 0;
    background-color: rgba(57, 255, 20, 0.15);
    border: 1.5px solid var(--neon-lime);
    border-radius: 12px;
    padding: 8px 12px;
    font-family: 'Architects Daughter', cursive;
    font-size: 13px;
    color: var(--neon-lime);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: chat-float-up 8s ease-in linear forwards;
    animation-delay: var(--delay);
}

.chat-bubble:nth-child(odd) {
    left: auto;
    right: 20px;
    background-color: rgba(255, 45, 149, 0.15);
    border-color: var(--holo-pink);
    color: var(--electric-sakura);
}

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

.sidebar-stats {
    position: fixed;
    right: 0;
    top: 80px;
    width: 280px;
    height: calc(100vh - 80px - 36px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    z-index: 60;
}

.sidebar-stats::-webkit-scrollbar {
    width: 4px;
}

.sidebar-stats::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-stats::-webkit-scrollbar-thumb {
    background: var(--holo-pink);
    border-radius: 2px;
}

.stat-widget {
    background-color: var(--deep-plum);
    border: 2px solid var(--holo-pink);
    border-radius: 12px;
    padding: 16px;
    filter: url(#hand-drawn);
    box-shadow: 0 0 12px rgba(255, 110, 199, 0.4);
    text-align: center;
    position: sticky;
    top: 20px;
    animation: widget-fade-in 0.6s ease-out;
}

@keyframes widget-fade-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-widget:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-widget:nth-child(3) {
    animation-delay: 0.4s;
}

.widget-label {
    font-family: 'Architects Daughter', cursive;
    font-size: 12px;
    color: var(--muted-lavender);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.widget-value {
    font-family: 'Azeret Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
    letter-spacing: 0.08em;
}

/* ========================================
   FLOATING ELEMENTS
   ======================================== */

@keyframes float-drift {
    0%, 100% { transform: translateY(0px) translateX(0px) rotate(0deg); }
    25% { transform: translateY(-12px) translateX(4px) rotate(10deg); }
    50% { transform: translateY(-20px) translateX(0px) rotate(0deg); }
    75% { transform: translateY(-12px) translateX(-4px) rotate(-10deg); }
}

.floating-element {
    position: fixed;
    animation: float-drift 8s ease-in-out infinite;
    z-index: 10;
    opacity: 0.6;
}

.float-star-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-star-2 {
    width: 50px;
    height: 50px;
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.float-bubble-1 {
    width: 100px;
    height: 70px;
    top: 50%;
    right: 5%;
    animation-delay: 1s;
}

.hand-drawn-star {
    fill: var(--neon-lime);
    filter: drop-shadow(0 0 8px var(--neon-lime));
    animation: star-rotate 20s linear infinite;
}

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

.hand-drawn-bubble {
    fill: none;
    stroke: var(--holo-pink);
    stroke-width: 2;
    filter: url(#hand-drawn) drop-shadow(0 0 6px var(--holo-pink));
}

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

@media (max-width: 1200px) {
    .hud-main-container {
        right: 0;
    }

    .sidebar-stats {
        position: absolute;
        right: 0;
        top: auto;
        bottom: 36px;
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-top: 2px solid var(--holo-pink);
        background-color: var(--midnight-navy);
    }

    .stat-widget {
        flex: 0 0 auto;
        width: 200px;
    }
}

@media (max-width: 768px) {
    .hud-main-container {
        padding: 20px;
    }

    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .roster-cards {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        display: none;
    }

    .timeline-event-left,
    .timeline-event-right {
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.scroll-reveal {
    opacity: 0;
    animation: reveal-on-scroll 0.8s ease-out forwards;
}

@keyframes reveal-on-scroll {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
