/* css/style.css - Apple Style Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600&display=swap');

:root {
    --primary-bg: #F2F2F7;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-primary: #1C1C1E;
    --text-secondary: #8E8E93;
    --accent-blue: #007AFF;
    --success-green: #34C759;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif; }

body {
    background-color: #F2F2F7;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Mesh Bg */
.mesh-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: #f0f2f5; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; animation: float 10s infinite ease-in-out; }
.orb-1 { width: 400px; height: 400px; background: #a8d8ea; top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: #aaeddb; bottom: -50px; right: -50px; animation-delay: -3s; }
.orb-3 { width: 250px; height: 250px; background: #fcbad3; top: 40%; left: 40%; animation-delay: -6s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }

/* Container */
.app-container {
    width: 100%; max-width: 420px; height: 100vh; max-height: 900px;
    display: flex; flex-direction: column; position: relative; z-index: 10;
    @media (min-width: 480px) {
        height: 90vh; border-radius: 40px; background: rgba(255,255,255,0.2);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1); border: 1px solid rgba(255,255,255,0.4);
        -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px); overflow: hidden;
    }
}

/* Header */
.app-header { padding: 20px 24px; padding-top: max(20px, env(safe-area-inset-top)); display: flex; align-items: center; }
.brand-wrapper { display: flex; align-items: center; gap: 16px; }
.brand-icon {
    width: 48px; height: 48px; background: linear-gradient(135deg, var(--accent-color, #007AFF), #FF9F43);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(254, 89, 0, 0.3);
}
.brand-info h1 { font-size: 1.1rem; font-weight: 600; line-height: 1.2; }
.status-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text-secondary); }
.dot { width: 8px; height: 8px; background: var(--success-green); border-radius: 50%; box-shadow: 0 0 8px var(--success-green); }

/* Main */
main { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; scrollbar-width: none; }
main::-webkit-scrollbar { display: none; }
.hidden { display: none !important; }
.view-section { display: flex; flex-direction: column; gap: 20px; animation: fadeIn 0.4s ease-out; }

/* Cards */
.glass-card {
    background: var(--glass-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-radius: 24px; border: 1px solid var(--glass-border); padding: 24px; box-shadow: var(--shadow-sm);
}

/* --- SLIDER STYLES --- */
.slider-card {
    padding: 0 !important; /* No padding for full image */
    overflow: hidden;
    position: relative;
    border-radius: 24px;
}
.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.slider-wrapper::-webkit-scrollbar { display: none; }
.slide-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    height: 200px;
    position: relative;
}
.slide-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Location Badge */
.location-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 5;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.25);
    color: white;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: 0.2s;
}

.slider-arrow:hover { background: rgba(255,255,255,0.4); transform: translateY(-50%) scale(1.1); }
.slider-arrow:active { transform: translateY(-50%) scale(0.95); }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

/* Dots */
.slider-dots {
    position: absolute; bottom: 12px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.s-dot {
    width: 6px; height: 6px; background: rgba(255,255,255,0.5); border-radius: 50%; transition: 0.3s;
}
.s-dot.active { background: #fff; width: 18px; border-radius: 10px; }

/* Booking */
.hero-card h2 { font-size: 1.5rem; margin-bottom: 5px; }
.hero-card p { color: var(--text-secondary); font-size: 0.95rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--accent-blue); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }

/* Form */
.form-card label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; color: var(--text-secondary); }
.input-wrapper {
    background: white; border-radius: 16px; padding: 16px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); margin-bottom: 20px; transition: 0.2s;
}
.input-wrapper:focus-within { box-shadow: 0 0 0 2px var(--accent-blue); }
.input-wrapper i { color: #C7C7CC; }
.input-wrapper input { border: none; outline: none; width: 100%; font-size: 1rem; color: var(--text-primary); background: transparent; }
.btn-apple-primary {
    width: 100%; padding: 16px; background: var(--accent-blue); color: white;
    border: none; border-radius: 16px; font-size: 1rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3); transition: 0.2s;
}
.btn-apple-primary:active { transform: scale(0.98); }

/* Ticket */
.ticket-card { text-align: center; position: relative; overflow: hidden; }
.ticket-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--text-secondary); font-size: 0.9rem; }
.live-badge { background: #FF3B30; color: white; font-size: 0.7rem; font-weight: bold; padding: 2px 8px; border-radius: 4px; animation: blink 2s infinite; }
.queue-number-display {
    font-size: 5rem; font-weight: 800; line-height: 1; letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text-primary), #666);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 20px;
}
.status-bar { background: rgba(0,0,0,0.05); padding: 12px; border-radius: 12px; font-weight: 600; color: var(--accent-blue); margin-bottom: 20px; }
.status-bar.active { background: rgba(0, 122, 255, 0.1); color: var(--accent-blue); }
.status-bar.completed { background: rgba(52, 199, 89, 0.1); color: var(--success-green); }
.queue-details { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px dashed rgba(0,0,0,0.1); }
.detail-item { display: flex; flex-direction: column; align-items: center; width: 50%; }
.detail-item span { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 5px; }
.detail-item strong { font-size: 1.2rem; color: var(--text-primary); }

/* Drive */
.drive-card { display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.2s; }
.drive-card:active { transform: scale(0.98); background: white; }
.icon-circle { width: 44px; height: 44px; background: #E8FAF0; color: var(--success-green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.drive-text h3 { font-size: 1rem; margin-bottom: 2px; }
.drive-text p { font-size: 0.8rem; color: var(--text-secondary); }
.btn-icon-only { width: 32px; height: 32px; background: rgba(0,0,0,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); text-decoration: none; }
.btn-text-cancel { background: none; border: none; color: #FF3B30; width: 100%; padding: 15px; font-size: 0.9rem; cursor: pointer; }

/* Footer */
.app-tab-bar {
    background: rgba(255,255,255,0.8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid rgba(0,0,0,0.1);
    padding: 10px 0; padding-bottom: max(10px, env(safe-area-inset-bottom));
    display: flex; justify-content: center; align-items: center; gap: 30px;
}
.tab-item { text-decoration: none; color: var(--text-secondary); display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; gap: 4px; transition: 0.2s; }
.tab-item i { font-size: 1.4rem; }
.tab-item:hover { color: var(--accent-blue); }
.divider-vertical { width: 1px; height: 24px; background: rgba(0,0,0,0.1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0.5; } }