/**
 * AnDeRsPuNk Calendar - Theme-Agnostic Styles
 * v1.6.2 - Location marker: vertical rule instead of pin emoji
 */

:root {
    --ap-inherited-bg: inherit;
    --ap-inherited-text: inherit;
    --ap-accent: inherit;
    --ap-border-alpha: 0.15;
    --ap-bg-alpha: 0.05;
}

.ap-calendar-container {
    font-family: inherit;
    color: inherit;
    margin: 1.5em 0;
    width: 100%;
}

.ap-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.ap-event-item {
    background: rgba(128, 128, 128, var(--ap-bg-alpha));
    border: 1px solid rgba(128, 128, 128, var(--ap-border-alpha));
    border-radius: 8px;
    padding: 1.25em;
    display: flex;
    gap: 1.5em;
    transition: background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.ap-event-item:hover {
    background: rgba(128, 128, 128, calc(var(--ap-bg-alpha) * 2));
}

.ap-event-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.3;
}

.ap-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.1;
}

.ap-day {
    font-weight: 800;
    font-size: 1.6em;
    display: block;
}

.ap-month {
    font-size: 0.75em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.7;
    margin-top: 4px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ap-event-details {
    flex-grow: 1;
    min-width: 0; /* Prevent flex overflow */
}

.ap-event-summary {
    margin: 0 0 0.4em 0;
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1.2;
}

.ap-event-location {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 0.5em;
    display: flex;
    align-items: stretch;
    line-height: 1.4;
    gap: 0.75em;
}

/* Stacked Location Fix */
.ap-location-block {
    display: block;
    width: 100%;
}

.ap-venue {
    font-weight: 700;
    margin-bottom: 2px;
}

.ap-address {
    font-size: 0.9em;
    opacity: 0.8;
}

.ap-icon {
    flex-shrink: 0;
    width: 2px;
    min-height: 1.25em;
    background: currentColor;
    opacity: 0.35;
    border-radius: 1px;
}

.ap-event-description {
    font-size: 0.9em;
    line-height: 1.6;
    opacity: 0.8;
    border-top: 1px solid rgba(128, 128, 128, var(--ap-border-alpha));
    padding-top: 0.8em;
    margin-top: 0.8em;
}

/* TBC State */
.ap-event-item.ap-tbc {
    opacity: 0.6;
    border-style: dashed;
}

@media (max-width: 600px) {
    .ap-event-item {
        flex-direction: column;
        gap: 1em;
    }
    .ap-event-date {
        flex-direction: row;
        gap: 12px;
        min-width: auto;
        justify-content: flex-start;
    }
    .ap-day {
        font-size: 1.4em;
    }
}
