/**
 * SvitsolCalendar - Dark theme CSS
 * Vlastni kalendar pro objednavkovy formular
 */

/* Kontejner */
.svitsol-calendar {
    width: 100%;
}

/* Header: < Brezen 2026 > */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1e2a3a;
    border-radius: 14px 14px 0 0;
    padding: 12px 8px;
    margin-bottom: 2px;
}

.cal-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    user-select: none;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cal-nav:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.cal-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    color: #7d8b99;
}

.cal-nav:disabled:hover {
    background: transparent;
    color: #7d8b99;
}

/* Grid: 7 sloupcu */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

/* Hlavicky dnu (Po, Ut, ...) */
.cal-weekday {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #8899aa;
    padding: 8px 0;
    user-select: none;
}

.cal-weekday.cal-weekend {
    color: #ff8a80;
}

/* Jednotlivy den */
.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #ccd6dd;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
    position: relative;
}

.cal-day:hover:not(.other-month):not(.disabled):not(.day-booked) {
    background: rgba(102, 126, 234, 0.3);
}

/* Dny z jineho mesice */
.cal-day.other-month {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

/* Disabled (mimo min/max) */
.cal-day.disabled {
    color: #4a5568;
    text-decoration: line-through;
    cursor: default;
    pointer-events: none;
}

/* Dnesek */
.cal-day.today:not(.selected):not(.disabled) {
    box-shadow: inset 0 0 0 2px #667eea;
}

/* Vybrany den */
.cal-day.selected,
.cal-day.selected.day-available,
.cal-day.selected.day-partial {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.5), inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* === STAVY DNU (barveni dle dostupnosti) === */

/* Volno - zelena */
.cal-day.day-available {
    background: linear-gradient(135deg, #00d084, #00b894);
    color: #ffffff;
    font-weight: 600;
}

.cal-day.day-available:hover {
    background: linear-gradient(135deg, #00e08a, #00c8a4);
}

/* Castecne obsazeno - zluta */
.cal-day.day-partial {
    background: linear-gradient(135deg, #ffeaa7, #f9ca24);
    color: #5a4a00;
    font-weight: 600;
}

/* Plne obsazeno */
.cal-day.day-booked {
    background: #2a3a4a;
    color: #5a6a7a;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

/* Vikendove dny - jemne odliseni */
.cal-day.weekend:not(.other-month):not(.disabled):not(.selected)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: rgba(255, 138, 128, 0.5);
    border-radius: 1px;
}

.cal-day.weekend:not(.other-month):not(.disabled):not(.selected):not(.day-available):not(.day-partial):not(.day-booked) {
    background: rgba(255, 138, 128, 0.08);
    color: #ffab9e;
}

/* === RESPONSIVE === */

@media (max-width: 480px) {
    .cal-header {
        padding: 10px 4px;
    }

    .cal-title {
        font-size: 15px;
    }

    .cal-nav {
        width: 36px;
        height: 36px;
    }

    .cal-weekday {
        font-size: 11px;
        padding: 6px 0;
    }

    .cal-day {
        font-size: 13px;
        padding: 8px 0;
    }
}
