/* InfiniteClicks Premium Light Theme CSS */

:root {
    --bg-light: #f8fafc; /* Slate 50 background */
    --card-bg: rgba(255, 255, 255, 0.72);
    --card-border: rgba(15, 23, 42, 0.07);
    --primary-neon: #7c3aed; /* Vibrant Violet */
    --secondary-neon: #0284c7; /* Vibrant Sky Blue */
    --accent-neon: #db2777; /* Vibrant Pink */
    --warning-neon: #d97706; /* Vibrant Amber */
    --text-glow: 0 0 10px rgba(124, 58, 237, 0.25);
    --cyan-glow: 0 0 10px rgba(2, 132, 199, 0.25);
    --pink-glow: 0 0 10px rgba(219, 39, 119, 0.25);
    --amber-glow: 0 0 10px rgba(217, 119, 6, 0.25);
}

body {
    background-color: var(--bg-light);
    color: #1e293b; /* Slate 800 */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(219, 39, 119, 0.05) 0%, transparent 50%);
    animation: bgGradientCycle 20s infinite alternate ease-in-out;
}

@keyframes bgGradientCycle {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
        filter: hue-rotate(25deg);
    }
}

/* Grid Overlay Background Animation */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

/* Glassmorphism Styles (Light Canvas) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(124, 58, 237, 0.18);
    box-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.08);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.navbar-dark .navbar-brand {
    color: #0f172a !important; /* Dark logo text */
}

.navbar-dark .nav-link {
    color: #475569 !important; /* Slate 600 links */
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-dark .nav-link:hover, 
.navbar-dark .nav-link.active {
    color: var(--primary-neon) !important;
}

.dropdown-glass {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}
.dropdown-glass .dropdown-item {
    color: #334155 !important;
    transition: all 0.2s ease;
}
.dropdown-glass .dropdown-item:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary-neon) !important;
}

.glass-footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--card-border);
}

/* Neon Text Glows adjusted for Light theme */
.text-neon-glow {
    color: #6d28d9; /* Deep purple */
    text-shadow: var(--text-glow);
}
.text-cyan-glow {
    color: #0369a1; /* Deep Sky Blue */
    text-shadow: var(--cyan-glow);
}
.text-pink-glow {
    color: #c2185b; /* Deep Pink */
    text-shadow: var(--pink-glow);
}
.text-amber-glow {
    color: #b45309; /* Deep Amber */
    text-shadow: var(--amber-glow);
}

/* Digital Counts */
.digital-count {
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* Giant Interactive Click Button */
.click-button-container {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.click-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    border: none;
    outline: none;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 25px rgba(168, 85, 247, 0.35),
        inset 0 0 15px rgba(255, 255, 255, 0.25);
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    -webkit-user-select: none;
    animation: clickBtnColorShift 10s infinite linear;
}

.click-btn::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid var(--secondary-neon);
    opacity: 0.5;
    animation: pulse-ring 2.2s infinite;
    pointer-events: none;
}

.click-btn::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.click-btn-inner {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.click-btn-inner .btn-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    margin-bottom: 2px;
}

.click-btn-inner .btn-subtext {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    font-weight: 600;
}

.click-btn:hover {
    transform: scale(1.04);
    box-shadow: 
        0 0 35px rgba(168, 85, 247, 0.5),
        0 0 15px rgba(6, 182, 212, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.35);
}

.click-btn:active {
    transform: scale(0.94);
    box-shadow: 
        0 0 15px rgba(168, 85, 247, 0.6),
        inset 0 0 25px rgba(0, 0, 0, 0.4);
}

@keyframes clickBtnColorShift {
    0% {
        filter: hue-rotate(0deg);
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), inset 0 0 15px rgba(255, 255, 255, 0.25);
    }
    50% {
        filter: hue-rotate(180deg);
        box-shadow: 0 0 25px rgba(2, 132, 199, 0.35), inset 0 0 15px rgba(255, 255, 255, 0.25);
    }
    100% {
        filter: hue-rotate(360deg);
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), inset 0 0 15px rgba(255, 255, 255, 0.25);
    }
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Live Floating Number Indicator (+1 Animation) */
.click-float-number {
    position: absolute;
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--secondary-neon);
    text-shadow: var(--cyan-glow);
    pointer-events: none;
    z-index: 100;
    animation: float-up 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes float-up {
    0% {
        transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -160px) scale(1.1) rotate(12deg);
        opacity: 0;
    }
}

/* 60-Second Speed Challenge Section Styles */
.speed-trial-card {
    border-top: 4px solid var(--warning-neon);
}

.trial-timer {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ef4444; /* Alert Red timer */
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    background: #0f172a;
    padding: 8px 24px;
    border-radius: 12px;
    display: inline-block;
}

.trial-btn {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #e11d48 100%);
    border: none;
    outline: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
    transition: all 0.15s ease-in-out;
}

.trial-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

.trial-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.trial-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* Leaderboards Styling (Light Theme) */
.leaderboard-tabs .nav-link {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
    color: #475569;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.leaderboard-tabs .nav-link.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--text-glow);
}

.table-glass {
    color: #334155;
    vertical-align: middle;
}
.table-glass th {
    border-bottom: 2px solid rgba(15, 23, 42, 0.06);
    color: #475569;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.table-glass td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    padding: 12px 10px;
}

.leaderboard-row {
    transition: background-color 0.2s ease;
}
.leaderboard-row:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

.rank-badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}
.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.rank-2 {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    color: #000;
}
.rank-3 {
    background: linear-gradient(135deg, #fed7aa 0%, #c2410c 100%);
    color: #fff;
}

/* Activity Ticker Feed (Light Theme) */
.activity-feed-container {
    height: 230px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}
.activity-feed-container::-webkit-scrollbar {
    width: 4px;
}
.activity-feed-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.feed-item {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
    font-size: 0.85rem;
    color: #475569;
}

/* Achievement Badges Showcase */
.badge-card {
    background: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.badge-card.locked {
    opacity: 0.35;
    filter: grayscale(1);
}
.badge-card.unlocked {
    border-color: rgba(2, 132, 199, 0.15);
    background: rgba(2, 132, 199, 0.015);
}
.badge-card.unlocked:hover {
    transform: translateY(-4px);
    border-color: var(--secondary-neon);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.15);
}

.badge-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.unlocked .badge-icon-wrap {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
    color: var(--secondary-neon);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

/* Achievement Floating Notification Toast (Light Theme) */
.achievement-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 310px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 2px solid var(--secondary-neon);
    box-shadow: 0 6px 24px rgba(2, 132, 199, 0.2);
    border-radius: 12px;
    padding: 14px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(370px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-toast.show {
    transform: translateX(0);
}

/* AdSense Placeholder style */
.adsense-placeholder {
    background: rgba(0, 0, 0, 0.015);
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.adsense-placeholder:hover {
    background: rgba(0, 0, 0, 0.025);
    border-color: rgba(0, 0, 0, 0.15);
}
.header-ad, .footer-ad {
    height: 90px;
    width: 100%;
}
.sidebar-ad {
    height: 250px;
    width: 100%;
}
.mid-ad {
    height: 90px;
    width: 100%;
}

/* Buttons style details */
.btn-google {
    background-color: #fff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-google:hover {
    background-color: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.btn-neon-violet {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-neon-violet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    color: #fff;
}

/* Animations helpers */
.animate-pulse-slow {
    animation: pulse-slow 2s infinite ease-in-out;
}
@keyframes pulse-slow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}
.bg-dark {
    background-color: #0f172a !important;
}
.form-control.bg-dark {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Accessibility & Contrast Overrides for Light Theme */
.text-white:not(.click-btn *, .trial-btn *) {
    color: #0f172a !important; /* Slate 900 instead of white */
}
.text-white-50:not(.click-btn *, .trial-btn *) {
    color: #475569 !important; /* Slate 600 instead of transparent white */
}
.text-warning {
    color: #b45309 !important; /* Amber 700 instead of yellow */
}
.text-info {
    color: #0369a1 !important; /* Darker blue */
}
.text-muted {
    color: #475569 !important; /* Slate 600 instead of light gray */
}
.text-secondary {
    color: #334155 !important; /* Slate 700 */
}
.text-success {
    color: #047857 !important; /* Darker success green */
}
.text-danger {
    color: #b91c1c !important; /* Darker danger red */
}



