/* Free Fire UID Checker — custom styles (works with Tailwind CDN) */

:root {
    --ember: #ff6b1a;
    --ember-soft: rgba(255, 107, 26, 0.15);
    --cyan: #22d3ee;
    --glass: rgba(18, 26, 43, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
}

html.light body {
    background: #eef2f7;
    color: #0f172a;
}

html.light .bg-ink-950 { background-color: #eef2f7 !important; }
html.light .bg-ink-900\/60,
html.light .bg-ink-900\/80 { background-color: rgba(255,255,255,0.85) !important; }
html.light .text-slate-100,
html.light .text-white { color: #0f172a !important; }
html.light .text-slate-300,
html.light .text-slate-400 { color: #475569 !important; }
html.light .border-white\/10 { border-color: rgba(15, 23, 42, 0.08) !important; }
html.light .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
}

[x-cloak] { display: none !important; }

/* Placeholder until Lucide swaps <i> → <svg> */
i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

.site-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn-ember {
    background: linear-gradient(135deg, #ff8a3d, #e8550c);
    box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.4), 0 8px 28px rgba(255, 107, 26, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-ember:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 0 0 1px rgba(255, 107, 26, 0.55), 0 12px 36px rgba(255, 107, 26, 0.45);
}

.btn-ember:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.input-glow:focus {
    outline: none;
    border-color: rgba(255, 107, 26, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.15);
}

.hero-title {
    text-shadow: 0 0 40px rgba(255, 107, 26, 0.25);
}

.profile-enter {
    animation: profileIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes profileIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pulse-ring {
    animation: pulseRing 1.6s ease-out infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.45); }
    70% { box-shadow: 0 0 0 14px rgba(255, 107, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 26, 0); }
}

.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-step {
    opacity: 0.45;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.loading-step.active {
    opacity: 1;
    color: #ff8a3d;
}

.stat-pill {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.rank-badge {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(255, 107, 26, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-ring {
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.45), 0 0 24px rgba(255, 107, 26, 0.25);
}

/* Smooth scroll for results */
html {
    scroll-behavior: smooth;
}

/* Admin sidebar */
.admin-link.active {
    background: rgba(255, 107, 26, 0.12);
    color: #ff8a3d;
    border-color: rgba(255, 107, 26, 0.25);
}
