/*
 * Velvet & Vice — shared theme layer on top of Bootstrap 5.
 * Keep site-wide look-and-feel here so every page stays visually consistent.
 * Palette: near-black canvas, crimson passion, warm gold accents, soft ivory text.
 */

:root {
    --vv-black: #0d0a0d;
    --vv-panel: #171016;
    --vv-crimson: #b0163b;
    --vv-crimson-bright: #d81f4c;
    --vv-gold: #c9a24b;
    --vv-ivory: #f3eae3;
    --vv-muted: #a89aa0;
}

body {
    background-color: var(--vv-black);
    color: var(--vv-ivory);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Subtle vertical sheen so the black never feels flat. */
    background-image: radial-gradient(ellipse at top, rgba(176, 22, 59, 0.18), transparent 60%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Elegant serif display for headings and the brand. */
.vv-display {
    font-family: Georgia, "Times New Roman", "Cormorant Garamond", serif;
    letter-spacing: 0.02em;
}

.vv-brand {
    font-weight: 700;
    color: var(--vv-ivory);
}

.vv-brand .vv-amp {
    color: var(--vv-crimson-bright);
}

/* Small uppercase label used for the age badge and eyebrow text. */
.vv-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    color: var(--vv-gold);
}

.vv-badge-18 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--vv-gold);
    color: var(--vv-gold);
    border-radius: 2rem;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
}

/* Hero ----------------------------------------------------------------- */
.vv-hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
}

.vv-hero-title {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    line-height: 1.05;
    text-shadow: 0 0 40px rgba(216, 31, 76, 0.35);
}

.vv-hero-lead {
    max-width: 40rem;
    font-size: 1.15rem;
    color: var(--vv-muted);
}

/* Buttons -------------------------------------------------------------- */
.btn-vv {
    background: linear-gradient(135deg, var(--vv-crimson), var(--vv-crimson-bright));
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-vv:hover,
.btn-vv:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(176, 22, 59, 0.45);
}

.btn-vv-outline {
    border: 1px solid var(--vv-gold);
    color: var(--vv-gold);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-vv-outline:hover,
.btn-vv-outline:focus {
    background-color: var(--vv-gold);
    color: var(--vv-black);
}

/* Values strip --------------------------------------------------------- */
.vv-value-card {
    background-color: var(--vv-panel);
    border: 1px solid rgba(201, 162, 75, 0.15);
    border-radius: 1rem;
    height: 100%;
}

.vv-value-card h3 {
    color: var(--vv-gold);
    font-size: 1.15rem;
}

/* Footer --------------------------------------------------------------- */
.vv-footer {
    background-color: var(--vv-panel);
    border-top: 1px solid rgba(201, 162, 75, 0.2);
    color: var(--vv-muted);
}

.vv-footer a {
    color: var(--vv-muted);
    text-decoration: none;
}

.vv-footer a:hover,
.vv-footer a:focus {
    color: var(--vv-gold);
}

.vv-footer h4 {
    color: var(--vv-ivory);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.vv-footer address {
    font-style: normal;
    line-height: 1.7;
}

/* Auth (sign in / sign up) --------------------------------------------- */
.vv-card {
    background-color: var(--vv-panel);
    border: 1px solid rgba(201, 162, 75, 0.18);
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* The vertical divider between the sign up and sign in columns (md and up). */
.vv-split {
    border-left: 1px solid rgba(201, 162, 75, 0.18);
}

@media (max-width: 767.98px) {
    .vv-split {
        border-left: none;
        border-top: 1px solid rgba(201, 162, 75, 0.18);
    }
}

.vv-card h2 {
    color: var(--vv-gold);
}

/* Dark form controls that sit comfortably on the panel background. */
.vv-card .form-label {
    color: var(--vv-ivory);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.vv-card .form-control {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(201, 162, 75, 0.25);
    color: var(--vv-ivory);
}

.vv-card .form-control::placeholder {
    color: rgba(168, 154, 160, 0.7);
}

.vv-card .form-control:focus {
    background-color: rgba(0, 0, 0, 0.45);
    border-color: var(--vv-crimson-bright);
    box-shadow: 0 0 0 0.2rem rgba(216, 31, 76, 0.2);
    color: var(--vv-ivory);
}

.form-text-muted {
    color: var(--vv-muted);
    font-size: 0.8rem;
}

/* Cookie consent banner ------------------------------------------------ */
.vv-cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    background-color: var(--vv-panel);
    border: 1px solid rgba(201, 162, 75, 0.3);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.vv-cookie-banner p {
    color: var(--vv-muted);
}

/* Event cards ---------------------------------------------------------- */
.vv-quote {
    font-style: italic;
    color: var(--vv-gold);
    font-size: clamp(1.25rem, 3vw, 1.9rem);
}

.vv-event-card {
    background-color: var(--vv-panel);
    border: 1px solid rgba(201, 162, 75, 0.18);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vv-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* Gradient placeholder shows through when there is no banner (or it fails to load). */
.vv-event-banner {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--vv-crimson), var(--vv-black));
}

.vv-event-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Event form image preview -------------------------------------------- */
.vv-form-preview {
    display: block;
    max-width: 100%;
    max-height: 240px;
    border-radius: 0.75rem;
    border: 1px solid rgba(201, 162, 75, 0.25);
    object-fit: cover;
}

/* Event detail -------------------------------------------------------- */
.vv-detail-banner {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 1rem;
    border: 1px solid rgba(201, 162, 75, 0.18);
}

.vv-status-badge {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    border: 1px solid currentColor;
}

.vv-status-draft { color: var(--vv-muted); }
.vv-status-published { color: var(--vv-gold); }
.vv-status-archived { color: var(--vv-crimson-bright); }

/* The gate code, shown large when available. */
.vv-gatecode {
    background-color: var(--vv-panel);
    border: 1px solid var(--vv-gold);
    border-radius: 1rem;
    padding: 2rem 1rem;
    text-align: center;
}

.vv-gatecode-value {
    font-family: "Courier New", monospace;
    font-weight: 700;
    color: var(--vv-gold);
    font-size: clamp(2.5rem, 10vw, 5rem);
    letter-spacing: 0.15em;
    word-break: break-all;
    line-height: 1.1;
}

.vv-gatecode-pending {
    background-color: var(--vv-panel);
    border: 1px dashed rgba(201, 162, 75, 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--vv-muted);
}

/* Rich-text description: editor + rendered links */
.vv-editor {
    min-height: 8rem;
    overflow-y: auto;
    height: auto;
}

/* Placeholder for the empty contenteditable editor. */
.vv-editor:empty::before {
    content: attr(data-placeholder);
    color: rgba(168, 154, 160, 0.7);
}

.vv-editor-toolbar {
    gap: 0.35rem;
    flex-wrap: wrap;
}

#detailDescription a {
    color: var(--vv-gold);
}

/* Tickets ---------------------------------------------------------------- */
.vv-ticket-card {
    background-color: var(--vv-panel);
    border: 1px solid rgba(201, 162, 75, 0.18);
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* White quiet zone around the QR so phones and barcode readers scan it reliably. */
.vv-qr {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    display: inline-block;
    line-height: 0;
}

.vv-qr-img {
    display: block;
    width: 240px;
    height: 240px;
    max-width: 100%;
    /* Keep the QR modules crisp (no blurring) when the browser scales the image. */
    image-rendering: pixelated;
}

/* Dark-theme modal so the confirmation popup matches the site. */
.vv-modal .modal-content {
    background-color: var(--vv-panel);
    border: 1px solid rgba(201, 162, 75, 0.25);
    color: var(--vv-ivory);
    border-radius: 1.25rem;
}

.vv-modal .modal-title {
    color: var(--vv-gold);
}
