/* Platform Stats Bar - Compact Hero Integration */
.platform-stats-bar {
    background: var(--theme-surface-1, rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--theme-border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    box-shadow: var(--theme-shadow-sm);
    transition: all 0.3s ease;
}

.platform-stats-bar:hover {
    background: var(--theme-surface-2, rgba(255, 255, 255, 0.08));
    border-color: var(--theme-border-hover, rgba(255, 255, 255, 0.15));
    box-shadow: var(--theme-shadow-md);
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--theme-border-color, rgba(255, 255, 255, 0.1));
    opacity: 0.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .platform-stats-bar {
        padding: 0.75rem 0.5rem;
        margin-top: 1rem;
    }
    
    .stats-container {
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .stat-item {
        min-width: auto;
        padding: 0.25rem;
        flex: 0 1 auto;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0;
    }
    
    .stat-divider {
        height: 20px;
        opacity: 0.3;
    }
}

@media (max-width: 480px) {
    .platform-stats-bar {
        padding: 0.75rem;
        margin-top: 0.75rem;
        border-radius: 8px;
    }
    
    .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        row-gap: 0.5rem;
    }
    
    .stat-item {
        min-width: auto;
        padding: 0.5rem 0.25rem;
        text-align: center;
        background: var(--theme-surface-2, rgba(255, 255, 255, 0.03));
        border-radius: 6px;
        border: 1px solid var(--theme-border-color, rgba(255, 255, 255, 0.08));
    }
    
    .stat-value {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.125rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0;
        text-transform: none;
        font-weight: 400;
        opacity: 0.85;
    }
    
    .stat-divider {
        display: none;
    }
    
    /* Specific accent colors for mobile grid */
    .stat-item[data-stat="paid-out"] {
        border-color: var(--theme-success, #28a745);
    }
    
    .stat-item[data-stat="ace-pots"] {
        border-color: var(--theme-warning, #ffc107);
    }
    
    .stat-item[data-stat="players"] {
        border-color: var(--theme-info, #17a2b8);
    }
    
    .stat-item[data-stat="events"] {
        border-color: var(--theme-primary, #007bff);
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .platform-stats-bar {
        padding: 0.6rem;
    }
    
    .stats-container {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.4rem 0.2rem;
    }
    
    .stat-value {
        font-size: 0.9rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
}

/* Animation for number counting effect */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-value {
    animation: countUp 0.6s ease-out;
}

/* Dark mode specific adjustments */
[data-theme="dark"] .platform-stats-bar {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .platform-stats-bar:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Integration with hero section */
.hero-content .platform-stats-bar {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Accent colors for different stats */
.stat-item:nth-child(1) .stat-value { /* Paid Out */
    color: var(--theme-success, #28a745);
}

.stat-item:nth-child(3) .stat-value { /* Ace Pots */
    color: var(--theme-warning, #ffc107);
}

.stat-item:nth-child(5) .stat-value { /* Players */
    color: var(--theme-info, #17a2b8);
}

.stat-item:nth-child(7) .stat-value { /* Events */
    color: var(--theme-primary, #007bff);
}

/* Subtle glow effect on hover */
.stat-item:hover .stat-value {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}