﻿/* ============================================================
   0. GLOBAL RESET + BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'VeriqisFont';
    src: url("fonts/Goca-logotype-beta.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html, body {
    background: #0B0B0B;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    height: 100%;
}

.hidden {
    display: none !important;
}

main {
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
}


/* ============================================================
   VERIQIS BRAND HEADER — Balanced Rhythm
   ============================================================ */
#veriqis-header {
    text-align: center;
    margin-top: 20px; /* top breathing room */
    margin-bottom: 12px; /* space before QR section */
    padding-bottom: 8px; /* divider spacing */
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Logo + Name row */
#veriqis-brand-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px; /* tighter */
}

#veriqis-logo {
    width: 42px;
    height: auto;
    opacity: 0.95;
}

/* Veriqis logotype */
#veriqis-name {
    font-family: 'VeriqisFont', sans-serif;
    font-size: 30px;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    line-height: 1;
    margin-top: 2px; /* optical alignment */
}

/* Subtitle */
#veriqis-subtitle {
    font-size: 13px;
    color: #A0AEC0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0;
}


/* ============================================================
   1. LOADING SPINNER
   ============================================================ */
#loading-spinner {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.15);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   2. ERROR MESSAGE
   ============================================================ */
#error-container {
    margin-top: 40px;
    text-align: center;
}

.error-message {
    background: #1F2937;
    padding: 16px;
    border-radius: 10px;
    color: #FF6B6B;
    font-size: 16px;
}


/* ============================================================
   3. QR SECTION — Balanced Rhythm
   ============================================================ */
#qr-section {
    margin-top: 14px; /* reduced from 30/16 */
    text-align: center;
}

#qr-hint {
    margin-bottom: 4px; /* tight connection to QR */
    margin-top: 0;
    font-size: 12px;
    color: #6B7280;
    letter-spacing: 0.3px;
    opacity: 0.85;
    line-height: 1.2;
}

#qr-canvas {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 12px;
    background: #FFFFFF;
}

#qr-timer {
    margin-top: 10px; /* slightly reduced */
    font-size: 15px;
    color: #A0AEC0;
}

    #qr-timer.warning {
        color: #FFB84D;
    }

#qr-timer {
    transition: color 0.3s ease;
}


/* ============================================================
   4. TICKET LIST — Balanced Rhythm
   ============================================================ */
#ticket-section {
    margin-top: 24px; /* was 30 — now aligned with header spacing */
}

.ticket-card {
    background: #1F2937;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px; /* was 14 — now consistent */
}

.ticket-summary {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.ticket-toggle {
    margin-top: 8px; /* tighter */
    font-size: 14px;
    color: #8B5CF6;
    cursor: pointer;
    user-select: none;
}

/* Animated seat list */
.ticket-seat-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    margin-top: 8px; /* consistent with toggle */
    padding-left: 10px;
}

    .ticket-seat-list.open {
        max-height: 200px;
        opacity: 1;
    }

.ticket-seat-item {
    font-size: 14px;
    color: #CBD5E0;
    margin-bottom: 4px;
}


/* ============================================================
   5. QR MODAL
   ============================================================ */
#qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    #qr-modal img {
        width: 85%;
        max-width: 420px;
        border-radius: 12px;
    }


/* ============================================================
   6. FOOTER — Balanced Rhythm
   ============================================================ */
#veriqis-footer {
    text-align: center;
    margin-top: 32px; /* was 40 — now proportional */
    font-size: 12px;
    color: #4B5563;
}


/* ============================================================
   7. RESPONSIVE TWEAKS
   ============================================================ */
@media (min-width: 480px) {
    #qr-canvas {
        width: 260px;
        height: 260px;
    }

    #qr-modal img {
        max-width: 480px;
    }
}
