/* event.css — Option C: Magazine Editorial */
@font-face {
    font-family: 'PubliFluor';
    src: url('../fonts/PubliFluorNormale.otf') format('opentype');
    font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background-color: #0d0d0d;
}

body {
    font-family: 'PubliFluor', sans-serif;
    background-color: #0d0d0d;
    background-image: linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
                      url('../images/singlebackground.gif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- Banner nav ---- */
.nav-buttons {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 24px;
}
.left-nav { left: calc(5vw + 40px); }
.right-nav { right: calc(5vw + 40px); }

.mobile-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
}
.mobile-nav-left { left: 30px; }
.mobile-nav-right { right: 30px; }
.mobile-nav img {
    width: 30px; height: 30px;
    cursor: pointer; transition: transform 0.2s ease;
}
.mobile-nav img:hover { transform: scale(1.1); }

/* ---- Archive bar ---- */
.archive-bar {
    background: rgba(140,140,140,0.12);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
    text-align: center;
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 11px 20px;
    margin-bottom: 28px;
    border-radius: 4px;
}
.archive-counts {
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
    margin-top: 8px;
}

/* ---- Main layout ---- */
.event-layout {
    padding-top: 168px; /* clears the banner */
    padding-bottom: 80px;
    min-height: 100vh;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    align-items: start;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 52px;
}

/* ---- LEFT column ---- */
.event-left { min-width: 0; }

.event-eyebrow {
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9fbc99;
    margin-bottom: 12px;
}

.event-title {
    font-family: 'Insolente', Arial, sans-serif;
    font-size: 3.8rem;
    line-height: 1.0;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 22px;
    text-shadow: 0 4px 32px rgba(0,0,0,0.6);
}

/* meta row: category pill + date + time + venue inline */
.event-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.event-category-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'PubliFluor', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: bold;
    color: #fff;
    text-transform: lowercase;
    backdrop-filter: blur(5px);
}
.event-category-tag.music    { background: rgba(104,41,87,0.9); }
.event-category-tag.art      { background: rgba(103,185,169,0.9); color: #111; }
.event-category-tag.social   { background: rgba(43,89,131,0.9); }
.event-category-tag.market   { background: rgba(240,181,77,0.9); color: #111; }
.event-category-tag.cultural { background: rgba(184,92,56,0.9); }

.meta-dot {
    color: rgba(255,255,255,0.25);
    font-size: 1rem;
}

.meta-item {
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.3px;
}

/* ---- Description block ---- */
.event-description {
    background: rgba(0,0,0,0.28);
    border-left: 3px solid rgba(159,188,153,0.6);
    padding: 16px 20px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 24px;
}

.event-field-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 8px;
    font-weight: 600;
}

.event-description-text {
    color: rgba(255,255,255,0.85);
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ---- Tags ---- */
.event-tags { margin-bottom: 24px; }

.event-tags-list {
    display: flex; flex-wrap: wrap; gap: 7px;
}

.event-tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ---- Official event link pill ---- */
.event-link-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 24px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    max-width: 100%;
    overflow: hidden;
}
.event-link-pill:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(159,188,153,0.5);
}
.event-link-label {
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #9fbc99;
    white-space: nowrap;
    flex-shrink: 0;
}
.event-link-sep {
    color: rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.event-link-url {
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.trusted-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.trusted-badge-label {
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 1.2px;
    color: #9fbc99;
    white-space: nowrap;
}
.trusted-site-icon {
    height: 48px;
    width: auto;
    object-fit: contain;
}
.event-link-external {
    cursor: pointer;
}
.ext-warn-flag {
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.65rem;
    color: rgba(255,200,80,0.75);
    flex-shrink: 0;
    margin-left: auto;
}

/* ---- External link warning modal ---- */
.ext-warn-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.ext-warn-modal.show {
    display: flex;
}
.ext-warn-box {
    background: #1c1c1c;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 32px 28px 24px;
    max-width: 360px;
    width: 88%;
    text-align: center;
}
.ext-warn-title {
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 2px;
}
.ext-warn-body {
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
    margin-bottom: 14px;
}
.ext-warn-url {
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.28);
    word-break: break-all;
    margin-bottom: 24px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
}
.ext-warn-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ext-warn-btn {
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.ext-warn-btn:hover { opacity: 0.8; }
.ext-warn-go {
    background: #9fbc99;
    color: #1a1a1a;
}
.ext-warn-cancel {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.55);
}

/* ---- RSVP section ---- */
.action-section { }

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.action-btn {
    padding: 12px 26px;
    border: none;
    border-radius: 50px;
    font-family: 'PubliFluor', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.going-btn {
    background: rgba(159,188,153,0.2);
    color: #9fbc99;
    border: 1.5px solid rgba(159,188,153,0.4);
}
.going-btn.active,
.going-btn:hover {
    background: linear-gradient(135deg, #9fbc99, #7ba075);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(159,188,153,0.4);
}

.interested-btn {
    background: rgba(244,208,63,0.15);
    color: #f4d03f;
    border: 1.5px solid rgba(244,208,63,0.35);
}
.interested-btn.active,
.interested-btn:hover {
    background: linear-gradient(135deg, #f4d03f, #f1c40f);
    color: #333;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(244,208,63,0.35);
}

.rsvp-counts {
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.login-prompt {
    margin-top: 12px;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
}
.login-prompt a {
    color: #9fbc99;
    font-weight: bold;
    text-decoration: none;
}
.login-prompt a:hover { text-decoration: underline; }

/* ---- Cancelled pill (eyebrow) ---- */
.event-cancelled-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(180,50,35,0.18);
    border: 1.5px solid rgba(180,50,35,0.4);
    color: #c05040;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.68rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: 'FluxischElse', Arial, sans-serif;
}

/* ---- Mark as cancelled button ---- */
.cancel-event-section { margin-top: 14px; }

.mark-cancelled-btn {
    background: transparent;
    border: 1px solid rgba(180,50,35,0.3);
    border-radius: 50px;
    padding: 7px 18px;
    color: rgba(180,50,35,0.6);
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}
.mark-cancelled-btn:hover {
    background: rgba(180,50,35,0.1);
    border-color: rgba(180,50,35,0.5);
    color: #c05040;
}
.mark-cancelled-btn.is-cancelled {
    background: rgba(159,188,153,0.1);
    border-color: rgba(159,188,153,0.3);
    color: rgba(159,188,153,0.7);
}
.mark-cancelled-btn.is-cancelled:hover {
    background: rgba(159,188,153,0.2);
}

/* ---- Edit button ---- */
.edit-event-section { margin-top: 24px; }

.edit-event-btn {
    padding: 9px 20px;
    background: rgba(43,89,131,0.25);
    color: rgba(255,255,255,0.65);
    border: 1.5px solid rgba(43,89,131,0.45);
    border-radius: 50px;
    font-family: 'PubliFluor', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.edit-event-btn:hover {
    background: rgba(43,89,131,0.55);
    color: #fff;
    transform: translateY(-1px);
}

/* ---- RIGHT column: poster ---- */
.event-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 32px;
}

.floating-poster {
    width: 100%;
    perspective: 900px;
}

.poster-image {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 28px 60px rgba(0,0,0,0.55);
    border: 7px solid rgba(255,255,255,0.88);
    display: block;
    transform: rotate(3deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.floating-poster:hover .poster-image {
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 36px 80px rgba(0,0,0,0.7);
}

.poster-hint {
    font-family: 'FluxischElse', Arial, sans-serif;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ---- Poster modal ---- */
.poster-modal {
    display: none;
    position: fixed;
    z-index: 2000; inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}
.poster-modal.open { display: flex; }

.poster-modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.poster-modal-image {
    width: 100%; height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.poster-modal-close {
    position: absolute;
    top: -44px; right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: background 0.2s;
}
.poster-modal-close:hover { background: rgba(0,0,0,0.8); }

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 30px; right: 30px;
    background: rgba(0,0,0,0.92);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---- Mobile ---- */
@media (max-width: 768px) {
    html, body {
        background-color: #0d0d0d !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        overflow-x: hidden;
    }

    .nav-buttons { display: none; }
    .mobile-nav  { display: block; }
    .banner-container { top: -100px; height: 250px; }
    .blurb-container  { width: 150px; height: 120px; }
    .boletucho-container { width: 130px; height: 55px; }

    .event-layout { padding-top: 148px; padding-bottom: 48px; }

    .event-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 20px;
        overflow: hidden;
    }

    .event-left { min-width: 0; }

    /* Poster above content on mobile */
    .event-right {
        order: -1;
        position: static;
    }

    .poster-image {
        width: 200px;
        transform: none;
    }

    .event-title {
        font-size: 2.2rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .action-buttons { flex-direction: column; align-items: flex-start; }

    .event-link-pill { border-radius: 12px; }

    .toast { bottom: 20px; right: 16px; left: 16px; }

    /* Poster modal: give room so the image is well-centered, not stuck at top */
    .poster-modal {
        padding: 16px;
        align-items: center;
    }

    .poster-modal-content {
        width: 100%;
        max-width: 100%;
    }

    .poster-modal-image {
        max-height: 80vh;
        border-radius: 10px;
    }

    /* Move X inside the top-right corner of the image instead of floating above */
    .poster-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0,0,0,0.7);
        font-size: 1.6rem;
        width: 38px;
        height: 38px;
    }
}
