/* ─── Haze Tools — App Styles ─────────────────────────────── */

/* High-End Typography */
.font-syncopate { font-family: 'Syncopate', sans-serif; }
.font-chakra { font-family: 'Chakra Petch', sans-serif; }

/* Classic Haze Utilities */
.haze-card {
    background-color: #18181b; /* zinc-900 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}

.haze-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.haze-glow-lime {
    box-shadow: 0 0 20px rgba(200, 255, 0, 0.15);
}

.haze-glow-blue {
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.15);
}


/* View transition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered reveal for bento cards */
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.bento-card {
    opacity: 0;
    animation: cardReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.18s; }
.bento-card:nth-child(3) { animation-delay: 0.26s; }
.bento-card:nth-child(4) { animation-delay: 0.34s; }
.bento-card:nth-child(5) { animation-delay: 0.42s; }
.bento-card:nth-child(6) { animation-delay: 0.50s; }

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.counter-value {
    animation: countUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* Floating glow accent */
@keyframes floatGlow {
    0%, 100% { transform: translateY(0px); opacity: 0.6; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.float-glow {
    animation: floatGlow 4s ease-in-out infinite;
}

/* Terminal cursor */
@keyframes termBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.term-cursor::after {
    content: '█';
    animation: termBlink 1s step-end infinite;
    color: #C8FF00;
}

/* Marquee Scrolling */
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.animate-marquee {
    display: inline-flex;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}

/* Radar Sweep */
@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-radar {
    animation: radarSweep 4s linear infinite;
}

.animate-radar-reverse {
    animation: radarSweep 8s linear infinite reverse;
}

/* Pulse Scale */
@keyframes pulseScale {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.animate-pulse-scale {
    animation: pulseScale 3s ease-in-out infinite;
}

/* Data Typing Effect */
@keyframes typeIn {
    from { width: 0; opacity: 0; }
    to { width: 100%; opacity: 1; }
}

.type-in {
    overflow: hidden;
    white-space: nowrap;
    animation: typeIn 1s steps(20, end) forwards;
}

/* Live feed shimmer */
@keyframes feedSlide {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.feed-item {
    animation: feedSlide 0.3s ease-out forwards;
}

/* Active nav indicator */
.nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #ffffff;
    margin-top: 2px;
    animation: fadeIn 0.3s ease;
}

.nav-link.active[data-view="optimizer"] {
    color: #C8FF00 !important;
}
.nav-link.active[data-view="optimizer"]::after {
    background: #C8FF00;
    box-shadow: 0 0 8px rgba(200, 255, 0, 0.5);
}

.nav-link.active[data-view="analytics"] {
    color: #5865F2 !important;
}
.nav-link.active[data-view="analytics"]::after {
    background: #5865F2;
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.5);
}

.nav-link.active[data-view="ranks"] {
    color: #10b981 !important;
}
.nav-link.active[data-view="ranks"]::after {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Mobile dock active */
.dock-link.active .material-symbols-outlined {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .bento-card,
    .counter-value {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
