/* ========================================
   STATS SECTION STYLES - Seven Role Play
======================================== */

/* Stats Container */
#stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a0a0a 90%, #1a0d2e 100%, #0f0f23 100%);
    position: relative;
    overflow: hidden;
}

#stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(153, 18, 230, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(153, 18, 230, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Stats Hero */
.stats-hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #9912E6;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(153, 18, 230, 0.2);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse1-glow {
    0% { box-shadow: 0 10px 30px rgba(153, 18, 230, 0.2); }
    100% { box-shadow: 0 10px 40px rgba(153, 18, 230, 0.4); }
}

.stats-main-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #9912E6, #a855f7, #9912E6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(153, 18, 230, 0.5);
    margin-bottom: 1rem;
    font-family: 'Tajawal', sans-serif !important;
    position: relative;
}

.stats-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #9912E6, transparent);
    border-radius: 2px;
}

.stats-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-family: 'Tajawal', sans-serif !important;
}

.highlight {
    color: #9912E6;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(153, 18, 230, 0.5);
}

.live-time {
    color: #00ff88;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* Main Stats */
.main-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(153, 18, 230, 0.1), transparent);
    transition: left 0.7s;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(153, 18, 230, 0.3);
    border-color: rgba(153, 18, 230, 0.4);
}

.stat-visual {
    margin-bottom: 1.5rem;
}

.stat-visual i {
    font-size: 4rem;
    background: linear-gradient(135deg, #9912E6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(153, 18, 230, 0.5));
    display: block;
    margin: 0 auto 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.stat-data {
    margin-bottom: 1.5rem;
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #9912E6, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', sans-serif !important;
}

.stat-unit {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif !important;
}

.stat-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif !important;
}

.stat-trend.up {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
}

.stat-trend.perfect {
    background: rgba(153, 18, 230, 0.15);
    border-color: rgba(153, 18, 230, 0.4);
    color: #9912E6;
}

.stat-trend:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.achievements-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #9912E6;
    margin-bottom: 3rem;
    font-family: 'Tajawal', sans-serif !important;
    position: relative;
}

.achievements-title i {
    color: #9912E6;
    margin-right: 1rem;
    text-shadow: 0 0 20px rgba(153, 18, 230, 0.5);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #9912E6, transparent);
}

.achievement-card.completed::before {
    background: linear-gradient(90deg, #00ff88, transparent);
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 255, 136, 0.25);
}

.achievement-card.completed {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.08);
}

.achievement-card.upcoming {
    border-color: rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

.achievement-card.upcoming:hover {
    opacity: 1;
}

.achievement-icon {
    margin-bottom: 1.5rem;
}

.achievement-icon i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #9912E6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(153, 18, 230, 0.5));
}

.achievement-card.completed .achievement-icon i {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-content h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif !important;
}

.achievement-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-family: 'Tajawal', sans-serif !important;
}

.achievement-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #9912E6;
    font-family: 'Tajawal', sans-serif !important;
}

.achievement-card.completed .achievement-date {
    color: #00ff88;
}

/* Progress Timeline */
.progress-section {
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.progress-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3rem;
    font-family: 'Tajawal', sans-serif !important;
}

.progress-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.progress-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    width: calc(100% - 100px);
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-step {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 2rem;
    position: relative;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.timeline-item.active .timeline-step {
    background: linear-gradient(135deg, #9912E6, #a855f7);
    border-color: #9912E6;
    color: #000;
    box-shadow: 0 0 30px rgba(153, 18, 230, 0.6);
    transform: scale(1.1);
}

.timeline-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-right: 2rem;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #9912E6, #9912E6);
    border-radius: 2px;
    transition: width 2s ease;
    box-shadow: 0 0 20px rgba(153, 18, 230, 0.5);
}

.timeline-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Tajawal', sans-serif !important;
    min-width: 150px;
}

/* Counter Animation */
.stat-value {
    counter-reset: count 0;
}

.stat-value::after {
    content: counter(count);
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    to { counter-increment: count 1; }
}

/* CTA Section */
.stats-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif !important;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: 'Tajawal', sans-serif !important;
}

.cta-discord {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #9912E6, #a855f7);
    color: #000 !important;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(153, 18, 230, 0.4);
    font-family: 'Tajawal', sans-serif !important;
    position: relative;
    overflow: hidden;
}

.cta-discord::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-discord:hover::before {
    left: 100%;
}

.cta-discord:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(153, 18, 230, 0.6);
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    #stats {
        padding: 3rem 0;
    }
    
    .main-stats {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .timeline-step {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .timeline-bar {
        margin-right: 0;
        margin-bottom: 1rem;
        order: 3;
        width: 100%;
    }
    
    .progress-timeline::before {
        left: 30px;
        width: calc(100% - 60px);
    }
    
    .stats-main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .stats-hero {
        margin-bottom: 3rem;
    }
    
    .stats-main-title {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
    }
    
    .achievement-card {
        padding: 2rem 1.5rem;
    }
    
    .stats-cta {
        padding: 3rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 2rem;
    }
    
    .cta-discord {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item,
.achievement-card,
.timeline-item {
    animation: fadeInUp 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.achievement-card:nth-child(1) { animation-delay: 0.2s; }
.achievement-card:nth-child(2) { animation-delay: 0.3s; }
.achievement-card:nth-child(3) { animation-delay: 0.4s; }
.achievement-card:nth-child(4) { animation-delay: 0.5s; }
.achievement-card:nth-child(5) { animation-delay: 0.6s; }

/* Scroll Reveal */
.stats-hero {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.main-stats {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease 0.8s forwards;
}

/* Custom Scrollbar */
.progress-timeline::-webkit-scrollbar {
    width: 6px;
}

.progress-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.progress-timeline::-webkit-scrollbar-thumb {
    background: linear-gradient(#9912E6, #a855f7);
    border-radius: 3px;
}

/* Hover Effects */
.stat-trend i,
.achievement-icon i,
.timeline-step {
    transition: all 0.3s ease;
}

.stat-trend:hover i {
    transform: scale(1.2) rotate(10deg);
}

.achievement-card:hover .achievement-icon i {
    transform: scale(1.1) rotate(360deg);
}

/* Performance */
.stat-item,
.achievement-card {
    will-change: transform, opacity;
}

/* Print Styles */
@media print {
    #stats {
        background: white !important;
        color: black !important;
    }
    
    .stat-trend,
    .highlight,
    .live-time {
        color: #9912E6 !important;
    }
}



















