/* ===== Shared Theme ===== */
/* Scoped to .app-themed and specific themed-* classes to avoid clobbering legacy views. */

.app-themed,
.themed {
    --t-ink: #111;
    --t-ink-soft: #2d2d2d;
    --t-muted: #6c757d;
    --t-line: #e9ecef;
    --t-surface: #ffffff;
    --t-panel-a: #f8f9fa;
    --t-panel-b: #eef0f3;
    --t-accent: #111;
    --t-radius: 14px;
    --t-radius-sm: 10px;
    --t-shadow-sm: 0 2px 6px rgba(17, 17, 17, 0.04);
    --t-shadow-md: 0 8px 20px rgba(17, 17, 17, 0.07);
    --t-shadow-lg: 0 14px 30px rgba(17, 17, 17, 0.10);
}

/* Page shell */
.themed-page {
    color: var(--t-ink);
}
.themed-page-title {
    font-weight: 800;
    font-size: 1.9rem;
    color: var(--t-ink);
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}
.themed-page-sub {
    color: var(--t-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

/* Cards and panels */
.themed-card {
    background: var(--t-surface);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    box-shadow: var(--t-shadow-sm);
    padding: 1.5rem;
}
.themed-panel {
    background: linear-gradient(135deg, var(--t-panel-a) 0%, var(--t-panel-b) 100%);
    border: none;
    border-radius: var(--t-radius);
    padding: 1.5rem 1.75rem;
}

/* Section headers with left accent bar */
.themed-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--t-ink);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}
.themed-section-header::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--t-ink);
}
.themed-section-sub {
    color: var(--t-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Nav tabs — used in the 6-step wizard */
.themed-tabs.nav-tabs {
    border-bottom: 1px solid var(--t-line);
    gap: 0.25rem;
}
.themed-tabs.nav-tabs .nav-link {
    border: none;
    color: var(--t-muted);
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 8px 8px 0 0;
    background: transparent;
}
.themed-tabs.nav-tabs .nav-link:hover {
    color: var(--t-ink);
    background: rgba(17, 17, 17, 0.04);
}
.themed-tabs.nav-tabs .nav-link.active {
    color: var(--t-ink);
    background: transparent;
    border-bottom: 2px solid var(--t-ink);
}

/* Inputs */
.themed-field {
    margin-bottom: 1rem;
}
.themed-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t-ink);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    display: block;
}
.themed-input,
.themed-select,
.themed-textarea {
    width: 100%;
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius-sm);
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    background: var(--t-surface);
    color: var(--t-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.themed-input:focus,
.themed-select:focus,
.themed-textarea:focus {
    outline: none;
    border-color: var(--t-ink);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
.themed-textarea {
    min-height: 110px;
    resize: vertical;
}

/* Buttons */
.themed-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}
.themed-btn-primary {
    background: var(--t-ink);
    color: #fff;
}
.themed-btn-primary:hover {
    background: var(--t-ink-soft);
    color: #fff;
    box-shadow: var(--t-shadow-md);
    transform: translateY(-1px);
}
.themed-btn-ghost {
    background: transparent;
    color: var(--t-ink);
    border-color: var(--t-line);
}
.themed-btn-ghost:hover {
    border-color: var(--t-ink);
    background: rgba(17, 17, 17, 0.03);
    color: var(--t-ink);
}

/* Feature selection cards (step-four) */
.themed-feature-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.9rem 1rem;
    margin: 0;
    border: 2px solid var(--t-line);
    border-radius: 12px;
    background: var(--t-surface);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    position: relative;
    height: 100%;
    color: var(--t-ink);
}
.themed-feature-label:hover {
    border-color: var(--t-ink);
    transform: translateY(-2px);
    box-shadow: var(--t-shadow-md);
}
.themed-feature-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--t-ink);
    transition: background 0.2s ease, color 0.2s ease;
}
.themed-feature-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
}
.themed-check-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: var(--t-ink);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 0 0 2px var(--t-ink);
}
.btn-check:checked + .themed-feature-label {
    background: linear-gradient(135deg, var(--t-ink) 0%, var(--t-ink-soft) 100%);
    border-color: var(--t-ink);
    color: #fff;
    box-shadow: var(--t-shadow-lg);
}
.btn-check:checked + .themed-feature-label .themed-feature-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.btn-check:checked + .themed-feature-label .themed-check-badge {
    opacity: 1;
    transform: scale(1);
}

/* Summary list (step-six) */
.themed-meta-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem 2rem;
}
@media (min-width: 768px) {
    .themed-meta-list {
        grid-template-columns: 1fr 1fr;
    }
}
.themed-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-bottom: 1px dashed var(--t-line);
    padding-bottom: 0.75rem;
}
.themed-meta-item:last-child {
    border-bottom: none;
}
.themed-meta-key {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--t-muted);
}
.themed-meta-value {
    font-size: 0.98rem;
    color: var(--t-ink);
    word-break: break-word;
}
.themed-meta-value.empty {
    color: #adb5bd;
    font-style: italic;
}

/* Chips */
.themed-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: #f3f4f6;
    color: var(--t-ink);
    border: 1px solid var(--t-line);
}
.themed-chip-dark {
    background: var(--t-ink);
    color: #fff;
    border-color: var(--t-ink);
}
.themed-chip i {
    font-size: 0.8rem;
}
.themed-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Ticket / item cards */
.themed-item-card {
    background: #fff;
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius-sm);
    padding: 1rem 1.1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem 1.5rem;
    align-items: start;
}
@media (max-width: 576px) {
    .themed-item-card {
        grid-template-columns: 1fr;
    }
}

/* Image preview frame */
.themed-image-frame {
    display: inline-block;
    padding: 6px;
    border-radius: var(--t-radius);
    background: linear-gradient(135deg, var(--t-panel-a) 0%, var(--t-panel-b) 100%);
    border: 1px solid var(--t-line);
}
.themed-image-frame img {
    border-radius: calc(var(--t-radius) - 6px);
    display: block;
    max-width: 320px;
    max-height: 220px;
    object-fit: cover;
}

/* Empty state */
.themed-empty {
    padding: 1.25rem;
    border: 1px dashed var(--t-line);
    border-radius: var(--t-radius-sm);
    text-align: center;
    color: var(--t-muted);
    font-size: 0.9rem;
    background: #fafbfc;
}

/* Tables */
.themed-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--t-surface);
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    overflow: hidden;
}
.themed-table thead th {
    background: #fafbfc;
    color: var(--t-muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--t-line);
    text-align: left;
}
.themed-table tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--t-line);
    font-size: 0.92rem;
    color: var(--t-ink);
    vertical-align: middle;
}
.themed-table tbody tr:last-child td {
    border-bottom: none;
}
.themed-table tbody tr:hover td {
    background: #fafbfc;
}

/* Search bar */
.themed-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border: 1px solid var(--t-line);
    border-radius: 999px;
    padding: 0.4rem 0.6rem 0.4rem 1rem;
    box-shadow: var(--t-shadow-sm);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.themed-search:focus-within {
    border-color: var(--t-ink);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
.themed-search input {
    border: none;
    outline: none;
    flex: 1;
    padding: 0.35rem 0;
    background: transparent;
    font-size: 0.95rem;
}
.themed-search .themed-search-btn {
    border: none;
    background: var(--t-ink);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Event cards (public home) */
.themed-event-card {
    background: #fff;
    border: 1px solid var(--t-line);
    border-radius: var(--t-radius);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.themed-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--t-shadow-lg);
}
.themed-event-card .event-image {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
    background: #f3f4f6;
}
.themed-event-card .event-body {
    padding: 1rem 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.themed-event-card .event-type {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--t-muted);
}
.themed-event-card .event-title {
    font-weight: 700;
    color: var(--t-ink);
    font-size: 1.1rem;
    line-height: 1.25;
}
.themed-event-card .event-meta {
    color: var(--t-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
