/* Explain: Custom component styles for cards, buttons, and forms. */
/* ---------- Buttons ---------- */
.btn-gold,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-gold {
    background: linear-gradient(120deg, var(--primary-color), #e8cf92);
    color: #14110a;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(201, 162, 39, 0.28);
}

.btn-gold:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    border-color: rgba(244, 241, 234, 0.32);
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 88vh;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 35%, rgba(201, 162, 39, 0.2), transparent 58%),
        linear-gradient(180deg, rgba(10, 10, 13, 0.75), rgba(10, 10, 13, 0.55) 45%, rgba(10, 10, 13, 0.97));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-block: clamp(4rem, 12vh, 7rem);
    text-align: center;
}

.hero h1 {
    margin-top: 0.8rem;
    font-size: clamp(2.9rem, 9vw, 5.8rem);
    letter-spacing: 0.02em;
}

.hero-lead {
    max-width: 42rem;
    margin: 1.1rem auto 0;
    font-size: clamp(0.98rem, 2vw, 1.15rem);
    color: #ded9cd;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-infos {
    list-style: none;
    margin: 2.6rem auto 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.hero-infos i {
    margin-right: 0.45rem;
    color: var(--primary-color);
}

/* ---------- Event cards ---------- */
.event-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.45);
    box-shadow: var(--shadow-soft);
}

.event-date {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.event-date span {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.event-date strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.event-card h3 {
    font-size: 1.15rem;
}

.event-card .muted {
    font-size: 0.88rem;
}

.event-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.event-meta i {
    width: 1rem;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.6rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.event-link:hover {
    color: var(--primary-hover);
}

/* ---------- Posters ---------- */
.poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.poster:hover img {
    transform: scale(1.05);
}

.poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(8, 8, 11, 0.92));
}

.poster-caption {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1.2rem;
}

.poster-caption strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.poster-caption em {
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* ---------- Gallery ---------- */
.galerie-tile {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.9rem;
    background: var(--surface-color);
    cursor: pointer;
}

.galerie-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.galerie-tile:hover img,
.galerie-tile:focus-visible img {
    transform: scale(1.06);
    opacity: 0.86;
}

.galerie-tile figcaption,
.galerie-tile .galerie-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.85rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    background: linear-gradient(180deg, transparent, rgba(8, 8, 11, 0.9));
}

.galerie-tile.is-hidden {
    display: none;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
}

.chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #14110a;
    font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: rgba(6, 6, 9, 0.95);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(1100px, 94vw);
    max-height: 88vh;
}

.lightbox img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 0.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox img.is-loaded {
    opacity: 1;
}

.lightbox-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--primary-color);
}

.lightbox-loader.is-visible {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(10, 10, 13, 0.85);
    color: var(--text-color);
    cursor: pointer;
}

.lightbox-close:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ---------- Tickets ---------- */
.ticket-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, 0.45);
}

.ticket-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ticket-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.3rem;
}

.ticket-body h3 {
    font-size: 1.15rem;
}

.ticket-body .muted {
    font-size: 0.86rem;
}

.ticket-price {
    margin-top: auto;
    padding-top: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary-color);
}

/* ---------- Forms ---------- */
.field {
    display: block;
    margin-bottom: 1rem;
}

.field-label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field-input {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(201, 162, 39, 0.07);
}

.field-input::placeholder {
    color: #6f6b63;
}

.field-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--primary-color) 50%), linear-gradient(135deg, var(--primary-color) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.field-select option {
    background: var(--surface-raised);
    color: var(--text-color);
}

.field-textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-panel {
    padding: clamp(1.3rem, 3.5vw, 2.2rem);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
}

.aside-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.form-feedback {
    min-height: 1.2rem;
    margin-top: 0.9rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-feedback.is-error {
    color: #ff9a8b;
}

.form-feedback.is-success {
    color: var(--primary-color);
}

/* ---------- Info blocks ---------- */
.info-card {
    padding: 1.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
}

.info-card h3 {
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.info-card h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-list li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.info-list i {
    margin-top: 0.25rem;
    color: var(--primary-color);
}

.inline-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.inline-list i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

.text-link {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(201, 162, 39, 0.45);
    padding-bottom: 0.1rem;
}

.text-link:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-hover);
}

.map-frame {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-height: 320px;
}

.map-frame iframe {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
}

/* ---------- Agenda ---------- */
.agenda-item {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    padding-block: 1.6rem;
    border-bottom: 1px solid var(--border-color);
}

.agenda-item h2 {
    font-size: 1.35rem;
    margin-block: 0.3rem 0.4rem;
}

.agenda-date {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-color);
}

.agenda-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@media (min-width: 860px) {
    .agenda-item {
        grid-template-columns: 190px 1fr auto;
        align-items: start;
        gap: 1.6rem;
    }

    .agenda-actions {
        flex-direction: column;
    }
}

.badge-gold {
    display: inline-flex;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.cta-title {
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.atout {
    display: flex;
    gap: 0.9rem;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.atout i {
    margin-top: 0.3rem;
    color: var(--primary-color);
}

.atout h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.atout p {
    margin-top: 0.15rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ---------- Cart ---------- */
.cart-panel {
    padding: clamp(1.3rem, 3.5vw, 2rem);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--surface-color);
}

.cart-title {
    margin-bottom: 1.1rem;
    font-size: 1.3rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cart-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
}

.cart-thumb {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    object-fit: cover;
    background: var(--surface-raised);
}

.cart-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cart-controls {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.35rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
}

.qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    font-size: 0.7rem;
    cursor: pointer;
}

.qty-btn:hover {
    background: rgba(201, 162, 39, 0.16);
    color: var(--primary-color);
}

.qty-value {
    min-width: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.cart-line-total {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.cart-remove {
    padding: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.cart-remove:hover {
    color: #ff9a8b;
}

.cart-empty {
    display: none;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
}

.cart-empty.is-visible {
    display: block;
}

.cart-empty i {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.cart-summary strong {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.toast-note {
    position: fixed;
    left: 50%;
    bottom: 1.4rem;
    z-index: 80;
    max-width: calc(100% - 2rem);
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #14110a;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 1.2rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-note.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast-note.is-error {
    background: var(--accent-color);
    color: #fff4f1;
}