/* ======================================================
   Anjni Gaming Store - Custom CSS
   Outfit font via Google Fonts CDN in layout.php
   Tailwind CDN handles utility classes
   ====================================================== */

/* Prevent horizontal overflow on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ----- Custom scrollbar ----- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1115;
}
::-webkit-scrollbar-thumb {
    background: #f59e0b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #fbbf24;
}

/* ----- Glassmorphism panel ----- */
.glass-panel {
    background: rgba(22, 25, 32, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ----- Gradient text (orange brand) ----- */
.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Gradient button glow ----- */
.btn-glow {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
    transition: box-shadow 0.2s ease;
}
.btn-glow:hover {
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.5);
}

/* ----- Animated live badge ----- */
.live-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* ----- Ticker/scrolling banner ----- */
.ticker-track {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}
.ticker-track:hover {
    animation-play-state: paused;
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ----- Product card hover lift ----- */
.product-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ----- Countdown progress bar color transitions ----- */
.progress-bar {
    transition: width 1s linear, background-color 0.5s ease;
}
.progress-bar.warn  { background-color: #eab308; }
.progress-bar.danger { background-color: #ef4444; }

/* ----- QR code shimmer while loading ----- */
.qr-loading {
    background: linear-gradient(90deg, #161920 25%, #1f242e 50%, #161920 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ----- Sticky navbar shrink on scroll ----- */
#main-nav {
    transition: padding 0.25s ease, background 0.25s ease;
}
#main-nav.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: rgba(15, 17, 21, 0.95);
}

/* ----- Section category badge colors ----- */
.badge-game    { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-voucher { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-account { background: rgba(168,85,247,0.15); color: #c4b5fd; }

/* ----- Copy-to-clipboard button flash ----- */
.copy-flash {
    animation: flash-green 0.4s ease;
}
@keyframes flash-green {
    0%   { background-color: rgba(34,197,94,0.3); }
    100% { background-color: transparent; }
}

/* ----- Input autofill override (dark bg) ----- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #0f1115 inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    caret-color: #e2e8f0;
}

/* ----- Voucher code display box ----- */
.voucher-code-box {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.08em;
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 12px 20px;
    color: #fbbf24;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ----- Proof card hover overlay ----- */
.proof-card:hover .proof-overlay {
    opacity: 1;
}

/* ----- Selection highlight ----- */
::selection {
    background: rgba(245, 158, 11, 0.35);
    color: white;
}
