/* Vancouver Blockchain Week 2026 - Custom Styles */

/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

/* Neo-brutalist Enhancements */
* {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-left: 4px solid #000;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 0;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #DC143C;
}

/* Enhanced Button Styles */
.btn-brutal {
    background: #000;
    color: #fff;
    border: 4px solid #000;
    font-weight: 900;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
    transform: translateX(-2px) translateY(-2px);
}

.btn-brutal:hover {
    background: #DC143C;
    border-color: #DC143C;
    box-shadow: 8px 8px 0px rgba(220, 20, 60, 1);
    transform: translateX(0) translateY(0);
}

.btn-brutal:active {
    transform: translateX(2px) translateY(2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
}

/* Card Styles */
.card-brutal {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 1);
    transform: translateX(-2px) translateY(-2px);
}

.card-brutal:hover {
    box-shadow: 8px 8px 0px rgba(220, 20, 60, 1);
    transform: translateX(-4px) translateY(-4px);
}

/* Hero Section Enhancements */
.hero-pattern {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(220, 20, 60, 0.1) 35px, rgba(220, 20, 60, 0.1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0, 0, 0, 0.05) 35px, rgba(0, 0, 0, 0.05) 70px);
}

/* Orca-inspired Wave Animation */
@keyframes wave {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-5px) translateY(-3px); }
    50% { transform: translateX(0) translateY(-6px); }
    75% { transform: translateX(5px) translateY(-3px); }
}

.wave-element {
    animation: wave 3s ease-in-out infinite;
}

/* Event Category Badges */
.badge-hackathon { background: #DC143C; }
.badge-meetup { background: #0066CC; }
.badge-party { background: #00AA00; }
.badge-conference { background: #9933CC; }
.badge-coworking { background: #FF8800; }
.badge-happy-hour { background: #FF6600; }
.badge-other { background: #666666; }

/* Category Dropdown */
#dropdownToggle {
    background: #F5F5F5 !important;
    position: relative;
}

#dropdownMenu {
    max-height: 400px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 100%;
}

.category-option {
    user-select: none;
    display: block;
    width: 100%;
}

.category-option:hover {
    background: #DC143C !important;
    color: #fff !important;
}

.category-option input[type="checkbox"] {
    accent-color: #DC143C;
    margin-right: 8px;
}

/* Ensure dropdown visibility */
#dropdownMenu {
    display: none;
}

#dropdownMenu.show {
    display: block !important;
}

.tag-filter.active {
    background: #DC143C;
    color: #fff;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Loading Animation */
@keyframes brutal-loading {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        background: #000;
    }
    50% { 
        transform: scale(1.05) rotate(2deg);
        background: #DC143C;
    }
}

.loading-brutal {
    animation: brutal-loading 1.5s ease-in-out infinite;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #DC143C;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .card-brutal {
        box-shadow: none;
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card-brutal {
        border-width: 8px;
    }
    
    .btn-brutal {
        border-width: 6px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .wave-element {
        animation: none;
    }
    
    .loading-brutal {
        animation: none;
        background: #000;
    }
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Mobile Menu Styles */
#mobileMenu {
    display: none;
}

#mobileMenu.mobile-menu-open {
    display: block;
}

/* Mobile Menu Animations */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

.mobile-menu-exit {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Mobile-specific spacing improvements */
@media (max-width: 767px) {
    /* Ensure header has proper spacing */
    header {
        padding-top: 0;
    }
    
    /* Better spacing for hero section on mobile */
    section {
        scroll-margin-top: 80px;
    }
    
    /* Improve button spacing on mobile */
    button {
        min-height: 44px; /* Better touch target */
    }
    
    /* Better text sizing on mobile */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    /* Improve card spacing */
    .event-card {
        margin-bottom: 1rem;
    }
    
    /* Better form spacing */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Modal Enhancements */
.modal-backdrop {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Form Validation Styles */
.form-error {
    border-color: #DC143C !important;
    background: #FFF5F5;
}

.form-success {
    border-color: #00AA00 !important;
    background: #F5FFF5;
}

/* Success/Error Messages */
.message-success {
    background: #00AA00;
    color: #fff;
    border: 4px solid #00AA00;
    box-shadow: 8px 8px 0px rgba(0, 170, 0, 0.3);
}

.message-error {
    background: #DC143C;
    color: #fff;
    border: 4px solid #DC143C;
    box-shadow: 8px 8px 0px rgba(220, 20, 60, 0.3);
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .card-brutal {
        background: #1A1A1A;
        color: #fff;
    }
    
    body {
        background: #000;
        color: #fff;
    }
}

/* Custom Selection Colors */
::selection {
    background: #DC143C;
    color: #fff;
}

::-moz-selection {
    background: #DC143C;
    color: #fff;
}

/* Enhanced Event Cards */
.event-card {
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.event-card:hover::before {
    left: 100%;
}

/* Navigation Enhancements */
.nav-sticky {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}