/*
 * Event Single Page Styles
 * File: /css/event-single.css
 */

/* ═══════════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════════ */

.es-hero {
    background: var(--color-dark-1, #1a1a2e);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.es-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(139, 38, 53, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.es-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.es-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.es-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.25s ease;
}

.es-breadcrumb a:hover { color: rgba(255, 255, 255, 0.9); }

.es-breadcrumb__sep { opacity: 0.35; }

.es-hero__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.es-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}

.es-badge--category {
    background: rgba(139, 38, 53, 0.85);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.25s ease;
}

.es-badge--category:hover {
    background: var(--color-primary, #8B2635);
    color: #fff;
}

.es-badge--recurring {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.es-hero__title {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    max-width: 700px;
}

.es-hero__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.es-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.es-hero__meta-icon {
    font-size: 0.9rem;
    opacity: 0.7;
}


/* ═══════════════════════════════════════════════
   PAGE WRAPPER & LAYOUT GRID
═══════════════════════════════════════════════ */

.es-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.es-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
    padding: 2.5rem 0 4rem;
}


/* ═══════════════════════════════════════════════
   LEFT COLUMN — EVENT BODY
═══════════════════════════════════════════════ */

.es-description {
    border-left: 3px solid var(--color-primary, #8B2635);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary, #525252);
    line-height: 1.75;
    font-size: 1rem;
}

.es-description p { margin-bottom: 1em; }
.es-description p:last-child { margin-bottom: 0; }

.es-map-card {
    background: var(--color-white, #ffffff);
    border: 1px solid var(--color-border, #e7e5e4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.es-map-card__header {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--color-border, #e7e5e4);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.es-map-card__icon { font-size: 0.95rem; }

.es-map-card__label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text, #1a1a1a);
}

.es-map-card__address {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--color-text-muted, #737373);
}

.es-map-card__embed {
    display: block;
    line-height: 0;
}

.es-map-card__embed iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

.es-map-card__footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--color-border, #e7e5e4);
    display: flex;
    justify-content: flex-end;
}

.es-map-card__footer a {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary, #8B2635);
    text-decoration: none;
    transition: color 0.25s ease;
}

.es-map-card__footer a:hover { color: var(--color-primary-hover, #A63446); }


/* ═══════════════════════════════════════════════
   RIGHT SIDEBAR
═══════════════════════════════════════════════ */

.es-sidebar-card {
    background: var(--color-bg-cream, #f5f3ef);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.es-sidebar-card__header {
    background: linear-gradient(90deg, var(--color-primary-light, rgba(139,38,53,0.08)), transparent);
    border-bottom: 1px solid var(--color-border-medium, #d4d1cc);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.es-sidebar-card__accent {
    display: block;
    width: 3px;
    height: 18px;
    background: var(--color-primary, #8B2635);
    border-radius: 2px;
    flex-shrink: 0;
}

.es-sidebar-card__title {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    letter-spacing: 0.01em;
    margin: 0;
}

.es-sidebar-card__body { padding: 1.25rem; }

.es-detail-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0.25rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border, #e7e5e4);
    align-items: start;
}

.es-detail-row:first-child { padding-top: 0; }
.es-detail-row:last-child { border-bottom: none; padding-bottom: 0; }

.es-detail-row__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted, #737373);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 1px;
}

.es-detail-row__value {
    font-size: 0.875rem;
    color: var(--color-text, #1a1a1a);
}

.es-detail-row__value a {
    color: var(--color-primary, #8B2635);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.es-detail-row__value a:hover { color: var(--color-primary-hover, #A63446); }

.es-venue__name {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
    margin-bottom: 0.2rem;
}

.es-venue__address {
    font-size: 0.82rem;
    color: var(--color-text-secondary, #525252);
    line-height: 1.55;
    margin-bottom: 0.65rem;
}

.es-venue__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-primary, #8B2635);
    text-decoration: none;
    transition: color 0.25s ease;
}

.es-venue__map-link:hover { color: var(--color-primary-hover, #A63446); }

.es-cal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.25rem;
}

.es-cal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.es-cal-btn--primary {
    background: linear-gradient(135deg, var(--color-primary, #8B2635), var(--color-primary-dark, #5C1A1F));
    color: #fff;
    box-shadow: 0 3px 10px rgba(139, 38, 53, 0.3);
}

.es-cal-btn--primary:hover {
    background: linear-gradient(135deg, var(--color-primary-hover, #A63446), var(--color-primary, #8B2635));
    box-shadow: 0 5px 16px rgba(139, 38, 53, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.es-cal-btn--secondary {
    background: var(--color-white, #ffffff);
    color: var(--color-primary, #8B2635);
    border: 1.5px solid rgba(139, 38, 53, 0.2);
}

.es-cal-btn--secondary:hover {
    background: rgba(139, 38, 53, 0.05);
    border-color: var(--color-primary, #8B2635);
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
   RELATED / UPCOMING EVENTS
═══════════════════════════════════════════════ */

.es-related {
    background: var(--color-bg-cream, #f5f3ef);
    padding: 3rem 0;
    margin-top: 1rem;
}

.es-related__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.es-related__title {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.es-related__title::before {
    content: '';
    display: block;
    width: 4px;
    height: 28px;
    background: linear-gradient(to bottom, var(--color-primary, #8B2635), transparent);
    border-radius: 2px;
    flex-shrink: 0;
}

.es-related__view-all {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary, #8B2635);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.es-related__view-all:hover { color: var(--color-primary-hover, #A63446); }

.es-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.es-event-card {
    background: var(--color-white, #ffffff);
    border: 1px solid var(--color-border, #e7e5e4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.es-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 38, 53, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(139, 38, 53, 0.2);
}

.es-event-card__top {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--color-border, #e7e5e4);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.es-event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(139, 38, 53, 0.06);
    border: 1px solid rgba(139, 38, 53, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.es-event-card__day {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary, #8B2635);
    line-height: 1;
}

.es-event-card__month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary, #8B2635);
}

.es-event-card__info {
    flex: 1;
    min-width: 0;
}

.es-event-card__cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary, #8B2635);
    margin-bottom: 0.2rem;
}

.es-event-card__title {
    font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    line-height: 1.3;
}

.es-event-card__body { padding: 0.85rem 1.25rem; }

.es-event-card__time,
.es-event-card__venue {
    font-size: 0.78rem;
    color: var(--color-text-muted, #737373);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.3rem;
}

.es-event-card__venue { margin-bottom: 0; }


/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */

@media ( max-width: 1024px ) {
    .es-layout { grid-template-columns: 1fr 300px; gap: 2rem; }
    .es-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media ( max-width: 768px ) {
    .es-hero { padding: 2rem 1.25rem; }
    .es-wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
    .es-layout { grid-template-columns: 1fr; padding: 2rem 0 3rem; }
    .es-sidebar { order: -1; }
    .es-hero__meta { gap: 0.85rem; font-size: 0.82rem; }
    .es-map-card__address { display: none; }
    .es-related__grid { grid-template-columns: 1fr; }
}

@media ( max-width: 480px ) {
    .es-hero__title { font-size: 1.75rem; }
    .es-related__grid { grid-template-columns: 1fr; }
}