/* ========== RocketMax – Dark Gaming Theme ========== */

/* --- Alpine.js cloak --- */
[x-cloak] { display: none !important; }

/* --- Animated gradient background for hero --- */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e1b4b 25%,
        #172554 50%,
        #1e1b4b 75%,
        #0f172a 100%
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

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

/* --- Floating orbs for hero background --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: #f97316;
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    animation: float-centered 20s ease-in-out infinite;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(10px, -10px) scale(1.02); }
}

@keyframes float-centered {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(calc(-50% + 30px), calc(-50% - 30px)) scale(1.05); }
    50% { transform: translate(calc(-50% - 20px), calc(-50% + 20px)) scale(0.95); }
    75% { transform: translate(calc(-50% + 10px), calc(-50% - 10px)) scale(1.02); }
}

/* --- Glass card effect --- */
.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card--interactive:hover {
    transform: translateY(-2px);
}

/* --- Feature card hover glow --- */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* --- Gradient text --- */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Chart container --- */
.chart-container {
    position: relative;
    height: 380px;
    margin-top: 10px;
}

/* --- Win / Lose badges --- */
.badge-win {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-lose {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- Gamemode chip --- */
.gamemode-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- MMR change (positive/negative) --- */
.mmr-positive {
    color: #4ade80;
    font-weight: 600;
}

.mmr-negative {
    color: #f87171;
    font-weight: 600;
}

/* --- Table styling for dark theme --- */
.dark-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dark-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dark-table tbody td {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.dark-table tbody tr {
    transition: background-color 0.15s ease;
}

.dark-table tbody tr:hover {
    background-color: rgba(148, 163, 184, 0.05);
}

/* --- Step number circles --- */
.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* --- Fade-in animation --- */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* --- Pulse glow for CTA --- */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.5); }
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* --- Player card avatar placeholder --- */
.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    flex-shrink: 0;
}

/* --- Responsive adjustments --- */
@media (max-width: 640px) {
    .chart-container {
        height: 260px;
    }

    .dark-table thead th,
    .dark-table tbody td {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}
