/* ── AYW EVENTS CALENDAR STYLES ── */

/* ── CALENDAR WRAPPER ── */
.ayw-cal-wrap {
    background: #13131a;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    position: relative;
    max-width: 100%;
}

/* ── HEADER ── */
.ayw-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #0a0a0c;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ayw-cal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ayw-cal-nav {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ayw-cal-nav:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* ── DAY HEADERS ── */
.ayw-cal-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ayw-cal-days-header span {
    text-align: center;
    padding: 10px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #4a4a60;
}

/* ── CALENDAR GRID ── */
.ayw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
}

/* ── CALENDAR CELL ── */
.ayw-cal-cell {
    background: #13131a;
    min-height: 90px;
    padding: 8px;
    position: relative;
    transition: background 0.2s;
}

.ayw-cal-cell.other-month {
    background: #0e0e14;
    opacity: 0.5;
}

.ayw-cal-cell.today {
    background: rgba(220,38,38,0.08);
}

.ayw-cal-cell.today .ayw-cal-day-num {
    background: #dc2626;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ayw-cal-cell.has-events {
    cursor: pointer;
}

.ayw-cal-cell.has-events:hover {
    background: #1a1a24;
}

/* ── DAY NUMBER ── */
.ayw-cal-day-num {
    font-size: 13px;
    font-weight: 600;
    color: #7a7a90;
    margin-bottom: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ayw-cal-cell.has-events .ayw-cal-day-num {
    color: #ffffff;
}

/* ── EVENT DOTS ── */
.ayw-cal-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ayw-cal-event-dot {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    letter-spacing: 0.3px;
}

/* ── LEGEND ── */
.ayw-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: #0a0a0c;
}

.ayw-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #7a7a90;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ayw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── EVENT POPUP ── */
.ayw-cal-event-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1c1c26;
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 3px solid #dc2626;
    border-radius: 10px;
    padding: 24px;
    min-width: 300px;
    max-width: 400px;
    z-index: 100;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.ayw-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: #7a7a90;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.ayw-popup-close:hover {
    background: #dc2626;
    color: #fff;
}

.ayw-popup-event {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ayw-popup-event:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ayw-popup-promo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
}

.ayw-popup-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #7a7a90;
    background: rgba(255,255,255,0.06);
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
    margin-left: 4px;
}

.ayw-popup-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ayw-popup-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.ayw-popup-meta span {
    font-size: 12px;
    color: #7a7a90;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ayw-popup-link {
    display: inline-block;
    background: #dc2626;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.ayw-popup-link:hover {
    background: #ef4444;
}

/* ── UPCOMING LIST ── */
.ayw-upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ayw-upcoming-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
}

.ayw-upcoming-item:last-child {
    border-bottom: none;
}

.ayw-upcoming-item:hover {
    background: rgba(255,255,255,0.02);
}

.ayw-upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 6px 10px;
    min-width: 44px;
    flex-shrink: 0;
}

.ayw-upcoming-day {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.ayw-upcoming-month {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #dc2626;
    margin-top: 2px;
}

.ayw-upcoming-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.ayw-upcoming-promo {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    width: fit-content;
}

.ayw-upcoming-title {
    font-size: 13px;
    font-weight: 600;
    color: #e8e8f0;
    line-height: 1.3;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ayw-upcoming-item:hover .ayw-upcoming-title {
    color: #ffffff;
}

.ayw-upcoming-location {
    font-size: 11px;
    color: #4a4a60;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ayw-no-events {
    color: #7a7a90;
    font-size: 13px;
    padding: 12px 0;
}

/* ── LOADING STATE ── */
.ayw-cal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #7a7a90;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
    .ayw-cal-cell {
        min-height: 60px;
        padding: 4px;
    }

    .ayw-cal-event-dot {
        font-size: 8px;
        padding: 1px 4px;
    }

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

    .ayw-cal-event-popup {
        position: fixed;
        top: 50%;
        left: 16px;
        right: 16px;
        transform: translateY(-50%);
        min-width: unset;
        max-width: unset;
    }

    .ayw-cal-legend {
        gap: 10px;
        padding: 12px 16px;
    }
}
