/* =============================================================
   Metro Event Manager — Public Styles
   Matches Eventin Pro "Event Three" template style
   ============================================================= */

:root {
    --mem-accent:   #0D165E;
    --mem-dark-bar: #0f0f0f;
    --mem-text:     #232323;
    --mem-muted:    #888;
    --mem-border:   #2a2a2a;
    --mem-white:    #ffffff;
    --mem-green:    #46b450;
    --mem-red:      #dc3232;
}

/* ── Global ────────────────────────────────────────────────── */
.mem-page { margin: 0; padding: 0; }
body.mem-no-scroll { overflow: hidden; }

/* ── HERO ──────────────────────────────────────────────────── */
.mem-hero {
    position: relative;
    height: 90vh;
    min-height: 480px;
    background-color: var(--mem-accent);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.mem-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.55) 70%,
        rgba(0,0,0,0.80) 100%
    );
}
.mem-hero-title-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: right;
    padding: 0 48px 48px;
}
.mem-hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--mem-white);
    line-height: 1.15;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ── DARK META BAR ─────────────────────────────────────────── */
.mem-meta-bar {
    background: var(--mem-dark-bar);
    color: var(--mem-white);
}
.mem-meta-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Top row */
.mem-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 12px;
    gap: 16px;
    flex-wrap: wrap;
}
.mem-meta-top-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mem-meta-category {
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.3px;
}
.mem-meta-dates {
    font-size: 1rem;
    color: var(--mem-white);
    font-weight: 500;
}

/* Book Now / Expired */
.mem-book-btn {
    display: inline-block;
    background: #0a00ff;
    color: var(--mem-white) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 26px;
    border-radius: 4px;
    text-decoration: none !important;
    letter-spacing: 0.4px;
    transition: opacity 0.2s;
    white-space: nowrap;
    cursor: pointer;
}
.mem-book-btn:hover { opacity: 0.85; }
.mem-expired-badge {
    font-size: 0.88rem;
    color: #ff6b6b;
    font-weight: 600;
    border: 1px solid #ff6b6b;
    padding: 6px 14px;
    border-radius: 4px;
}

/* Bottom row */
.mem-meta-bottom {
    display: flex;
    gap: 28px;
    padding: 10px 0 16px;
    flex-wrap: wrap;
    align-items: center;
}
.mem-meta-bottom span {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}
.mem-meta-bottom b {
    color: var(--mem-white);
    font-weight: 600;
}

/* Divider */
.mem-meta-divider {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 0;
}

/* ── PAGE BODY ─────────────────────────────────────────────── */
.mem-page-body {
    background: var(--mem-dark-bar);
    padding: 40px 0 60px;
}
.mem-body-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Notices ───────────────────────────────────────────────── */
.mem-notice {
    padding: 13px 18px;
    border-radius: 5px;
    margin-bottom: 22px;
    font-size: 0.93rem;
}
.mem-notice-success { background: #1a3a1a; border-left: 4px solid var(--mem-green); color: #7dda84; }
.mem-notice-error   { background: #3a1a1a; border-left: 4px solid var(--mem-red);   color: #f08080; }

/* ── Content Sections ──────────────────────────────────────── */
.mem-section { margin-bottom: 40px; }
.mem-section-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mem-white);
    margin: 0 0 16px;
}
.mem-event-body {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.8;
}
.mem-event-body img { max-width: 100%; border-radius: 6px; }
.mem-cast-body {
    color: rgba(255,255,255,0.82);
    font-size: 1rem;
    line-height: 1.8;
}

/* Video */
.mem-video-wrap video {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* Tags */
.mem-tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}
.mem-tag-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mem-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mem-tag-badge {
    display: inline-block;
    background: #1e1e1e;
    color: rgba(255,255,255,0.7);
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 0.78rem;
    padding: 3px 10px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.mem-tag-badge:hover { background: var(--mem-white); color: var(--mem-dark-bar); }

/* ── BOOKING MODAL — centered overlay ──────────────────────── */
.mem-booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mem-booking-modal {
    position: relative;
    background: #181818;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 60px rgba(0,0,0,0.7);
    padding: 36px;
}

.mem-booking-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
}
.mem-booking-close:hover { color: var(--mem-white); }

.mem-booking-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--mem-white);
    margin: 0 0 24px;
    padding-right: 32px;
}

.mem-booking-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 12px;
}

/* Seating plan */
.mem-booking-plan { margin-bottom: 28px; }
.mem-booking-plan-img {
    width: 100%;
    display: block;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

/* Ticket rows */
.mem-booking-tickets { display: flex; flex-direction: column; margin-bottom: 4px; }

.mem-bkt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #252525;
    gap: 16px;
}
.mem-bkt-row:last-child { border-bottom: none; }
.mem-bkt-row.mem-bkt-soldout { opacity: 0.4; }

.mem-bkt-info { flex: 1; }
.mem-bkt-name  { font-size: 1rem; font-weight: 700; color: var(--mem-white); margin-bottom: 3px; }
.mem-bkt-desc  { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.mem-bkt-price { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 3px; }
.mem-free { color: var(--mem-green); }
.mem-bkt-avail { font-size: 0.75rem; color: var(--mem-green); font-weight: 600; }
.mem-bkt-avail--sold { color: var(--mem-red) !important; }

/* Quantity spinner */
.mem-bkt-qty-wrap { flex-shrink: 0; }
.mem-qty-spinner {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}
.mem-qty-btn {
    background: #252525;
    border: none;
    color: var(--mem-white);
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.mem-qty-btn:hover { background: #333; }
.mem-qty-input {
    width: 44px;
    text-align: center;
    background: #1e1e1e;
    border: none;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    color: var(--mem-white);
    font-size: 0.95rem;
    font-weight: 700;
    height: 36px;
    padding: 0;
    -moz-appearance: textfield;
}
.mem-qty-input::-webkit-outer-spin-button,
.mem-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Summary */
.mem-booking-summary {
    border-top: 1px solid #252525;
    padding-top: 20px;
    margin-top: 8px;
}
.mem-booking-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}
#mem-booking-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mem-white);
}
.mem-proceed-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    background: #0a00ff;
    color: var(--mem-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
    letter-spacing: 0.3px;
}
.mem-proceed-btn:hover:not(:disabled) { opacity: 0.85; }
.mem-proceed-btn:disabled {
    background: #2a2a2a;
    color: #555;
    cursor: not-allowed;
}
/* Billing fields inside modal */
.mem-billing-fields {
    border-top: 1px solid #252525;
    padding-top: 20px;
    margin-bottom: 20px;
}
.mem-billing-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}
.mem-billing-row:last-child { margin-bottom: 0; }
.mem-billing-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.3px;
}
.mem-req { color: #ff6b6b; }
.mem-billing-input {
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--mem-white);
    font-size: 0.93rem;
    padding: 9px 12px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.mem-billing-input:focus {
    outline: none;
    border-color: #0a00ff;
}
.mem-billing-input::placeholder { color: rgba(255,255,255,0.2); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
    .mem-hero { height: 70vh; }
    .mem-hero-title { font-size: 1.8rem; }
    .mem-hero-title-wrap { padding: 0 24px 36px; }
    .mem-meta-top { flex-direction: column; align-items: flex-start; }
    .mem-meta-bottom { gap: 16px; }
    .mem-booking-modal { padding: 24px; }
    .mem-bkt-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
