@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --bg-dark: #121212;
    --box-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --ribbon-red: #c1121f;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

#app-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
}

.view {
    display: none;
    animation: fadeIn 0.8s ease-in-out;
}

.view.active {
    display: block;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- TICKET STYLES --- */
.ticket-wrapper {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.ticket-wrapper:hover {
    transform: scale(1.02);
}

.ticket-body {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.ticket-border {
    border: 2px dashed #8b6914;
    border-radius: 8px;
    padding: 40px 20px;
    color: #4a3b00;
}

.ticket-border h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.ribbon {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 40px;
    background-color: var(--ribbon-red);
    transform: translateY(-50%) rotate(-15deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-top: 2px solid #8b0000;
    border-bottom: 2px solid #8b0000;
}

.instruction {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CONTENT BOXES --- */
.content-box {
    background-color: var(--box-bg);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.content-box h2 {
    color: var(--gold);
    margin-bottom: 15px;
}

.content-box p {
    margin-bottom: 25px;
    line-height: 1.5;
    color: var(--text-muted);
}

input[type="password"] {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #121212;
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

input[type="password"]:focus {
    outline: none;
    border-color: var(--gold);
}

button {
    background-color: var(--gold);
    color: #121212;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

button:hover {
    background-color: var(--gold-light);
}

.error-text {
    color: #ff4c4c !important;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* --- CALENDAR STYLES --- */
.calendar {
    margin-bottom: 25px;
}

.weekdays, .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.weekdays div {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.day {
    aspect-ratio: 1;
    background: #2a2a2a;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.day.empty {
    background: transparent;
    cursor: default;
}

.day.disabled {
    background: #1a1a1a;
    color: #444;
    cursor: not-allowed;
}

.day:not(.empty):not(.disabled):hover {
    background: #3a3a3a;
}

.day.selected {
    background: var(--gold);
    color: #121212;
    font-weight: 700;
    transform: scale(1.05);
}

/* --- ITINERARY STYLES --- */
.lock-banner {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.lock-banner p {
    margin: 0;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 600;
}

.itinerary-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    filter: blur(4px);
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
}

.ghost-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    border-left: 4px solid var(--gold);
}

.time-block {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 5px;
    font-weight: 600;
}

.details-block h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.details-block p {
    margin: 0;
    font-size: 0.9rem;
}