/* =====================
   Hansa Fab - Streamer Custom Styles
   ===================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Base */
* { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}

.font-display {
    font-family: 'Orbitron', ui-sans-serif, system-ui, sans-serif;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-12px) translateX(6px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(99, 102, 241, 0.4); }
}

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

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

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

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

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

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

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes count-up-glow {
    0% { text-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
    50% { text-shadow: 0 0 30px rgba(139, 92, 246, 1); }
    100% { text-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 8s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 12s linear infinite; }
.animate-gradient {
    background-size: 300% 300%;
    animation: gradient-move 8s ease infinite;
}
.animate-fade-in-up { animation: fade-in-up 0.8s ease forwards; }
.animate-bounce-soft { animation: bounce-soft 2s ease-in-out infinite; }
.animate-marquee { animation: marquee 20s linear infinite; }
.animate-blink { animation: blink-dot 1.2s ease-in-out infinite; }
.animate-pop-in { animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #a78bfa, #818cf8, #f472b6, #a78bfa);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 6s ease infinite;
}

/* Animated gradient border */
.gradient-border {
    position: relative;
    background: linear-gradient(#1a1033, #1a1033) padding-box,
                linear-gradient(135deg, #a78bfa, #818cf8, #f472b6, #a78bfa, #22d3ee) border-box;
    border: 2px solid transparent;
    background-size: 200% 200%;
    animation: gradient-move 6s ease infinite;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Twitch purple glow */
.twitch-glow {
    box-shadow: 0 0 30px rgba(145, 70, 255, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #140a26; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a78bfa, #818cf8);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #c4b5fd, #a5b4fc); }

/* Typing dots */
.typing-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    display: inline-block;
    animation: typing 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

/* Count-up numbers */
.count-number {
    font-family: 'Orbitron', sans-serif;
    animation: count-up-glow 3s ease-in-out infinite;
}

/* Live badge */
.live-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Party confetti */
.confetti-piece {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 15px;
    z-index: 100;
    opacity: 0.9;
    pointer-events: none;
}

/* Custom cursor glow effect */
.glow-trail {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3), transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s ease;
}

/* Tooltip */
.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #1a1033;
    color: #e9e9ff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(167, 139, 250, 0.3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 50;
}
.tooltip:hover::after { opacity: 1; }

/* Selection color */
::selection {
    background: #a78bfa;
    color: white;
}

/* ===== Job Base dropdown readability ===== */
select#job_base {
    color: #e9e9ff;
    background-color: rgba(10, 6, 18, 0.6);
}

select#job_base option {
    color: #000000;
    background-color: #ffffff;
    font-weight: 700;
    padding: 8px 12px;
    cursor: pointer;
}

select#job_base option:disabled {
    color: #6b7280;
    font-weight: 600;
}

select#job_base option:hover,
select#job_base option:checked {
    background-color: #ede9fe;
    color: #000000;
}

/* ===== Monster Image Modal ===== */
#monster-modal {
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#monster-modal .glass {
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUp {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
#monster-modal img {
    transition: transform 0.3s ease;
}
#monster-modal img:hover {
    transform: scale(1.02);
}

/* ===== Mobile Bottom Navigation ===== */
#mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 50;
}

#mobile-bottom-nav a {
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

#mobile-bottom-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Add bottom padding to body so content isn't hidden behind fixed bottom nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 60px;
    }
}

