/* style.css - QBC Wurm Cluster - Grand Calendrier & Récoltes Détaillées */

/* Conteneur principal du grand calendrier */
.wurm-big-calendar {
    background: #131c2e;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto 15px auto;
    max-width: 1720px;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.wurm-big-calendar h2 {
    font-size: 1.35rem;
    color: #38bdf8;
    border-bottom: 2px solid #334155;
    padding-bottom: 10px;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Grille 4 colonnes parfaite sur écran large, 2 colonnes sur tablette, 1 sur mobile */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1400px) {
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Carte de détail par catégorie/saison */
.calendar-card {
    background: #162032;
    border: 2px solid #334155;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.calendar-card h3 {
    font-size: 1.05rem;
    color: #facc15;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    padding-bottom: 6px;
}

/* Ligne pour chaque récolte avec heure précise */
.harvest-item-detailed {
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-left: 4px solid #38bdf8;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    gap: 6px;
    box-sizing: border-box;
    min-width: 0;
    transition: all 0.2s ease;
}

.harvest-item-detailed:hover {
    border-color: #38bdf8;
    background: #131d33;
}

.harvest-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.harvest-time {
    font-size: 0.85rem;
    color: #a0aab8;
    background: #15181e;
    padding: 3px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Badges de temps restant & statut */
.harvest-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: bold;
    font-family: monospace;
    white-space: nowrap;
}

.harvest-badge-active {
    background: #064e3b;
    color: #6ee7b7;
    border: 1px solid #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.harvest-badge-ending-soon {
    background: #7c2d12;
    color: #ffedd5;
    border: 1px solid #f97316;
    animation: pulse 1.5s infinite;
}

.harvest-badge-upcoming {
    background: #1e3a8a;
    color: #93c5fd;
    border: 1px solid #3b82f6;
}

.harvest-badge-ended {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #475569;
}

/* Barre de progression du temps de récolte */
.harvest-progress-track {
    width: 100%;
    height: 6px;
    background: #0f172a;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.harvest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.harvest-meta-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.78rem;
    color: #94a3b8;
    background: #090e17;
    padding: 6px 8px;
    border-radius: 5px;
    border: 1px solid #1e293b;
}

.harvest-dates-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}
