/* ===========================
   Stats Section - Unique Design
   =========================== */
.stats-section {
    position: relative;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF9E5 50%, #FFFBF0 100%);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.05) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
    z-index: 0;
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

/* Stats Row Layout */
.stats-row {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    position: relative;
}

.stats-row::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #FFE17D 20%, 
        #FF8C00 50%, 
        #FFE17D 80%, 
        transparent 100%);
    border-radius: 2px;
}

/* Individual Stat Item */
.stat-item {
    flex: 1;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.03) 0%, rgba(255, 225, 125, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-10px);
}

/* Divider between stats */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 140, 0, 0.2) 50%, 
        transparent 100%);
}

/* Icon Container */
.stat-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    z-index: 1;
}

.stat-icon-bg {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto;
}

.stat-icon-bg::before,
.stat-icon-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.stat-icon-bg::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1) 0%, rgba(255, 225, 125, 0.15) 100%);
    animation: pulse 3s ease-in-out infinite;
}

.stat-icon-bg::after {
    width: 70%;
    height: 70%;
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.8;
    }
}

.stat-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #fff;
    z-index: 1;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

/* Number Display */
.stat-number-wrapper {
    margin-bottom: 15px;
    z-index: 1;
    position: relative;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #1E1E2A 0%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.stat-number::after {
    content: attr(data-symbol);
    position: absolute;
    right: -25px;
    top: 0;
    font-size: 40px;
    color: #FF8C00;
    font-weight: 800;
}

/* Label */
.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #5E626F;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

/* Badge */
.stat-badge {
    display: inline;
    background: linear-gradient(135deg, #FF8C00 0%, #FFB347 100%);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
    }
}

/* Special styling for "Daily" text */
.stat-number.text-style {
    font-size: 48px;
    letter-spacing: 2px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .stats-row {
        flex-direction: column;
        gap: 0;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .stat-item {
        padding: 40px 30px;
        border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .stat-icon-bg {
        width: 80px;
        height: 80px;
    }
    
    .stat-icon {
        font-size: 34px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .stat-number::after {
        font-size: 34px;
        right: -20px;
    }
    
    .stat-number.text-style {
        font-size: 40px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .stat-item {
        padding: 35px 20px;
    }
}

@media (max-width: 576px) {
    .stat-icon-bg {
        width: 70px;
        height: 70px;
    }
    
    .stat-icon {
        font-size: 30px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-number::after {
        font-size: 30px;
        right: -18px;
    }
    
    .stat-number.text-style {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .stat-badge {
        font-size: 11px;
        padding: 5px 15px;
    }
}
