/* assets/styles.css */

/* ---------- Core theme ---------- */
/* Theme variables */
:root {
    /* default theme = dark */
    --bg-dark: #050816;
    --bg-card: #0b1020;
    --accent: #00e0ff;
    --accent-soft: rgba(0,224,255,0.12);
    --accent-hover: #33e8ff;
    --text-main: #f5f7ff;
    --text-muted: #9ba4c0;
    --danger: #ff4d67;
    --success: #22c55e;
    --border-subtle: rgba(148, 163, 184, 0.25);
    --radius-lg: 14px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
}

/* Light theme overrides */
:root[data-theme="light"] {
    --bg-dark: #f5f7fb;
    --bg-card: #ffffff;
    --accent: #0088cc;
    --accent-soft: rgba(0,136,204,0.06);
    --accent-hover: #00a0ff;
    --text-main: #020617;
    --text-muted: #4b5563;
    --danger: #dc2626;
    --success: #16a34a;
    --border-subtle: rgba(148, 163, 184, 0.5);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
}

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

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: var(--text-main);
    min-height: 100vh;
}

/* Light theme background override */
:root[data-theme="light"] body {
    background: radial-gradient(circle at top, #e5e7eb 0, #f3f4f6 45%, #e5e7eb 100%);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-hover);
}

/* ---------- Layout helpers ---------- */

.page-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 32px auto;
    padding: 20px;
}

/* Two-column main layout (index, booking, ticket, etc.) */
.layout-2col {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 20px;
}
@media (max-width: 880px) {
    .layout-2col {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Top bar with logo ---------- */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 34px;
    width: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text span:first-child {
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 12px;
    text-transform: uppercase;
}
.brand-text span:last-child {
    font-size: 11px;
    color: var(--text-muted);
}

/* Pills / small badges */
.pill-badge {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-subtle);
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pill-badge span.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
}

.theme-toggle input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 32px;
    height: 16px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.7);
    display: inline-block;
    transition: background 0.2s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    transition: transform 0.2s ease;
}

/* when checked -> move knob */
.theme-toggle input:checked + .toggle-slider::before {
    transform: translateX(14px);
}

.toggle-label {
    min-width: 32px;
}
.link-ghost {
    font-size: 12px;
    color: var(--accent);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: linear-gradient(135deg, rgba(15,23,42,0.7), rgba(15,23,42,0.9));
}
.link-ghost:hover {
    border-color: var(--accent);
}

/* ---------- Hero / panels ---------- */

.hero-main,
.panel-main {
    background: radial-gradient(circle at top left, rgba(0,224,255,0.12) 0, rgba(15,23,42,0.98) 55%);
    border-radius: 24px;
    padding: 24px 24px 20px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-main::before,
.panel-main::before {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 0 0, rgba(0, 224, 255, 0.3), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(56, 189, 248, 0.22), transparent 55%);
    opacity: 0.15;
    pointer-events: none;
}

.hero-content,
.panel-main-inner {
    position: relative;
    z-index: 1;
}

/* Tagline */
.tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 11px;
    margin-bottom: 14px;
    color: var(--text-muted);
}
.tagline span.highlight {
    color: var(--accent);
    font-weight: 500;
}

/* Headings / text */
.hero-title {
    font-size: clamp(26px, 3vw, 32px);
    line-height: 1.2;
    margin-bottom: 8px;
}
.hero-title span.accent,
h1 span.accent {
    background: linear-gradient(135deg, #00e0ff, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-sub,
.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 18px;
}

.hero-sub strong {
    color: var(--accent);
    font-weight: 500;
}

/* Buttons */
.btn-primary {
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    border: none;
    background: linear-gradient(135deg, #00e0ff, #38bdf8);
    color: #020617;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(8, 47, 73, 0.7);
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #33e8ff, #60a5fa);
}

.btn-secondary {
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-secondary:hover {
    border-color: var(--accent);
}

/* Hero meta */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    color: var(--text-muted);
}
.hero-meta span strong {
    color: var(--text-main);
}

/* ---------- Action cards (right column) ---------- */

.cards-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    background: linear-gradient(145deg, #020617, #020617, #0b1020);
    border-radius: 18px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(30, 64, 175, 0.65);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.75);
    position: relative;
    overflow: hidden;
}

.card--secondary {
    border-color: rgba(148, 163, 184, 0.5);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
}
.card-tag {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--text-muted);
}

.card-body {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.card-body p {
    margin-bottom: 6px;
}
.card-body ul {
    list-style: none;
    margin-top: 6px;
}
.card-body li {
    margin-bottom: 4px;
}
.card-body li::before {
    content: "•";
    color: var(--accent);
    margin-right: 6px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
}
.status-pill span.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}
.status-pill--danger span.dot {
    background: var(--danger);
}

.card-cta {
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card-cta:hover {
    color: var(--accent-hover);
}

/* ---------- Generic form styles ---------- */

form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 14px;
}
@media (max-width: 640px) {
    form {
        grid-template-columns: minmax(0, 1fr);
    }
}

.field-full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
label span.req {
    color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(15,23,42,0.95);
    color: var(--text-main);
    font-size: 13px;
}
input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.8);
}
textarea {
    min-height: 80px;
    resize: vertical;
}

.field-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}

.form-footer {
    grid-column: 1 / -1;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}
.form-note {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 320px;
}

/* ---------- Side panel (right column on booking/ticket pages) ---------- */

.panel-side {
    background: linear-gradient(145deg, #020617, #020617, #0b1020);
    border-radius: 22px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(30, 64, 175, 0.7);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.75);
}

.side-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.side-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.side-list {
    list-style: none;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.side-list li {
    margin-bottom: 6px;
    display: flex;
    gap: 6px;
}
.side-list li::before {
    content: "✓";
    color: var(--accent);
    margin-top: 1px;
}
.side-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
}
.side-meta strong {
    color: var(--text-main);
}
.side-footer {
    margin-top: 12px;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ---------- Footer ---------- */

.page-footer {
    margin-top: 20px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.page-footer a {
    color: var(--accent);
}
.page-footer a:hover {
    text-decoration: underline;
}