﻿/* ============================================================================
   STATS BAR - PREMIUM SLIDER WITH CAROUSEL
   ============================================================================ */

.stats-bar-wrapper {
    position: relative;
    z-index: 10;
    margin: -10px 20px 32px;
}

.stats-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 20px;
    padding: 24px 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: slideUpStats 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.stats-container {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    flex: 1;
}

.stats-carousel {
    display: flex;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.stats-carousel.scrolling {
    transform: translateX(var(--scroll-offset, 0));
}

@keyframes slideUpStats {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Buttons */
.stats-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border: 1px solid rgba(212, 165, 116, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: #d4a574;
}

.stats-slider-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(212, 165, 116, 0.30);
    transform: scale(1.05);
}

.stats-slider-btn:active {
    transform: scale(0.95);
}

.stats-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Stat Item - BIGGER AND WIDER */
.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    justify-content: center;
    padding: 10px 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    min-width: 150px;
    width: 150px;
}

    .stat-item:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #fafafa 0%, #f8f8f8 100%);
    }

/* Stat Icon - Premium 3D Style - BIGGER */
.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    position: relative;
}

    .stat-icon::after {
        content: '';
        position: absolute;
        inset: -3px;
        background: linear-gradient(135deg, #d4a574 0%, #c4956f 100%);
        border-radius: 17px;
        opacity: 0;
        filter: blur(8px);
        transition: opacity 0.4s ease;
        z-index: -1;
    }

.stat-item:hover .stat-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.15), 0 4px 12px rgba(212, 165, 116, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
}

    .stat-item:hover .stat-icon::after {
        opacity: 0.15;
    }

.stat-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

/* Stat Content - OPTIMIZE FOR SINGLE LINE */
.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    min-width: 0; /* Allow text to shrink */
    flex: 1; /* Take available space */
}

.stat-value {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #d4a574 0%, #c4956f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.8px;
    white-space: nowrap;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    white-space: nowrap;
}

/* Stat Divider */
.stat-divider {
    width: 1px;
    height: 56px;
    background: linear-gradient( to bottom, transparent 0%, rgba(212, 165, 116, 0.15) 25%, rgba(212, 165, 116, 0.15) 75%, transparent 100% );
    flex-shrink: 0;
    display: none;
}

/* ============================================================================
   RESPONSIVE DESIGN - STAY IN ONE LINE
   ============================================================================ */

/* Desktop */
@media (min-width: 768px) {
    .stats-bar-wrapper {
        margin: -10px auto 36px;
        max-width: 900px;
    }

    .stats-bar {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .stats-slider-btn {
        width: 44px;
        height: 44px;
    }

    .stat-item {
        gap: 16px;
        padding: 12px;
        min-width: 160px;
        width: 160px;
    }

    .stat-icon {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .stat-icon svg {
        width: 32px;
        height: 32px;
    }

    .stat-value {
        font-size: 30px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-divider {
        height: 64px;
    }
}

/* Tablet */
@media (max-width: 767px) and (min-width: 481px) {
    .stats-bar-wrapper {
        margin: -10px 16px 28px;
    }

    .stats-bar {
        padding: 20px 12px;
        border-radius: 20px;
    }

    .stats-slider-btn {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .stat-item {
        gap: 12px;
        padding: 8px;
        min-width: 140px;
        width: 140px;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
    }

    .stat-icon svg {
        width: 26px;
        height: 26px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-divider {
        height: 52px;
    }
}

/* Mobile - SLIDER */
@media (max-width: 480px) {
    .stats-bar-wrapper {
        margin: -10px 12px 24px;
    }

    .stats-bar {
        padding: 18px 10px;
        border-radius: 18px;
        gap: 10px;
    }

    .stats-slider-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }

    .stat-item {
        gap: 10px;
        padding: 6px;
        min-width: 130px;
        width: 130px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .stat-value {
        font-size: 20px;
        letter-spacing: -0.6px;
    }

    .stat-label {
        font-size: 9px;
        letter-spacing: 0.3px;
    }

    .stat-divider {
        height: 48px;
    }
}

/* Mobile Extra Small - SLIDER */
@media (max-width: 380px) {
    .stats-bar-wrapper {
        margin: -10px 10px 20px;
    }

    .stats-bar {
        padding: 16px 8px;
        gap: 8px;
    }

    .stats-slider-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .stat-item {
        gap: 8px;
        padding: 4px;
        min-width: 120px;
        width: 120px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .stat-icon svg {
        width: 22px;
        height: 22px;
    }

    .stat-value {
        font-size: 18px;
        letter-spacing: -0.5px;
    }

    .stat-label {
        font-size: 8px;
        letter-spacing: 0.2px;
    }

    .stat-divider {
        height: 44px;
    }
}

/* Mobile Tiny - SLIDER */
@media (max-width: 340px) {
    .stats-bar-wrapper {
        margin: -10px 8px 18px;
    }

    .stats-bar {
        padding: 14px 6px;
        gap: 6px;
        border-radius: 16px;
    }

    .stats-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .stat-item {
        gap: 6px;
        padding: 3px;
        min-width: 110px;
        width: 110px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-value {
        font-size: 16px;
    }

    .stat-label {
        font-size: 7px;
    }

    .stat-divider {
        height: 40px;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .stats-bar,
    .stat-item,
    .stat-icon {
        animation: none !important;
        transition: none !important;
    }
}

.stat-item:focus-within {
    outline: 2px solid #d4a574;
    outline-offset: 3px;
    border-radius: 14px;
}
