/* =========================
   Ovulation calendar
========================= */

.ovul-calendar {
    margin-top: 20px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.ovul-calendar:empty {
    display: none;
}

.ovul-month {
    margin-bottom: 16px;
}

.ovul-month__title {
    font-size: 13px;
    font-weight: 900;
    color: #0f4a44;
    margin-bottom: 8px;
    text-align: center;
}

.ovul-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.ovul-weekday {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: #6b7280;
    padding-bottom: 3px;
}

.ovul-day {
    aspect-ratio: 1;
    max-width: 36px;
    max-height: 36px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    background: #f9fafb;
}

.ovul-day--empty {
    background: transparent;
}

.ovul-day--period {
    background: #fecaca;
    color: #7f1d1d;
}

.ovul-day--fertile {
    background: #bbf7d0;
    color: #14532d;
}

.ovul-day--ovulation {
    background: #0f766e;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.3);
}

.ovul-day--next-period {
    background: #fca5a5;
    color: #7f1d1d;
}

.ovul-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}

.ovul-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #374151;
}

.ovul-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.ovul-legend__dot--period {
    background: #fecaca;
}

.ovul-legend__dot--fertile {
    background: #bbf7d0;
}

.ovul-legend__dot--ovulation {
    background: #0f766e;
}

@media (max-width: 480px) {
    .ovul-day {
        max-width: 32px;
        max-height: 32px;
        font-size: 10px;
    }

    .ovul-calendar {
        max-width: 320px;
    }
}