/* ============================================================
   calendar-events.css – Styles for the Future Events subsection
   micksbottle.com
   ============================================================ */

/* ── Section header ─────────────────────────────────────────── */
.cal-subsection {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(200, 162, 106, 0.2);
}

.cal-subsection-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.cal-subsection-title span {
    color: #c8a26a;
}

.cal-subsection-subtitle {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 28px;
}

/* ── Events list ────────────────────────────────────────────── */
#calendar-events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 960px;
    margin: 0 auto;
}

/* ── Event card ─────────────────────────────────────────────── */
.cal-event {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 162, 106, 0.18);
    border-left: 3px solid #c8a26a;
    border-radius: 3px;
    overflow: visible;
    cursor: default;
    transition: background 0.2s ease, border-color 0.2s ease,
        transform 0.2s ease;
}

.cal-event.cal-has-detail {
    cursor: pointer;
}

.cal-event:hover {
    background: rgba(200, 162, 106, 0.08);
    border-color: rgba(200, 162, 106, 0.5);
    transform: translateY(-1px);
}

.cal-event.cal-important {
    border-left-color: #e8c07a;
    background: rgba(200, 162, 106, 0.07);
}

/* ── Date column ────────────────────────────────────────────── */
.cal-date-col {
    min-width: 80px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(200, 162, 106, 0.15);
    flex-shrink: 0;
}

.cal-month {
    color: #c8a26a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.cal-day {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.cal-weekday {
    color: #888;
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Event body ─────────────────────────────────────────────── */
.cal-body {
    padding: 14px 18px;
    flex: 1;
    min-width: 0;
}

.cal-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-important-badge {
    display: inline-block;
    background: #c8a26a;
    color: #111;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 2px;
    margin-right: 7px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.cal-time {
    color: #aaa;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.cal-desc-hint {
    display: inline-block;
    margin-left: 10px;
    color: #c8a26a;
    font-size: 11px;
    opacity: 0.7;
    transition: opacity 0.2s;
    vertical-align: middle;
}

.cal-event.cal-has-detail:hover .cal-desc-hint {
    opacity: 1;
}

/* ── Detail popover ─────────────────────────────────────────── */
.cal-popover {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(340px, 90vw);
    background: #1c1c1c;
    border: 1px solid rgba(200, 162, 106, 0.4);
    border-radius: 4px;
    padding: 14px 16px;
    z-index: 200;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.cal-popover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: rgba(200, 162, 106, 0.4);
}

.cal-popover p {
    color: #ccc;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Show on hover (desktop) */
.cal-event.cal-has-detail:hover .cal-popover {
    display: block;
}

/* Show when toggled open (touch) */
.cal-event.cal-open .cal-popover {
    display: block;
}

/* ── Skeleton loading ───────────────────────────────────────── */
.cal-skeleton {
    height: 62px;
    background: linear-gradient(90deg, #1e1e1e 25%, #282828 50%, #1e1e1e 75%);
    background-size: 200% 100%;
    animation: calSkeletonShimmer 1.4s infinite;
    border-radius: 3px;
    border-left: 3px solid #333;
}

@keyframes calSkeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Empty / error state ────────────────────────────────────── */
.cal-empty {
    color: #888;
    font-size: 14px;
    text-align: center;
    padding: 30px 0 10px;
    font-style: italic;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cal-date-col {
        min-width: 62px;
        padding: 12px 10px;
    }

    .cal-day {
        font-size: 22px;
    }

    .cal-body {
        padding: 12px 14px;
    }

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

    .cal-popover {
        left: 0;
        transform: none;
        width: calc(100vw - 40px);
        max-width: 340px;
    }

    .cal-popover::after {
        left: 28px;
    }
}
