/*
 * Ethos Prod — Calendar
 * Μηνιαίο πλέγμα με chips ανά ημέρα. Σε κινητό γίνεται λίστα ημερών.
 */

.ethos-cal__bar {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    padding-bottom: 26px;
    margin-bottom: clamp(26px, 3vw, 44px);
    border-bottom: 1px solid var(--ethos-line, rgba(17,17,17,.12));
    flex-wrap: wrap;
}

.ethos-cal__nav {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ethos-line, rgba(17,17,17,.12));
    font-size: 16px;
    transition: all .35s ease;
}

.ethos-cal__nav:hover { background: #111; color: #fff; border-color: #111; }

.ethos-cal__current {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.ethos-cal__month {
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 3.4vw, 52px);
    letter-spacing: -0.03em;
    line-height: 1;
}

.ethos-cal__year {
    font-size: 11px;
    letter-spacing: 0.35em;
    color: #888;
}

.ethos-cal__tools {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Πλέγμα */
.ethos-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid var(--ethos-line, rgba(17,17,17,.12));
    border-left: 1px solid var(--ethos-line, rgba(17,17,17,.12));
}

.ethos-cal__head {
    padding: 14px 10px;
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #888;
    text-align: center;
    border-right: 1px solid var(--ethos-line, rgba(17,17,17,.12));
    border-bottom: 1px solid var(--ethos-line, rgba(17,17,17,.12));
    background: #fafafa;
}

.ethos-cal__cell {
    position: relative;
    min-height: clamp(96px, 11vw, 148px);
    padding: 10px 10px 12px;
    border-right: 1px solid var(--ethos-line, rgba(17,17,17,.12));
    border-bottom: 1px solid var(--ethos-line, rgba(17,17,17,.12));
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ethos-cal__cell--empty { background: repeating-linear-gradient(135deg, #fbfbfb, #fbfbfb 6px, #fff 6px, #fff 12px); }
.ethos-cal__cell--has-events { background: #fff; }

.ethos-cal__cell--today { box-shadow: inset 0 0 0 2px #111; }

.ethos-cal__daynum {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.04em;
}

.ethos-cal__cell--today .ethos-cal__daynum { color: #111; font-weight: 700; }

.ethos-cal__event {
    display: block;
    padding: 7px 9px;
    border-left: 3px solid currentColor;
    background: rgba(17, 17, 17, .04);
    font-size: 11px;
    line-height: 1.3;
    transition: background-color .3s ease, transform .3s ease;
}

.ethos-cal__event:hover { background: rgba(17, 17, 17, .1); transform: translateX(2px); }

.ethos-cal__time {
    display: block;
    font-size: 9px;
    letter-spacing: 0.16em;
    opacity: .7;
    margin-bottom: 2px;
}

.ethos-cal__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #111;
    font-weight: 500;
}

.ethos-cal__event--live { color: #1f7a45; }
.ethos-cal__event--few  { color: #b4671a; }
.ethos-cal__event--soon { color: #4a5a8a; }
.ethos-cal__event--out  { color: #9b2f2f; }
.ethos-cal__event--free { color: #2f6f8f; }
.ethos-cal__event--past { color: #999; }

/* Υπόμνημα */
.ethos-cal__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 26px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #888;
}

.ethos-cal__legend span { display: inline-flex; align-items: center; gap: 8px; }

.ethos-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.ethos-dot--live { background: #1f7a45; }
.ethos-dot--few  { background: #b4671a; }
.ethos-dot--soon { background: #4a5a8a; }
.ethos-dot--out  { background: #9b2f2f; }
.ethos-dot--free { background: #2f6f8f; }

/* Κινητό: το πλέγμα γίνεται λίστα και κρύβονται οι κενές μέρες */
@media (max-width: 720px) {
    .ethos-cal {
        display: flex;
        flex-direction: column;
        border-left: 0;
    }

    .ethos-cal__head { display: none; }

    .ethos-cal__cell--empty { display: none; }

    .ethos-cal__cell {
        min-height: 0;
        border-right: 0;
        flex-direction: row;
        align-items: flex-start;
        gap: 14px;
        padding: 14px 4px;
    }

    .ethos-cal__cell:not(.ethos-cal__cell--has-events) { opacity: .4; }

    .ethos-cal__daynum { min-width: 28px; font-size: 15px; }

    .ethos-cal__cell > .ethos-cal__event { flex: 1; }
}
