/* ========================================
   EVENT TICKETING SYSTEM - GLOBAL STYLES
   Berbincang Dengan Romo Eko
   style.css
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors */
    --primary: #8B2635;
    --primary-dark: #6B1D28;
    --primary-light: #A63344;
    --secondary: #D4AF37;
    --accent: #2C5F2D;
    
    --cream: #FFF8E7;
    --white: #FFFFFF;
    --black: #1A1A1A;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    
    /* Seat Colors - Background zones */
    --zone-vvip: #ffcf32;
    --zone-vip: #da0424;
    --zone-kelas1: #659408;
    --zone-kelas2: #0669b9;
    --zone-kelas3: #8907bd;
    
    /* Seat icon colors - for available/selected/sold states only */
    --seat-available: #e7e7e7;
    --seat-selected: #10b981;
    --seat-sold: #2f2f2f;
    
    /* Fonts */
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ========================================
   HERO SECTION (Landing Page)
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-ornament {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.event-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.main-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.main-title .highlight {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========================================
   SECTION STYLES (Landing Page)
   ======================================== */
.seating-section,
.info-section,
.tickets-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-label {
    display: inline-block;
    background: var(--cream);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   SEATING LAYOUT IMAGE (Landing Page)
   ======================================== */
.seating-layout-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.seating-image-wrapper {
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.seating-image {
    width: 100%;
    height: auto;
}

/* ========================================
   INFO CARDS (Landing Page)
   ======================================== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.info-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.info-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.info-desc {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ========================================
   PREMIUM TICKET CARD (Landing Page)
   ======================================== */
.single-ticket-container {
    display: flex;
    justify-content: center;
}

.premium-ticket-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    transition: transform var(--transition-base);
}

.premium-ticket-card:hover {
    transform: translateY(-5px);
}

.premium-ticket-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    color: var(--white);
}

.premium-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.premium-ticket-category h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.premium-ticket-category p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.premium-ticket-body {
    padding: 2rem;
}

.premium-ticket-price {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px dashed var(--gray-200);
}

.price-amount-range {
    margin-bottom: 0.5rem;
}

.price-range-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-range-to {
    font-size: 1rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.price-subtext {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.ticket-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-badge {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    border: 2px solid;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-50);
    transition: all var(--transition-base);
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.875rem;
}

.category-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-top: 2px;
}

.category-available {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.premium-stock-info {
    margin-bottom: 2rem;
}

.stock-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.stock-bar {
    background: var(--gray-200);
    height: 12px;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.stock-progress {
    background: linear-gradient(90deg, var(--success) 0%, var(--accent) 100%);
    height: 100%;
    transition: width var(--transition-slow);
}

.stock-count {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.stock-count-available {
    color: var(--success);
    font-weight: 600;
}

.stock-count-total {
    color: var(--gray-600);
}

.premium-btn-order {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.premium-btn-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.premium-btn-order:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   BUTTONS (Global)
   ======================================== */
.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    border-color: var(--gray-300);
    cursor: not-allowed;
}

/* ========================================
   WARNING POPUP (Global)
   ======================================== */
.warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.warning-overlay.active {
    opacity: 1;
}

.warning-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.warning-overlay.active .warning-container {
    transform: scale(1);
}

.warning-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.warning-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.warning-content {
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.warning-icon {
    color: var(--warning);
    margin-bottom: 1rem;
}

.warning-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.warning-message {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE DESIGN (Global)
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .main-container {
        padding: 2.5rem 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }
    
    .main-container {
        padding: 2rem 1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .ticket-categories {
        flex-direction: column;
    }
    
    .category-badge {
        min-width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .premium-ticket-card {
        border-radius: var(--radius-md);
    }
    
    .premium-ticket-header,
    .premium-ticket-body {
        padding: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .hero-section,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }
    
    body {
        background: white;
    }
}


/* ── Archived badge di category-badge (halaman index) ── */
/* ── Category badge layout ── */
.category-badge {
    position: relative;
    display: flex;
    flex-direction: column;  /* vertikal */
    align-items: flex-start;
    gap: 0;
}

/* Garis pemisah + badge bawah */
.category-closed-bar {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(244, 63, 94, 0.2);
    display: flex;
    justify-content: center;
}

/* Badge pill */
.category-archived-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #fff1f2, #ffe4e6);
    color: #9f1239;
    border: 1px solid #fda4af;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .70rem;
    font-weight: 600;
    letter-spacing: .4px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(159, 18, 57, 0.12);
}
.category-archived-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #f43f5e;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}
/* Back to Home Button */
.btn-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-home:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-home svg {
    flex-shrink: 0;
}

/* Jika hero section gelap, tombol tetap terlihat setelah scroll */
@media (max-width: 480px) {
    .btn-home {
        top: 12px;
        left: 12px;
        padding: 8px 14px;
        font-size: 13px;
    }
}