/* Root Custom Properties */
:root {
    --primary-color: #002f6c;
    --primary-light: #0d47a1;
    --primary-dark: #001a40;
    --accent-color: #ffc107;
    --accent-hover: #ffb300;
    --bg-color: #f8fafd;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px rgba(0, 47, 108, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 47, 108, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    text-decoration: none;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
}

.logo-bold {
    color: var(--primary-color);
    font-weight: 800;
}

.logo-light {
    color: var(--primary-light);
    font-weight: 400;
}

.nav-search-container {
    position: relative;
    flex-grow: 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

#search-input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 2.8rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: #f1f5f9;
    outline: none;
    transition: var(--transition);
}

#search-input:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 47, 108, 0.1);
}

.lang-btn {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Main Layout */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-md);
    padding: 3.5rem 3rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
    top: -50px;
    right: -50px;
}

.hero-content {
    flex: 1;
    min-width: 50%;
    position: relative;
    z-index: 2;
}

.hero-images {
    flex: 1;
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.hero-images img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    flex-shrink: 0;
}

.hero-images img:hover {
    transform: scale(1.06);
    z-index: 10;
}

.badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.hero-section h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.features-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Category Filters */
.filter-section {
    margin-bottom: 2.5rem;
}

.filter-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.6rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 47, 108, 0.2);
}

.event-img-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.event-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.event-card:hover .event-img-container img {
    transform: scale(1.05);
}

.status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #d946ef;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
    border: 1px solid #f472b6;
}

.event-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-venue {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-card {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.2rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-card:hover {
    background-color: var(--primary-light);
    transform: translateX(3px);
}

/* Empty search state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
    max-width: 500px;
    margin: 2rem auto;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

/* Footer styling */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 26, 64, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    padding: 2rem;
    animation: fadeIn 0.25s ease-out;
}

.modal-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 900px;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.modal-left {
    position: relative;
    color: #ffffff;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.modal-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 26, 64, 0.95) 15%, rgba(0, 26, 64, 0.4) 100%);
    z-index: 2;
}

.modal-event-info {
    position: relative;
    z-index: 3;
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.badge-soldout {
    background-color: #ec4899;
    color: #ffffff;
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.modal-event-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-event-date, .modal-event-venue {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.modal-right {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-right h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.modal-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label, .quantity-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.tier-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tier-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.tier-card:hover {
    border-color: var(--primary-light);
    background-color: rgba(0, 47, 108, 0.01);
}

.tier-card.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 47, 108, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 47, 108, 0.05);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.tier-name {
    font-weight: 700;
    color: var(--primary-dark);
}

.tier-price {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.tier-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quantity-group {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    width: fit-content;
    overflow: hidden;
    background-color: #f8fafc;
}

.qty-btn {
    border: none;
    background: transparent;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--border-color);
}

#qty-value {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0 1rem;
    min-width: 40px;
    text-align: center;
}

/* Summary Box */
.summary-box {
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 1.2rem;
    margin-bottom: 1.8rem;
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.summary-row span:last-child {
    font-weight: 600;
    color: var(--text-color);
}

.summary-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0.8rem 0;
}

.total-row {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.total-row span:first-child {
    font-weight: 800;
    color: var(--primary-dark);
}

.total-row span:last-child {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Call to Action Button */
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 1.1rem 2rem;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.secure-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.secure-footer i {
    color: #22c55e;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .nav-search-container {
        max-width: 100%;
    }

    .lang-btn {
        justify-content: center;
    }

    .hero-section {
        padding: 2rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .hero-images {
        display: none;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .features-row {
        gap: 1rem;
        justify-content: center;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-left {
        height: 200px;
    }

    .modal-left img {
        height: 100%;
    }

    .modal-event-info {
        padding: 1.5rem;
    }

    .modal-right {
        padding: 1.5rem;
        max-height: 60vh;
    }
}
