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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.page {
    display: none;
    position: relative;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Background Gradient */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #000000 0%, #4a0e0e 50%, #000000 100%);
    background-image: url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?w=1920');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.page-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(74, 14, 14, 0.85) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: -1;
}

/* Age Gate Styles */
.age-gate-container {
    max-width: 28rem;
    width: 100%;
    padding: 1rem;
}

.age-gate-card {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(40px);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
}

.age-gate-logo {
    height: 8rem;
    width: auto;
}

.age-gate-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.age-gate-subtitle {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
}

.age-question-box {
    background: rgba(74, 14, 14, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
}

.age-question-main {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.age-question-sub {
    color: #9ca3af;
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
}

.btn-reject {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid #4b5563;
    background: transparent;
    color: #d1d5db;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-reject:hover {
    background: rgba(31, 41, 55, 0.5);
    border-color: #6b7280;
    color: #d1d5db;
}

.btn-confirm {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #d4af37 0%, #aa8a2e 100%);
    border: none;
    color: #000000;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-confirm:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
    color: #000000;
}

.alert-error {
    display: flex;
    align-items-flex-start;
    gap: 0.75rem;
    background: rgba(127, 29, 29, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.error-icon {
    color: #f87171;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.error-title {
    color: #fecaca;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.error-text {
    color: rgba(254, 202, 202, 0.8);
    font-size: 0.75rem;
    margin: 0;
}

.age-gate-footer {
    padding-top: 1rem;
    border-top: 1px solid #1f2937;
    text-align: center;
}

.age-gate-footer p {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 0;
}

/* Navigation Styles */
.custom-navbar {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar-logo {
    height: 3rem;
    width: auto;
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 4%;
    padding: 3px 6px;
}

.text-light-gray {
    color: #d1d5db;
    font-size: 0.875rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid #d4af37;
    object-fit: cover;
}

.btn-sign-in {
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #d4af37 0%, #aa8a2e 100%);
    border: none;
    color: #000000;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-sign-in:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
    color: #000000;
}

/* Hero Section */
.hero-section {
    padding: 5rem 1rem;
    position: relative;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
}

.hero-gradient-text {
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #d1d5db;
    line-height: 1.75;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.btn-get-started {
    padding: 1rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #d4af37 0%, #aa8a2e 100%);
    border: none;
    color: #000000;
    font-size: 1.125rem;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-get-started:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.5);
    color: #000000;
}

/* Feature Cards */
.feature-card {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
}

.feature-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(170, 138, 46, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon {
    color: #d4af37;
}

.feature-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

/* Logged In View */
.welcome-title {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: bold;
}

.welcome-text {
    color: #d1d5db;
    font-size: 1.125rem;
}

/* Auth Callback */
.auth-loading-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-loading-subtitle {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .age-gate-card {
        padding: 1.5rem;
    }

    .navbar-logo {
        height: 2.5rem;
    }
}

/* Loading Spinner Custom Color */
.spinner-border.text-warning {
    color: #d4af37 !important;
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.gap-3 {
    gap: 1rem;
}

/* Navigation Links */
.nav-link-custom {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link-custom:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.nav-link-custom.active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
}

/* Page Title & Subtitle */
.page-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
}

.page-subtitle {
    color: #d1d5db;
    font-size: 1.125rem;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-input {
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(26, 10, 10, 0.8);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background: rgba(26, 10, 10, 0.95);
}

.search-input::placeholder {
    color: #9ca3af;
}

/* Bar Cards */
.bar-card {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.bar-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.bar-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(74, 14, 14, 0.5);
}

.bar-card-body {
    padding: 1.5rem;
}

.bar-name {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.bar-location {
    color: #d4af37;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.bar-description {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.bar-stats {
    display: flex;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item {
    color: #9ca3af;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item svg {
    color: #d4af37;
}

/* Profile Page */
.profile-header {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    object-fit: cover;
}

.profile-name {
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 1rem;
}

.profile-email {
    color: #9ca3af;
    font-size: 1rem;
}

.info-card {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
}

.info-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

.info-value {
    color: #ffffff;
    font-weight: 600;
}

/* Bar Profile Page */
.bar-header {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.95) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.bar-cover {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.bar-info {
    padding: 2rem;
}

.bar-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.bar-subtitle {
    color: #d4af37;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.bar-description-full {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.btn-follow {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #d4af37 0%, #aa8a2e 100%);
    border: none;
    color: #000000;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-follow:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
}

.btn-following {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
}

.btn-following:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

/* About Page */
.about-section {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.about-section h2 {
    color: #d4af37;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-section p {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-section ul {
    color: #d1d5db;
    padding-left: 1.5rem;
}

.about-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

/* Events Page */
.event-filter-group {
    display: inline-flex;
    background: rgba(26, 10, 10, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 9999px;
    padding: 0.25rem;
}

.btn-filter {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-filter:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.1);
}

.btn-filter.active {
    background: linear-gradient(90deg, #d4af37 0%, #aa8a2e 100%);
    color: #000000;
}

.event-card {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.event-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.event-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    background-color: rgba(74, 14, 14, 0.5);
}

.event-card-body {
    padding: 1.5rem;
}

.event-date {
    color: #d4af37;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-date svg {
    flex-shrink: 0;
}

.event-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-venue {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-description {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.event-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 600;
}

.event-price {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Menu/Products Page */
.menu-category {
    background: linear-gradient(180deg, rgba(26, 10, 10, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.menu-category h2 {
    color: #d4af37;
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-category h2 svg {
    color: #d4af37;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-info {
    flex: 1;
}

.menu-item-name {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.menu-item-description {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.menu-item-price {
    color: #d4af37;
    font-size: 1.125rem;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 1rem;
}

.menu-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}
