/* Common Styles for All Pages */

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

:root {
    --primary-gradient: linear-gradient(135deg, #4f73ff 0%, #2563eb 50%, #1d4ed8 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    --tertiary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    --accent-gradient: linear-gradient(135deg, #ec4899 0%, #d946ef 50%, #a855f7 100%);
    --mixed-gradient: linear-gradient(135deg, #4f73ff 0%, #3b82f6 25%, #ec4899 50%, #d946ef 75%, #a855f7 100%);
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent: #3b82f6;
    --accent-pink: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background animations for all pages */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background: 
        radial-gradient(ellipse 40% 30% at 50% 60%, rgba(255, 193, 7, 0.9) 0%, rgba(255, 152, 0, 0.7) 25%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 45% 55%, rgba(255, 87, 34, 0.8) 0%, rgba(233, 30, 99, 0.6) 35%, transparent 75%),
        radial-gradient(ellipse 70% 50% at 20% 70%, rgba(156, 39, 176, 0.7) 0%, rgba(103, 58, 183, 0.5) 40%, transparent 80%),
        radial-gradient(ellipse 80% 60% at 80% 60%, rgba(63, 81, 181, 0.6) 0%, rgba(33, 150, 243, 0.5) 45%, transparent 85%),
        radial-gradient(ellipse 65% 45% at 75% 30%, rgba(0, 188, 212, 0.5) 0%, rgba(0, 150, 136, 0.4) 50%, transparent 80%),
        radial-gradient(ellipse 90% 70% at 30% 20%, rgba(76, 175, 80, 0.4) 0%, rgba(139, 195, 74, 0.3) 55%, transparent 85%),
        radial-gradient(ellipse 100% 80% at 10% 40%, rgba(103, 58, 183, 0.5) 0%, rgba(156, 39, 176, 0.3) 60%, transparent 90%),
        radial-gradient(ellipse 85% 65% at 90% 80%, rgba(33, 150, 243, 0.4) 0%, rgba(63, 81, 181, 0.3) 65%, transparent 90%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
    filter: blur(60px) contrast(1.1) saturate(1.3);
    animation: rainbowFlow 20s ease-in-out infinite;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: 
        radial-gradient(ellipse 50% 35% at 60% 50%, rgba(255, 193, 7, 0.6) 0%, rgba(255, 152, 0, 0.4) 30%, transparent 60%),
        radial-gradient(ellipse 65% 45% at 40% 65%, rgba(233, 30, 99, 0.5) 0%, rgba(156, 39, 176, 0.3) 40%, transparent 70%),
        radial-gradient(ellipse 55% 40% at 75% 35%, rgba(63, 81, 181, 0.4) 0%, rgba(33, 150, 243, 0.3) 45%, transparent 75%);
    filter: blur(80px) saturate(1.5);
    animation: rainbowRotate 30s linear infinite;
    transform-origin: center center;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            135deg,
            transparent 0px,
            rgba(255, 255, 255, 0.003) 1px,
            transparent 3px
        ),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(255, 193, 7, 0.005) 1px,
            transparent 4px
        );
    background-size: 5px 5px, 7px 7px;
    mix-blend-mode: overlay;
    animation: rainbowNoise 25s ease-in-out infinite alternate;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 193, 7, 0.015) 0%, transparent 3px),
        radial-gradient(circle at 70% 60%, rgba(233, 30, 99, 0.012) 0%, transparent 3px),
        radial-gradient(circle at 50% 20%, rgba(103, 58, 183, 0.018) 0%, transparent 3px),
        radial-gradient(circle at 20% 80%, rgba(33, 150, 243, 0.010) 0%, transparent 3px),
        radial-gradient(circle at 80% 30%, rgba(0, 188, 212, 0.014) 0%, transparent 3px),
        radial-gradient(circle at 60% 90%, rgba(76, 175, 80, 0.008) 0%, transparent 3px);
    background-size: 12px 12px, 16px 16px, 10px 10px, 14px 14px, 18px 18px, 8px 8px;
    background-position: 0 0, 6px 6px, 3px 9px, 9px 3px, 12px 0px, 2px 8px;
    opacity: 0.9;
    filter: contrast(140%) brightness(1.08);
    animation: rainbowTexture 18s ease-in-out infinite;
}

@keyframes rainbowFlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: blur(60px) contrast(1.1) saturate(1.3) hue-rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(-1deg);
        filter: blur(65px) contrast(1.15) saturate(1.4) hue-rotate(10deg);
    }
    50% {
        transform: scale(0.98) rotate(0.5deg);
        filter: blur(55px) contrast(1.05) saturate(1.5) hue-rotate(-5deg);
    }
    75% {
        transform: scale(1.02) rotate(-0.5deg);
        filter: blur(62px) contrast(1.12) saturate(1.2) hue-rotate(7deg);
    }
}

@keyframes rainbowRotate {
    0% {
        transform: rotate(0deg) scale(1);
        filter: blur(80px) saturate(1.5) hue-rotate(0deg);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        filter: blur(85px) saturate(1.6) hue-rotate(15deg);
    }
    50% {
        transform: rotate(180deg) scale(0.95);
        filter: blur(75px) saturate(1.7) hue-rotate(-10deg);
    }
    75% {
        transform: rotate(270deg) scale(1.05);
        filter: blur(82px) saturate(1.4) hue-rotate(5deg);
    }
    100% {
        transform: rotate(360deg) scale(1);
        filter: blur(80px) saturate(1.5) hue-rotate(0deg);
    }
}

@keyframes rainbowNoise {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.7;
    }
    25% {
        transform: translateX(1px) translateY(-0.5px);
        opacity: 0.9;
    }
    50% {
        transform: translateX(-0.5px) translateY(1px);
        opacity: 0.8;
    }
    75% {
        transform: translateX(0.5px) translateY(0.5px);
        opacity: 0.95;
    }
    100% {
        transform: translateX(0) translateY(0);
        opacity: 0.7;
    }
}

@keyframes rainbowTexture {
    0%, 100% {
        transform: translateX(0) translateY(0) scale(1);
        filter: contrast(140%) brightness(1.08) hue-rotate(0deg);
    }
    33% {
        transform: translateX(0.8px) translateY(-0.8px) scale(1.01);
        filter: contrast(135%) brightness(1.12) hue-rotate(8deg);
    }
    66% {
        transform: translateX(-0.8px) translateY(0.8px) scale(0.99);
        filter: contrast(145%) brightness(1.05) hue-rotate(-5deg);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    text-decoration: none;
    display: block;
}

.logo-image {
    width: 12rem;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    transition: all 0.3s ease;
}

.logo-image:hover {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a,
.navbar .nav-links a,
.nav-container .nav-links a {
    color: var(--text-primary) !important;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.navbar .nav-links a:hover,
.nav-container .nav-links a:hover {
    color: var(--accent-pink) !important;
    transform: translateY(-2px);
}

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

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

.nav-links button,
.navbar .nav-links button,
.nav-container .nav-links button {
    color: var(--text-primary) !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links button:hover,
.navbar .nav-links button:hover,
.nav-container .nav-links button:hover {
    color: var(--accent-pink) !important;
    transform: translateY(-2px);
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn span:last-child {
    margin-bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: none;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
    padding: 2rem;
}

.mobile-menu-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mobile-menu-link:hover {
    color: var(--accent-pink);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }
}

/* Main content wrapper for non-home pages */
.page-content {
    background: #000000;
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
    z-index: 0;
}

/* Section titles with gradient */
.section-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
    background: var(--mixed-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Common button styles */
.view-all-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    padding: 1rem 3rem !important;
    border-radius: 50px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.view-all-btn:hover {
    transform: translateY(-3px) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4) !important;
}

/* Footer override for style.css */
footer {
    background: #000000 !important;
    color: #ecf0f1 !important;
    padding: 40px 0 20px !important;
    margin-top: 60px !important;
    position: relative !important;
}

.footer-section h3::after {
    background: linear-gradient(135deg, #4f73ff 0%, #ec4899 50%, #a855f7 100%) !important;
}

.footer-links a:hover {
    color: #ec4899 !important;
}

.social-links a:hover {
    background: linear-gradient(135deg, #4f73ff 0%, #ec4899 50%, #a855f7 100%) !important;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Container adjustments */
.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Card styles for lists */
.featured-slider,
.bar-grid,
.event-grid,
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem !important;
    margin-bottom: 3rem !important;
}

.bar-card,
.event-card,
.blog-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
}

.bar-card:hover,
.event-card:hover,
.blog-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
}

/* Card text styles - override style.css */
.event-title,
.bar-title,
.blog-title {
    color: #ffffff !important;
}

.event-location,
.bar-location,
.event-desc,
.bar-desc,
.blog-desc,
.bar-hours {
    color: rgba(255, 255, 255, 0.8) !important;
}

.event-date {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bar-tag,
.event-tag,
.blog-tag {
    color: #ffffff !important;
}

.blog-category {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Additional text elements */
.event-content,
.bar-content,
.blog-content {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Empty state messages */
.page-content p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure general text in page-content is white */
.page-content {
    color: #ffffff !important;
}

/* Force navigation text to be white - strongest selectors */
nav a,
.navbar a,
header a,
.navigation a,
[class*="nav"] a {
    color: #ffffff !important;
}

nav a:hover,
.navbar a:hover,
header a:hover,
.navigation a:hover,
[class*="nav"] a:hover {
    color: #ec4899 !important;
}

nav button,
.navbar button,
header button,
.navigation button,
[class*="nav"] button {
    color: #ffffff !important;
}

nav button:hover,
.navbar button:hover,
header button:hover,
.navigation button:hover,
[class*="nav"] button:hover {
    color: #ec4899 !important;
}

/* Mobile menu specific overrides */
.mobile-menu-link,
.mobile-menu-content .mobile-menu-link,
.mobile-menu .mobile-menu-link {
    color: #ffffff !important;
    background: transparent !important;
}

.mobile-menu-link:hover,
.mobile-menu-content .mobile-menu-link:hover,
.mobile-menu .mobile-menu-link:hover {
    color: #ec4899 !important;
}

/* Support page and other pages with custom styles override */
.mobile-menu-content button,
.mobile-menu-content form button {
    color: #ffffff !important;
    background: transparent !important;
}

/* Force all mobile menu text to be white regardless of page styles */
.mobile-menu *,
.mobile-menu-content *,
.mobile-menu a,
.mobile-menu button,
.mobile-menu .mobile-menu-link {
    color: #ffffff !important;
}

.mobile-menu *:hover,
.mobile-menu-content *:hover,
.mobile-menu a:hover,
.mobile-menu button:hover,
.mobile-menu .mobile-menu-link:hover {
    color: #ec4899 !important;
}