/* Stats Page Specific Styles using main.css variables */

/* General Section Styles */
.stats-hero-section {
    padding: 120px 0 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/hero/5.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--golden), var(--golden-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.stats-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--golden-dark), var(--golden));
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Quick Stats Card Styles */
.quick-stats-section {
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: var(--dark-gray);
}

.stat-card {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid var(--golden);
    overflow: hidden;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    flex: 0 0 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--black);
    color: var(--golden);
    margin-right: 20px;
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-trend {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-trend.up {
    color: var(--golden);
}

.stat-trend.down {
    color: var(--golden-dark);
}

.stat-capacity, .stat-context {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.progress {
    height: 5px;
    margin-bottom: 5px;
    background-color: var(--black);
}

.progress-bar {
    background-color: var(--golden);
}

/* Chart Container Styles */
.player-activity-section,
.server-performance-section {
    background-color: var(--black);
}

.chart-container {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    height: 100%;
}

.chart-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.time-filter {
    display: flex;
    gap: 10px;
}

.time-btn {
    background: var(--black);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-btn.active, .time-btn:hover {
    background: var(--golden);
    color: var(--black);
}

#player-activity-chart,
#player-count-chart,
#peak-hours-chart {
    width: 100%;
    height: 350px;
}

/* Top Players Leaderboard Styles */
.leaderboard-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.leaderboard-header {
    background: linear-gradient(45deg, var(--black), var(--light-gray));
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-header h3 i {
    color: var(--golden);
}

.leaderboard-body {
    flex: 1;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    background-color: var(--black);
}

.rank {
    flex: 0 0 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--golden);
}

.player-avatar {
    flex: 0 0 40px;
    margin-right: 15px;
}

.player-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--golden);
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.player-stat {
    font-size: 0.85rem;
    color: var(--golden);
}

.badge-container {
    margin-left: auto;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--golden);
}

.badge.veteran, .badge.elite, .badge.tycoon, .badge.mogul, 
.badge.feature, .badge.improvement, .badge.bugfix, 
.badge.security, .badge.content {
    background-color: rgba(212, 175, 55, 0.2);
    color: var(--golden);
}

.leaderboard-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Server Performance Styles */
.performance-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    height: 100%;
}

.performance-card h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uptime-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.uptime-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    background-color: var(--black);
    padding: 15px;
    border-radius: 10px;
}

.uptime-icon {
    flex: 0 0 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-gray);
    border-radius: 10px;
    font-size: 20px;
    margin-right: 15px;
    color: var(--golden);
}

.uptime-details h4 {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.uptime-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--golden);
    margin-bottom: 0;
}

.uptime-period {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.uptime-timeline {
    margin-top: 30px;
}

.uptime-timeline h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 15px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 9px;
    width: 2px;
    background-color: var(--dark-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--dark-gray);
    z-index: 1;
}

.timeline-marker.resolved {
    background-color: rgba(212, 175, 55, 0.3);
    border: 2px solid var(--golden);
}

.timeline-marker.incident {
    background-color: rgba(212, 175, 55, 0.3);
    border: 2px solid var(--golden-dark);
}

.timeline-content h5 {
    font-size: 1rem;
    color: white;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

/* Recent Updates Styles */
.recent-updates-section {
    background-color: var(--dark-gray);
}

.update-timeline {
    position: relative;
    margin-bottom: 50px;
}

.update-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 120px;
    width: 2px;
    background-color: rgba(212, 175, 55, 0.2);
}

.update-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.update-date {
    flex: 0 0 100px;
    text-align: center;
    padding-right: 20px;
    position: relative;
}

.update-date:after {
    content: '';
    position: absolute;
    top: 25px;
    right: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--golden);
    z-index: 1;
}

.update-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--golden);
    line-height: 1;
}

.update-date .month {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
}

.update-content {
    flex: 1;
    padding-left: 40px;
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.update-content h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
}

.update-badges {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.update-details {
    margin-bottom: 20px;
}

.update-details h4 {
    font-size: 1.1rem;
    color: var(--golden);
    margin-bottom: 10px;
    margin-top: 20px;
}

.update-details ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.update-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.update-details li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--golden);
    font-size: 1.2rem;
}

/* Buttons */
.btn-outline-light {
    border-color: var(--golden);
    color: var(--golden);
}

.btn-outline-light:hover {
    background-color: var(--golden);
    color: var(--black);
    border-color: var(--golden);
}

.btn-primary {
    background-color: var(--golden);
    border-color: var(--golden);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--golden-dark);
    border-color: var(--golden-dark);
    color: var(--black);
}

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

.count-up, .money-count {
    animation: countUp 1s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .stats-title {
        font-size: 2.5rem;
    }
    
    .update-timeline:before {
        left: 80px;
    }
    
    .update-date {
        flex: 0 0 60px;
    }
    
    .update-content {
        padding-left: 30px;
    }
}

@media (max-width: 767.98px) {
    .stats-hero-section {
        padding: 100px 0 40px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .update-timeline:before {
        display: none;
    }
    
    .update-item {
        flex-direction: column;
    }
    
    .update-date {
        flex: 0 0 auto;
        padding-right: 0;
        padding-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .update-date:after {
        display: none;
    }
    
    .update-date .day, .update-date .month {
        display: inline;
    }
    
    .update-content {
        padding-left: 20px;
    }
    
    .uptime-stats {
        flex-direction: column;
    }
    
    .stat-card {
        margin-bottom: 20px;
    }
}

/* Additional particles styling */
.floating-particle {
    position: absolute;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    pointer-events: none;
}