/* css/mobile/event-detail.css */

.ed-page {
    background: #f2ede4;
    min-height: 100vh;
    padding: 0 0 50px;
}

/* ── Breadcrumb ── */
.ed-breadcrumb {
    display: block;
    padding: 10px 16px;
    margin-bottom: 0;
    background: color-mix(in srgb, var(--theme-color) 5%, #f2ede4);
    border-bottom: 1px solid color-mix(in srgb, var(--theme-color) 12%, transparent);
    overflow-x: auto;
    scrollbar-width: none;
}
.ed-breadcrumb::-webkit-scrollbar { display: none; }

.ed-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    width: max-content;
    max-width: none;
    padding: 0;
}

.ed-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--theme-color);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 4px 9px 4px 7px;
    border-radius: 7px;
    background: color-mix(in srgb, var(--theme-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-color) 22%, transparent);
    white-space: nowrap;
}
.ed-breadcrumb a i { font-size: 0.7rem; }

.ed-breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    color: color-mix(in srgb, var(--theme-color) 35%, #94a3b8);
    font-size: 0.58rem;
    padding: 0 1px;
}

.ed-breadcrumb-mid {
    display: inline-flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(255,255,255,0.7);
    border: 1px solid #e2e8f0;
    padding: 4px 9px;
    border-radius: 7px;
    white-space: nowrap;
}

.ed-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 800;
    color: #0a0f1e;
    background: #ffffff;
    border: 1px solid #e0dbd2;
    padding: 4px 9px;
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    white-space: nowrap;
}
.ed-breadcrumb-current::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--theme-color);
    flex-shrink: 0;
}

/* ── Hero — stacked ── */
.ed-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 14px 0;
    max-width: 100%;
    margin: 0;
}

.ed-hero-img-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, #efe9dd 0%, #e3dccc 100%);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.ed-hero-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 16px;
    box-sizing: border-box;
    display: block;
}

.ed-hero-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--theme-color);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--theme-color) 45%, transparent);
    z-index: 2;
}

/* ── Hero info ── */
.ed-hero-info {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ed-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ed-meta-date,
.ed-meta-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 11px 5px 7px;
    border-radius: 50px;
}
.ed-meta-date {
    color: #2456a8;
    background: linear-gradient(135deg, rgba(58,107,201,0.14), rgba(58,107,201,0.05));
    border: 1px solid rgba(58,107,201,0.35);
}
.ed-meta-location {
    color: #1d7a5f;
    background: linear-gradient(135deg, rgba(31,163,121,0.14), rgba(31,163,121,0.05));
    border: 1px solid rgba(31,163,121,0.35);
}
.ed-meta-date i,
.ed-meta-location i {
    font-size: 0.6rem;
    width: 15px; height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}
.ed-meta-date i { background: linear-gradient(135deg, #4f8ef7, #2456a8); }
.ed-meta-location i { background: linear-gradient(135deg, #2dd4a7, #1d7a5f); }

.ed-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.3rem, 6vw, 1.6rem);
    font-weight: 800;
    color: #0a0f1e;
    line-height: 1.2;
    letter-spacing: -0.4px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
}
.ed-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    width: 44px;
    background: linear-gradient(90deg, var(--theme-color), color-mix(in srgb, var(--theme-color) 40%, transparent));
    border-radius: 4px;
}

.ed-desc {
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 8px;
}

.ed-long-desc {
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.68;
    margin-bottom: 20px;
}

/* ── CTA ── */
.ed-cta-row {
    display: flex;
    width: 100%;
}
.ed-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    border: 2px solid color-mix(in srgb, var(--theme-color) 60%, transparent);
    color: var(--theme-color);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    background: transparent;
}

/* ══════════════════════════════════
   GALLERY
══════════════════════════════════ */
.ed-gallery-section {
    position: relative;
    margin: 30px 0 0;
    padding: 0 14px;
    max-width: 100%;
}

.ed-gallery-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0a0f1e;
    margin-bottom: 14px;
    letter-spacing: -0.2px;
    position: relative;
    padding-bottom: 10px;
}
.ed-gallery-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 36px; height: 3px;
    background: var(--theme-color);
    border-radius: 4px;
}

.ed-gallery-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.ed-gallery-scroll::-webkit-scrollbar { display: none; }

.ed-gallery-item {
    flex: 0 0 110px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fff;
    border: 1px solid #e8e2d8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
}

.ed-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* hide left nav on mobile; keep a right-side nav button — swipe also works */
.ed-gallery-prev {
    display: none;
}
.ed-gallery-next {
    position: absolute;
    top: calc(50% + 3px);
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e8e2d8;
    background: #fff;
    color: #0a0f1e;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    z-index: 5;
}

/* ══════════════════════════════════
   LIGHTBOX
══════════════════════════════════ */
.ed-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8,12,24,0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ed-lightbox.open { opacity: 1; visibility: visible; }

.ed-lightbox-card {
    width: 92vw;
    height: 70vh;
    max-width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}
.ed-lightbox.open .ed-lightbox-card { transform: scale(1); }

.ed-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ed-lightbox-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ed-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #0a0f1e;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    z-index: 10;
}
.ed-lightbox-prev { left: 10px; }
.ed-lightbox-next { right: 10px; }
