/* ===========================================================
   MINI CALENDAR HEATMAP (Clean & Optimized)
=========================================================== */

#training-calendar {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: #121214;
    border: 1px dashed #2a2a2e;
    border-radius: 12px;
}

.calendar-title {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    opacity: 0.8;
}

/* Weekday Labels */
.weekday-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    margin-bottom: 4px;
}

.weekday-labels span {
    font-size: 0.60rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.7;
    user-select: none;
}

/* Calendar Grid */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

/* ======================
   BASE CELL STYLES
====================== */

/* Tage ohne Training */
.heatmap-cell {
    aspect-ratio: 2 / 1;
    border-radius: 4px;
    background: #1a1a1d;
    /* Standard */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tage MIT Training */
.heatmap-cell.has-training {
    background: #48484e;
    /* leicht hervorgehoben */
}

/* Hover nur bei Trainingstagen */
.heatmap-cell.has-training:hover {
    outline: 2px solid #52b788;
    cursor: pointer;
}

/* Tooltip (wird nur eingesetzt, wenn training vorhanden) */
.heatmap-tooltip {
    position: absolute;
    background: #0e0e10;
    color: #fff;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.heatmap-cell.has-training:hover .heatmap-tooltip {
    opacity: 1;
}

/* Label in der Zelle (Push / Pull / Legs / Custom) */
.cell-type {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
    user-select: none;
    line-height: 1;
}

.highlight-pulse {
    animation: pulseFlash 1.3s ease-out;
}

@keyframes pulseFlash {
    0% {
        background-color: rgba(82, 183, 136, 0.35);
    }

    40% {
        background-color: rgba(82, 183, 136, 0.55);
    }

    100% {
        background-color: transparent;
    }
}


.heatmap-cell.is-today {
    border: 1px solid var(--accent);
}

.heatmap-cell.is-future {
    opacity: 0.4;
}

.heatmap-cell.has-training {
  background-color: color-mix(in srgb, var(--cell-color) 60%, transparent);
}
