/* Tailwind CSS is handled via CDN, this file contains additional custom styles */

:root {
    --primary: #000000;
    --on-primary: #ffffff;
    --secondary: #735c00;
    --tertiary: #6b5d5d;
    --surface: #fdf8f8;
    --on-surface: #1c1b1b;
    --surface-variant: #e5e2e1;
    --outline: #747878;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Remove scrollbar but keep functionality */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
}

/* Intersection Observer Animations */
.fade-in-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.scale-in-on-scroll {
    opacity: 0;
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Parallax effect for images */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Sticky bottom action bar styles */
.sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    animation: slideUp 0.5s ease-out;
    z-index: 40;
}

/* Magnetic button effect */
.magnetic-button {
    position: relative;
    overflow: hidden;
}

.magnetic-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.magnetic-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Haptic-mimicking background shifts */
.haptic-feedback {
    transition: all 0.15s ease-out;
}

.haptic-feedback:active {
    transform: scale(0.98);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Card hover effects */
.event-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.event-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Category pill active state */
.category-pill {
    cursor: pointer;
    transition: all 0.3s ease-out;
}

.category-pill.active {
    background-color: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-pill:not(.active):hover {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.02);
}

/* Form inputs with inline validation */
.form-input {
    position: relative;
    transition: all 0.3s ease-out;
}

.form-input.success {
    border-color: #4caf50;
    background-color: rgba(76, 175, 80, 0.05);
}

.form-input.error {
    border-color: #ba1a1a;
    background-color: rgba(186, 26, 26, 0.05);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Skeleton loading animation */
.skeleton-loader {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Tooltip styles */
.tooltip {
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
    pointer-events: none;
}

/* Success/Failure animations */
.success-animation {
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .parallax {
        background-attachment: scroll;
    }

    /* Thumb-zone optimization */
    button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Sticky navigation adjustments for mobile */
    nav {
        padding: 0.75rem 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }

    body {
        background: white;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    * {
        border-width: 2px;
    }

    button {
        text-decoration: underline;
    }
}

/* Dark mode support (ready for future implementation) */
@media (prefers-color-scheme: dark) {
    :root {
        --surface: #1c1b1b;
        --on-surface: #fdf8f8;
        --surface-variant: #474746;
        --outline: #858383;
    }
}
