@font-face {
    font-family: 'Blanka';
    src: url('../fonts/Blanka-Regular.otf') format('opentype'),
         url('../fonts/Blanka-Regular.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --bg-muted: #111111;
    --text-main: #ffffff;
    --text-muted: #666666;
    --text-bright: #ffffff;
    --border: #222222;
    --accent: #ffffff;
    --accent-purple: #9d26b0;
    --glass-bg: rgba(0, 0, 0, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Blanka', sans-serif;
    --nav-text: #ffffff;
    --nav-hover: #ffffff;
    --nav-glow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5);
}

.light-mode {
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --bg-muted: #eeeeee;
    --text-main: #000000;
    --text-muted: #888888;
    --text-bright: #000000;
    --border: #e0e0e0;
    --accent: #000000;
    --accent-purple: #7b1fa2;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    --nav-text: #000000;
    --nav-hover: var(--accent-purple);
    --nav-glow: none;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 5rem;
    /* Account for fixed header */
}

*,
*::before,
*::after {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.1s ease;
}

.glass-container {
    background: var(--bg-dark);
    /* Fallback solid background */
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.logo, .logo a {
    font-family: var(--font-logo);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-logo-text {
    font-family: var(--font-logo);
    font-weight: 400;
    font-size: 2rem;
    color: var(--text-bright);
    /* Blanco */
    letter-spacing: 4px;
    line-height: 1;
    position: relative;
    padding-bottom: 0;
    border-bottom: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    /* Center the navigation links */
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--nav-hover);
    text-shadow: var(--nav-glow);
    font-weight: 800;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--nav-hover);
    text-shadow: var(--nav-glow);
    font-weight: 800;
}

.btn-primary {
    background: var(--accent-purple);
    color: #ffffff !important;
    padding: 0.7rem 1.5rem;
    border-radius: 2px;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-purple);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-purple) !important;
}

/* Zone 3: Actions Section */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    white-space: nowrap;
}

.user-name {
    color: var(--text-bright);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.5;
    text-transform: uppercase;
}

.dashboard-link {
    text-decoration: none;
    color: var(--text-bright);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.dashboard-link:hover {
    color: var(--accent-purple);
}

.btn-logout-tiny {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-bright);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.btn-logout-tiny:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* Visibility Rules */
.mobile-only {
    display: none !important;
}

.theme-btn-desktop, .action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-bright);
    width: 40px;
    height: 40px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn-desktop:hover, .action-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

@media (max-width: 1024px) {
    .nav-links,
    .user-nav {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .header-nav {
        grid-template-columns: auto 1fr;
        justify-content: space-between;
        gap: 1rem;
    }

    .header-actions {
        gap: 0.8rem;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.close-drawer {
    background: transparent;
    border: none;
    color: var(--accent-purple);
    font-size: 2.5rem;
    cursor: pointer;
}

.drawer-links {
    list-style: none;
}

.drawer-links li {
    margin-bottom: 2rem;
}

.drawer-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.drawer-links a:hover {
    color: var(--nav-hover);
    text-shadow: var(--nav-glow);
    font-weight: 900;
}

.drawer-user-info {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-user-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logout-link {
    color: #ff4d4d;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-family: var(--font-logo);
    font-size: 6rem;
    font-weight: 400;
    color: var(--text-bright);
    margin-bottom: 1rem;
    letter-spacing: 4px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-bright);
    color: var(--text-bright);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--text-bright);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--text-bright);
    color: var(--text-bright);
}

.featured-events {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-events h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 4rem;
    color: var(--text-bright);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.event-card:hover {
    border-color: var(--text-main);
}

.card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #111;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.event-card:hover .card-img img {
    filter: grayscale(0%);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid var(--border);
}

/* Services Section */
.services-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--text-bright);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--text-bright);
    margin-bottom: 2rem;
    font-family: var(--font-logo);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
}

.service-card .accent-line {
    width: 40px;
    height: 2px;
    background: var(--text-bright);
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}

.card-body {
    padding: 2rem;
}

.event-date {
    display: block;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body h3 {
    color: var(--text-bright);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-view {
    display: inline-block;
    color: var(--text-bright);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.btn-view:hover {
    border-color: var(--text-bright);
}

.main-footer {
    padding: 6rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: #444;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* Shopping Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 3000;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 1.25rem;
    color: var(--text-bright);
    text-transform: uppercase;
    font-weight: 700;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #000;
    border-radius: 4px;
}

.cart-item-info h4 {
    font-size: 0.85rem;
    color: var(--text-bright);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cart-item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cart-item-actions {
    text-align: right;
}

.cart-item-actions button {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    margin-bottom: 8px;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-muted);
    border-radius: 4px;
    padding: 4px;
}

.qty-control button {
    background: transparent;
    border: none;
    color: var(--text-bright);
    padding: 2px 8px;
    font-weight: 700;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.checkout-btn {
    width: 100%;
    margin-bottom: 1rem;
}

.cart-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--accent-purple);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 800;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}