/*!
 * IndexGPT Events — theme-side styles
 * Complements the plugin's igpt-events.css with styles specific to the
 * single event detail page (hero + sticky booking sidebar) and the
 * category landing hero.
 *
 * Typography is theme-driven — no web fonts loaded here. See igpt-events.css
 * for instructions on imposing the Conscious Mallorca editorial look.
 */

/* ============== ARCHIVE STACK (List + Calendar + Map + Upcoming) ============== */
.igpt-archive-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 36px 12px;
}
.igpt-archive-section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    margin: 28px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3eaec;
}
.igpt-archive-section-head h2 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1; margin: 0;
    letter-spacing: -0.005em;
    color: #0a2e34;
    font-weight: 500;
}
.igpt-archive-focus {
    font-size: 13px;
    font-weight: 600;
    color: #3aa6a5;
    text-decoration: none;
    white-space: nowrap;
}
.igpt-archive-focus:hover { color: #2a8584; }
.igpt-archive-section .igpt-events-calendar,
.igpt-archive-section .igpt-events-map { padding: 0; background: transparent; }

/* ============== SINGLE EVENT ============== */
.igpt-event-single { max-width: 1280px; margin: 0 auto 60px; }
.igpt-event-hero {
    position: relative;
    min-height: 360px;
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    display: flex; align-items: flex-end;
    margin: 24px 24px 0;
}
.igpt-event-hero-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: 0;
}
.igpt-event-hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,46,52,0) 30%, rgba(10,46,52,0.85) 100%);
    z-index: 1;
}
.igpt-event-hero-inner {
    position: relative; z-index: 2;
    padding: 48px 36px;
    width: 100%;
}
.igpt-event-hero-cat {
    display: inline-block; padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}
.igpt-event-hero h1 {
    font-size: clamp(36px, 5vw, 56px); font-weight: 500;
    line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.01em;
}
.igpt-event-when { font-size: 16px; opacity: 0.92; }
.igpt-event-when strong { font-weight: 700; }

.igpt-event-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    padding: 36px;
}
@media (max-width: 900px) {
    .igpt-event-grid { grid-template-columns: 1fr; }
}
.igpt-event-body { min-width: 0; }
.igpt-event-content {
    font-size: 17px; line-height: 1.65;
    color: #0a2e34;
}
.igpt-event-content p { margin: 0 0 18px; }
.igpt-event-tags { margin: 28px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.igpt-event-tags .tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef5f4;
    font-size: 12px; color: #4b6770; font-weight: 600;
}

.igpt-event-gallery { margin-top: 36px; }
.igpt-event-gallery h3 {
    font-size: 26px; color: #0a2e34;
    margin: 0 0 14px;
    font-weight: 500;
}
.igpt-event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.igpt-event-gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef5f4;
}
.igpt-event-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.25s ease;
}
.igpt-event-gallery-item:hover img { transform: scale(1.04); }

.igpt-event-map-section { margin-top: 36px; }
.igpt-event-map-section h3 {
    font-size: 26px; color: #0a2e34;
    margin: 0 0 14px;
}

/* ============== STICKY BOOKING SIDEBAR ============== */
.igpt-event-sidebar { position: sticky; top: 24px; align-self: start; }
.igpt-booking-card {
    background: #fff;
    border: 1px solid #e3eaec;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(10,46,52,0.04), 0 8px 24px -8px rgba(10,46,52,0.10);
    display: flex; flex-direction: column; gap: 10px;
}
.igpt-booking-card .price {
    font-size: 36px; font-weight: 600;
    color: #0a2e34; line-height: 1;
}
.igpt-booking-card .capacity {
    font-size: 13px; color: #4b6770; font-weight: 600;
}
.igpt-booking-card .igpt-btn-cta.book {
    display: inline-flex; justify-content: center;
    background: #3aa6a5; color: #fff;
    padding: 14px 18px; border-radius: 999px;
    font-weight: 700; font-size: 14px;
    margin-top: 6px;
}
.igpt-booking-card .igpt-btn-ghost.dark {
    display: inline-flex; justify-content: center;
    background: transparent; color: #0a2e34;
    padding: 12px 18px; border-radius: 999px;
    font-weight: 600; font-size: 13px;
    border: 1px solid #e3eaec;
}

.igpt-booking-section {
    margin-top: 18px; padding-top: 18px;
    border-top: 1px solid #eef2f3;
    font-size: 14px;
}
.igpt-booking-section h4 {
    font-size: 18px; margin: 0 0 8px;
    color: #0a2e34; font-weight: 600;
}
.igpt-booking-section .loc-name { font-weight: 700; color: #0a2e34; }
.igpt-booking-section .loc-addr { color: #4b6770; }
.igpt-booking-section .loc-dist { color: #8fa1a8; font-size: 12px; margin-top: 4px; }
.igpt-booking-section .organizer { display: flex; align-items: center; gap: 10px; }
.igpt-booking-section .organizer .avatar { width: 32px; height: 32px; border-radius: 50%; }
.igpt-event-langs .lang {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #e3eaec;
    border-radius: 4px;
    font-size: 11px; font-weight: 600;
    margin-right: 4px;
}

/* ============== CATEGORY LANDING ============== */
.igpt-cat-landing { max-width: 1280px; margin: 0 auto 60px; }
.igpt-cat-hero {
    position: relative;
    border-radius: 14px;
    padding: 56px 36px;
    margin: 24px 24px 24px;
    text-align: center;
}
.igpt-cat-hero-inner { max-width: 720px; margin: 0 auto; }
.igpt-cat-hero-icon {
    font-size: 56px;
    margin-bottom: 12px;
}
.igpt-cat-hero h1 {
    font-size: clamp(36px, 5vw, 56px); font-weight: 500;
    line-height: 1.05; margin: 0 0 12px;
}
.igpt-cat-hero .lede {
    font-size: 17px; opacity: 0.9;
    margin: 0 0 18px;
}
.igpt-cat-stats {
    display: inline-flex; gap: 18px; align-items: center;
    font-size: 14px;
}
.igpt-cat-stats strong { font-size: 22px; }
.igpt-cat-hero .igpt-btn-ghost.dark {
    background: rgba(255,255,255,0.7);
    padding: 8px 14px; border-radius: 999px;
    font-weight: 600;
}
