/* Index Page Complete Styles - Fixed version */
* {
    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: #000000 !important;
    background-color: #000000 !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Main content area with black background */
.main-content {
    background: #000000 !important;
    background-color: #000000 !important;
    z-index: 0;
    margin-top: -150px;
    padding-top: 150px;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: -1;
}

/* Rainbow fluid gradient background */
.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;
}

/* Enhanced noise overlay for rainbow texture */
.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);
    }
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    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);
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.8)); }
}

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

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    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 {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links button:hover {
    color: var(--text-primary);
    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;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background: url('/images/hero_bg.webp') center/cover no-repeat;
}

/* WebP support with fallback */
.webp .hero {
    background: url('/images/hero_bg.webp') center/cover no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(
        to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.8) 90%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--mixed-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

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

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-bar {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: var(--accent-gradient);
    border: none;
    padding: 1rem 2rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
}

/* Floating action buttons */
.floating-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn-blue:hover {
    transform: translateY(-5px);
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

.action-btn-pink:hover {
    transform: translateY(-5px);
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
}

.action-btn-purple:hover {
    transform: translateY(-5px);
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.2);
}

/* Events Section */
.section {
    padding: 3rem 2rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #000000 !important;
}

.section:first-child {
    padding-top: 5rem;
}

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

/* Index page specific card styles */
.cards-grid .card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cards-grid .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 200px;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.cards-grid .card:hover .card-image img {
    transform: scale(1.1);
}

.card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cards-grid .card:nth-child(even) .card-date {
    background: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.cards-grid .card:nth-child(3n) .card-date {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-word;
}

.card-organizer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    word-break: break-word;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    line-height: 1.4;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid;
}

.tag:nth-child(1) {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.tag:nth-child(2) {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.3);
}

.tag:nth-child(3) {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.tag:nth-child(n+4) {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.3);
}

/* View More Button */
.view-more {
    text-align: center;
}

.view-more-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-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.view-more-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;
}

.view-more-btn:hover::before {
    left: 100%;
}

/* Community Section */
.community {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 4rem;
    margin: 4rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.community-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.community-image {
    height: 400px;
    background: var(--secondary-gradient);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.community-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--mixed-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.community-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cta-btn {
    background: var(--accent-gradient);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .search-container {
        max-width: 100%;
        margin: 0 auto 2rem;
        padding: 0 1rem;
    }

    .search-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        border-radius: 20px;
    }

    .search-input {
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
    }

    .search-btn {
        padding: 1rem;
        border-radius: 20px;
        font-size: 1rem;
    }

    .floating-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .action-btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 0 1rem;
        align-items: stretch;
    }
    
    .cards-grid .card {
        display: flex;
        flex-direction: column;
    }
    
    .card-image {
        height: 140px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .card-content {
        padding: 0.75rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .card-info {
        flex: 1;
        overflow: hidden;
    }
    
    .card-title {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    
    .card-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .card-location {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-desc {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    
    .card-organizer {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .event-genre-tags,
    .bar-category,
    .card-tags {
        margin-bottom: 0.25rem;
    }
    
    .event-genre-tag,
    .category-badge,
    .subcategory-badge,
    .tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.3rem;
        margin-right: 0.25rem;
        margin-bottom: 0.15rem;
    }
    
    .card-date {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin-top: auto;
        align-self: flex-start;
        flex-shrink: 0;
    }

    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .community {
        padding: 2rem;
    }
}

/* 小さなスマホ画面用 */
@media (max-width: 480px) {
    .cards-grid {
        gap: 0.75rem;
        margin: 0 0.5rem;
        align-items: stretch;
    }
    
    .cards-grid .card {
        display: flex;
        flex-direction: column;
    }
    
    .card-image {
        height: 120px;
        flex-shrink: 0;
    }
    
    .card-content {
        padding: 0.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .card-info {
        flex: 1;
        overflow: hidden;
    }
    
    .card-title {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    
    .card-subtitle {
        font-size: 0.7rem;
    }
    
    .card-location {
        font-size: 0.7rem;
        margin-bottom: 0.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-desc {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }
    
    .card-organizer {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .event-genre-tags,
    .bar-category,
    .card-tags {
        margin-bottom: 0.2rem;
    }
    
    .event-genre-tag,
    .category-badge,
    .subcategory-badge,
    .tag {
        font-size: 0.55rem;
        padding: 0.1rem 0.25rem;
        margin-right: 0.2rem;
        margin-bottom: 0.1rem;
    }
    
    .card-date {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        margin-top: auto;
        align-self: flex-start;
        flex-shrink: 0;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Laravel specific adjustments */
.event-card-link, .bar-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    word-break: break-word;
    line-height: 1.3;
}

.card-location::before {
    content: '📍';
    margin-right: 8px;
}

.bar-hours {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.bar-hours::before {
    content: '🕐';
    margin-right: 8px;
}

.event-genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.event-genre-tag {
    background: rgba(168, 85, 247, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.event-genre-tag:hover {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.bar-hours::before {
    content: '🕒';
    margin-right: 8px;
}

/* No image placeholder */
.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--primary-gradient);
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 2rem;
}

/* Category badges */
.bar-category {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.category-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.subcategory-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Category Filter Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: capitalize;
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.category-tab.active {
    background: linear-gradient(135deg, #ec4899 0%, #3b82f6 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
}

.bar-card-link {
    transition: all 0.3s ease;
}

.bar-card-link.hidden {
    display: none;
}

/* Additional missing classes for BarFilter functionality */
.BarFilter {
    /* Placeholder for BarFilter class if needed */
}