/**
 * FluxCP-NG Modern Cards
 * Cartes modernes pour afficher les informations
 */

/* ============================================
   CARTES DE BASE
   ============================================ */

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.info-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.info-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.info-card-subtitle {
    font-size: 14px;
    color: #95a5a6;
    margin: 8px 0 0 0;
}

.info-card-body {
    color: #555;
    line-height: 1.6;
}

/* ============================================
   CARTES STATISTIQUES
   ============================================ */

.stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.stat-card-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 8px 0;
}

.stat-card-label {
    font-size: 13px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Variantes de couleur */
.stat-card-primary .stat-card-value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card-success .stat-card-value {
    color: #27ae60;
}

.stat-card-warning .stat-card-value {
    color: #f39c12;
}

.stat-card-error .stat-card-value {
    color: #e74c3c;
}

.stat-card-info .stat-card-value {
    color: #3498db;
}

/* ============================================
   GRILLE DE CARTES
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cards-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.cards-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ============================================
   CARTES DE STATUT
   ============================================ */

.status-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s ease;
}

.status-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.status-card-online {
    border-left-color: #27ae60;
}

.status-card-offline {
    border-left-color: #e74c3c;
}

.status-card-warning {
    border-left-color: #f39c12;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bdc3c7;
    box-shadow: 0 0 0 3px rgba(189, 195, 199, 0.2);
    animation: pulse 2s infinite;
}

.status-indicator-online {
    background-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.status-indicator-offline {
    background-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    animation: none;
}

.status-indicator-warning {
    background-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-card-content {
    flex: 1;
}

.status-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.status-card-subtitle {
    font-size: 13px;
    color: #95a5a6;
    margin: 0;
}

/* ============================================
   CARTES WOE (War of Emperium)
   ============================================ */

.woe-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    padding: 24px;
    color: white;
    margin-bottom: 20px;
}

.woe-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.woe-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.woe-card-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.woe-schedule {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.woe-schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.woe-schedule-item:last-child {
    border-bottom: none;
}

.woe-schedule-day {
    font-weight: 600;
    min-width: 80px;
}

.woe-schedule-time {
    font-size: 14px;
    opacity: 0.9;
}

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

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .status-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

