/* C:\Users\user\.gemini\antigravity-ide\scratch\twitcom-iptv\assets\css\custom.css */

:root {
    --accent-primary: #8B5CF6;   /* Vibrant Purple */
    --accent-secondary: #06B6D4; /* Electric Cyan */
    --font-family: 'Outfit', sans-serif;
    --bg-dark-900: #060508; /* Super dark purple-black for streaming dashboard */
    --bg-dark-800: #0c0a10;
    --bg-dark-700: #120e19;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark-900);
    color: #f3f4f6;
    font-family: var(--font-family);
    overflow: hidden; /* Prevent default vertical browser scrolls */
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background-color: var(--bg-dark-900);
}

/* Background Particle Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Glassmorphism Panel (Futuristic App Container) */
.app-container {
    background: rgba(12, 10, 16, 0.72);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
                0 0 100px -20px rgba(139, 92, 246, 0.12);
}

.glass-card {
    background: rgba(18, 14, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.6),
                0 0 20px -5px rgba(6, 182, 212, 0.15);
}

/* Glowing outline structures */
.neon-border-purple {
    box-shadow: 0 0 25px -5px rgba(139, 92, 246, 0.25);
    border-color: var(--accent-primary) !important;
}

.neon-border-cyan {
    box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.25);
    border-color: var(--accent-secondary) !important;
}

/* Glow rings */
.glow-ring {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 2;
    opacity: 0.15;
}

/* 3D Tab sliding/fade animations */
@keyframes slide-in-tab {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.tab-active {
    display: flex !important;
    animation: slide-in-tab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Marquee Scrolling Ticker Bar */
@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 28s linear infinite;
}

/* Custom scrollbars inside tabs */
.tab-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.tab-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.tab-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
.tab-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Floating macOS-Style Navigation Dock */
.floating-dock-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 30;
}

.floating-dock {
    display: flex;
    gap: 10px;
    background: rgba(18, 14, 25, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 18px;
    border-radius: 24px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7),
                0 0 30px -10px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.dock-item:hover {
    transform: translateY(-8px) scale(1.18);
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4),
                0 0 15px -3px rgba(139, 92, 246, 0.3);
}

.dock-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.2));
    border-color: var(--accent-secondary);
    color: #fff;
    box-shadow: 0 0 20px -5px rgba(6, 182, 212, 0.5);
}

/* Dock Item Tooltip */
.dock-tooltip {
    position: absolute;
    bottom: 65px;
    background: rgba(10, 8, 14, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Live Streaming Player simulator screen */
.player-screen {
    background: #000;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(0,0,0,0.9);
}

/* Scanline / CRT overlay */
.scanlines::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    z-index: 5;
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.45;
}

/* Pure CSS audio visualizer animation */
@keyframes bounce-bar {
    0% { height: 10%; }
    100% { height: 95%; }
}

.audio-bar {
    width: 4px;
    background: linear-gradient(to top, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    animation: bounce-bar 0.7s ease-in-out infinite alternate;
}

/* Diagnostic command prompt block */
.terminal-window {
    background: rgba(6, 4, 10, 0.9);
    font-family: 'Courier New', Courier, monospace;
    border-radius: 16px;
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.08);
}

.terminal-line {
    border-left: 2px solid var(--accent-secondary);
    padding-left: 8px;
    margin-bottom: 6px;
    animation: slide-in-tab 0.3s ease;
}

/* Pulsing indicators */
@keyframes pulse-signal {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}
.pulse-signal-dot {
    animation: pulse-signal 1.8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* 3D Device rotation viewports */
.perspective-container {
    perspective: 1000px;
}

.bezel-3d {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.bezel-3d:hover {
    transform: rotateY(5deg) rotateX(2deg);
}

/* Loader Spin animation */
@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spin-loader {
    animation: spin-loader 0.9s linear infinite;
}

/* --- Interactive Cyber Robot Avatar & Speech Balloon --- */
@keyframes blink-eyes {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0); }
}

@keyframes robo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes led-pulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 4px #ef4444; }
    50% { opacity: 1; box-shadow: 0 0 12px #ef4444, 0 0 20px #ef4444; }
}

.robo-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    cursor: pointer;
    animation: robo-float 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.robo-container:hover {
    transform: scale(1.1);
}

.robo-head {
    width: 60px;
    height: 52px;
    background: linear-gradient(135deg, #1c182c, #0f0c1b);
    border: 2px solid var(--accent-primary);
    border-radius: 20px 20px 18px 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6), 
                0 0 15px rgba(139, 92, 246, 0.25),
                inset 0 2px 4px rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robo-visor {
    width: 44px;
    height: 14px;
    background: #05040a;
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 6px;
    box-shadow: inset 0 0 6px rgba(6, 182, 212, 0.5);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 6px;
}

.robo-eye {
    width: 6px;
    height: 6px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-secondary), 0 0 12px var(--accent-secondary);
    animation: blink-eyes 4s infinite;
}

.robo-antenna {
    width: 2px;
    height: 12px;
    background: var(--accent-primary);
    position: absolute;
    top: -12px;
    left: 29px;
    box-shadow: 0 0 4px var(--accent-primary);
}

.robo-antenna-tip {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    top: -16px;
    left: 27px;
    animation: led-pulse 1.5s infinite ease-in-out;
}

.robo-ear-l, .robo-ear-r {
    width: 6px;
    height: 12px;
    background: var(--accent-secondary);
    box-shadow: 0 0 6px var(--accent-secondary);
    position: absolute;
    top: 20px;
    border-radius: 2px;
}
.robo-ear-l { left: -5px; }
.robo-ear-r { right: -5px; }

/* Speech Balloon above the Robot */
.robo-balloon {
    position: fixed;
    bottom: 92px;
    right: 25px;
    max-width: 210px;
    background: rgba(18, 14, 25, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 92, 246, 0.45);
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 10px;
    color: #fff;
    font-weight: 700;
    z-index: 98;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6), 
                0 0 25px rgba(139,92,246,0.25);
    animation: robo-float 4s ease-in-out infinite alternate;
    animation-delay: 0.4s;
    pointer-events: none;
    line-height: 1.4;
}

.robo-balloon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(18, 14, 25, 0.88);
}

.robo-balloon-pulse {
    animation: pulse-signal 1.5s infinite;
}

/* Pulsing Glowing CTA Button Gradient Effect */
.neon-glow-btn {
    position: relative;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary), var(--accent-secondary));
    background-size: 200% auto;
    color: #000 !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 
                0 6px 20px rgba(139, 92, 246, 0.3);
    transition: all 0.4s ease;
    animation: gradient-flow 3s infinite linear;
}

.neon-glow-btn:hover {
    background-position: right center;
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.7), 
                0 8px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px) scale(1.03);
}

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

