/**
 * Capacity Counter Component
 * Academia Alexander Fleming
 */

/* ==========================================
   CAPACITY COUNTER SECTION
   ========================================== */

.capacity-counter {
    background: linear-gradient(135deg, #0052FF 0%, #0041CC 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.capacity-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.capacity-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   HEADER SECTION
   ========================================== */

.capacity-header {
    margin-bottom: 32px;
}

.capacity-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.capacity-badge span {
    font-size: 20px;
}

.capacity-badge p {
    margin: 0;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.capacity-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.2;
}

.capacity-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin: 0;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */

.capacity-bar-wrapper {
    margin: 32px 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.capacity-bar-container {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    height: 60px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.capacity-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 50%, #047857 100%);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 24px;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.capacity-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.capacity-percentage {
    font-size: 24px;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   STATS SECTION
   ========================================== */

.capacity-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 24px;
}

.capacity-stat {
    text-align: center;
}

.capacity-stat-value {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    display: block;
}

.capacity-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   CALL TO ACTION
   ========================================== */

.capacity-cta {
    margin-top: 32px;
}

.capacity-cta .btn {
    background: white;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.capacity-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .capacity-counter {
        padding: 32px 0;
    }

    .capacity-title {
        font-size: 24px;
    }

    .capacity-subtitle {
        font-size: 16px;
    }

    .capacity-bar-container {
        height: 50px;
    }

    .capacity-percentage {
        font-size: 20px;
        padding-right: 16px;
    }

    .capacity-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .capacity-stat-value {
        font-size: 28px;
    }

    .capacity-stat-label {
        font-size: 12px;
    }

    .capacity-cta .btn {
        font-size: 16px;
        padding: 14px 32px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .capacity-title {
        font-size: 20px;
    }

    .capacity-subtitle {
        font-size: 15px;
    }

    .capacity-bar-container {
        height: 40px;
    }

    .capacity-percentage {
        font-size: 18px;
    }

    .capacity-stat-value {
        font-size: 24px;
    }
}
