/* ================================================================
   BINAYAK FOUNDATION — EVENT DETAIL PAGE
   ================================================================ */

:root {
    --evd-navy: #1e3a5f;
    --evd-navy-mid: #2d5282;
    --evd-navy-lt: #ebf4ff;
    --evd-gold: #c49a3c;
    --evd-gold-lt: #fdf6e3;
    --evd-green: #10b981;
    --evd-muted: #64748b;
    --evd-text: #1e293b;
    --evd-border: #e2e8f0;
    --evd-card-bg: rgba(255, 255, 255, 0.9);
}

/* ── Page Wrapper ── */
.evd-page-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: #f8fafc;
}

/* ── Hero Image ── */
.evd-hero-wrapper {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.evd-hero-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.evd-hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(15,41,66,0.6) 100%);
    pointer-events: none;
}

/* Status badge on hero */
.evd-hero-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--evd-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.evd-hero-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.evd-hero-status .dot--upcoming { background: var(--evd-gold); }
.evd-hero-status .dot--live     { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
.evd-hero-status .dot--past     { background: #94a3b8; }

/* Time chip on hero */
.evd-hero-time {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.evd-hero-time i {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Completed overlay */
.evd-completed-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(100,116,139,0.5) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
    pointer-events: none;
    z-index: 5;
}

.evd-completed-badge {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    color: var(--evd-muted);
    padding: 8px 22px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    animation: evdSlideUp 0.8s ease-out;
}

@@keyframes evdSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Title area ── */
.evd-title-area {
    padding: 20px 20px 0;
}

.evd-title-area h2 {
    font-size: 1.55rem;
    font-weight: 850;
    color: var(--evd-text);
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: 0.4rem;
}

.evd-project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--evd-navy-mid);
    background: var(--evd-navy-lt);
    padding: 4px 12px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}

.evd-project-link:hover {
    background: #d0e7ff;
    color: var(--evd-navy);
}

/* ── Glassmorphism Card ── */
.evd-card {
    background: var(--evd-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* ── Info Strip ── */
.evd-info-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.evd-info-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.evd-info-item + .evd-info-item {
    border-left: 1px solid var(--evd-border);
}

.evd-info-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--evd-muted);
    margin-bottom: 4px;
}

.evd-info-value {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--evd-text);
    letter-spacing: -0.02em;
}

.evd-info-value--upcoming { color: var(--evd-gold); }
.evd-info-value--live     { color: #22c55e; }
.evd-info-value--past     { color: var(--evd-muted); }

/* ── Section content padding ── */
.evd-page-wrap .evd-title-area ~ * {
    padding-left: 20px;
    padding-right: 20px;
}

.evd-page-wrap .evd-title-area ~ .evd-card {
    margin-left: 20px;
    margin-right: 20px;
    padding-left: 0;
    padding-right: 0;
}

/* ── Section Headings ── */
.evd-section-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--evd-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.evd-section-title i {
    color: var(--evd-navy);
    font-size: 1.1rem;
}

/* ── Description Card ── */
.evd-description {
    font-size: 0.84rem;
    color: var(--evd-muted);
    line-height: 1.75;
    white-space: pre-line;
    margin: 0;
}

/* ── Location Card ── */
.evd-location-card {
    background: var(--evd-navy-lt);
    border: 1px solid rgba(30,58,95,0.1);
    border-radius: 18px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.evd-location-card:hover {
    background: #d0e7ff;
    color: inherit;
}

.evd-location-icon {
    width: 42px;
    height: 42px;
    background: var(--evd-navy);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* ── Gallery Section ── */
.evd-gallery-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.evd-gallery-scroll::-webkit-scrollbar {
    display: none;
}

.evd-gallery-thumb {
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 16px;
    cursor: zoom-in;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.evd-gallery-thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* ── Share Section ── */
.evd-share-section {
    position: relative;
}

.evd-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.evd-share-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--evd-border);
    background: #fff;
    color: var(--evd-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
}

.evd-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.evd-share-fb       { color: #1877f2; border-color: rgba(24,119,242,0.2); }
.evd-share-fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }

.evd-share-x        { color: #000; border-color: rgba(0,0,0,0.15); }
.evd-share-x:hover  { background: #000; color: #fff; border-color: #000; }

.evd-share-wa       { color: #25d366; border-color: rgba(37,211,102,0.2); }
.evd-share-wa:hover { background: #25d366; color: #fff; border-color: #25d366; }

.evd-share-li       { color: #0a66c2; border-color: rgba(10,102,194,0.2); }
.evd-share-li:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }

.evd-share-native       { color: var(--evd-navy); border-color: rgba(30,58,95,0.15); }
.evd-share-native:hover { background: var(--evd-navy); color: #fff; border-color: var(--evd-navy); }

.evd-share-copy       { color: var(--evd-muted); border-color: var(--evd-border); }
.evd-share-copy:hover { background: var(--evd-text); color: #fff; border-color: var(--evd-text); }

/* Copy toast */
.evd-copy-toast {
    position: absolute;
    bottom: -36px;
    left: 0;
    background: var(--evd-text);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.evd-copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ── Back Button ── */
.evd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--evd-navy);
    background: var(--evd-navy-lt);
    border: 1px solid rgba(30,58,95,0.12);
    padding: 8px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.evd-back-btn:hover {
    background: #d0e7ff;
    color: var(--evd-navy);
    transform: translateX(-3px);
}

/* ── Gallery Viewer Modal ── */
.evd-gallery-nav {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
    outline: none;
    z-index: 10;
}

.evd-gallery-nav i {
    font-size: 1.75rem;
}

.evd-gallery-nav:hover {
    background: var(--evd-navy);
    border-color: var(--evd-navy-mid);
    transform: scale(1.12);
    box-shadow: 0 0 18px rgba(30,58,95,0.35);
}

/* Thumbnail strip */
.evd-thumb-strip {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    justify-content: flex-start;
    scroll-behavior: smooth;
}

.evd-thumb-strip::-webkit-scrollbar {
    display: none;
}

.evd-thumb-strip img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border-radius: 8px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.evd-thumb-strip img:hover {
    opacity: 0.85;
}

.evd-thumb-strip img.active {
    opacity: 1;
    border-color: #fff;
}

/* ── Responsive ── */
@media (max-width: 575px) {
    .evd-hero-img {
        height: 260px;
    }

    .evd-hero-wrapper {
        max-height: 260px;
    }

    .evd-title-area h2 {
        font-size: 1.25rem;
    }

    .evd-info-strip {
        grid-template-columns: 1fr;
    }

    .evd-info-item + .evd-info-item {
        border-left: none;
        border-top: 1px solid var(--evd-border);
    }

    .evd-gallery-thumb {
        width: 120px;
        height: 90px;
    }
}
