/* Counter Specific Styles */

.counter-hero {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), var(--bg-secondary));
}

.counter-search-box {
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    position: relative;
    display: flex;
    gap: 10px;
}

.counter-input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.counter-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.counter-btn {
    padding: 0 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.counter-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Live Card - Glassmorphism & Immersive Design */
.live-counter-card {
    background: rgba(255, 255, 255, 0.05);
    /* Ultra transparent */
    backdrop-filter: blur(20px);
    /* Heavy blur for glass effect */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    /* Larger radius */
    padding: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Deep shadow */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
}

[data-theme="dark"] .live-counter-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-counter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Ambient Background Glow */
.live-counter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Full Screen Button - Top Left */
.fullscreen-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Live Status Indicator - Top Right */
.live-indicator {
    position: absolute;
    top: 25px;
    right: 25px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.live-indicator.inactive {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
    animation: none;
}

.live-indicator.inactive .live-dot {
    background: var(--text-muted);
    box-shadow: none;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    box-shadow: 0 0 8px #dc2626;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-width: 400px;
    animation: slideUp 0.5s ease;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: none;
}

#acceptCookies {
    width: 100%;
    padding: 0.75rem;
    background: var(--text-main);
    color: var(--bg-color);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

#acceptCookies:hover {
    opacity: 0.9;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: var(--spacing-md);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-handle {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.counter-display {
    text-align: center;
    margin: var(--spacing-sm) 0;
}

.counter-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.counter-number {
    font-size: 8rem;
    /* Massive number */
    font-weight: 900;
    line-height: 1.1;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-color) 100%);
    /* Color shift */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.2s ease;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Subtle depth */
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .counter-number {
        font-size: 4.5rem;
        /* Bigger for Mobile Immersion */
    }

    .counter-search-box {
        flex-direction: column;
    }

    .counter-btn {
        padding: 1rem;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Keep 3 on mobile or switch to 1? 3 usually fits fine for numbers */
        gap: 0.5rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }
}