/* minimal.css - Essential custom components for SimCalendar */

/* Logo and core branding styles */
.logo-text {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Hero content z-index (for overlay) */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero background - using CSS custom property */
.hero-bg {
    background: #2d3748;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%), var(--hero-bg-image, none) center/cover;
    background-attachment: fixed;
}

/* Responsive hero background */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        /* Better performance on mobile */
        min-height: 20rem;
        /* Adjust height for mobile */
    }
}

/* Hero section improvements */
.hero-bg .hero-content {
    animation: fadeInUp 1s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Leaflet map adjustments */
.leaflet-container {
    z-index: 1 !important;
}

.leaflet-control-container {
    z-index: 1000 !important;
}

/* Racing markers - custom component */
.racing-marker {
    background: radial-gradient(circle, #ef4444 0%, #dc2626 70%, #991b1b 100%);
    border: 3px solid #ffffff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    transform: rotate(-45deg);
    position: relative;
}

.racing-marker i {
    transform: rotate(45deg);
}

.racing-marker:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 30px rgba(239, 68, 68, 0.5);
}

.racing-marker.has-events {
    background: radial-gradient(circle, #10b981 0%, #059669 70%, #047857 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.3);
    animation: pulse-green 2s infinite;
}

.racing-marker.has-events:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.5);
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 30px rgba(16, 185, 129, 0.6);
    }
}

/* Event cards - better contrast with background */
.event-card {
    background: rgba(55, 65, 81, 0.9);
    border: 1px solid rgba(107, 114, 128, 0.3);
    backdrop-filter: blur(10px);
}

.event-card:hover {
    background: rgba(75, 85, 99, 0.95);
    border-color: rgba(107, 114, 128, 0.5);
    transform: translateY(-2px);
}

/* Subtle inner glow for better separation */
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* How it works section animations */
.how-it-works-step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.how-it-works-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.how-it-works-step:nth-child(1) {
    transition-delay: 0.1s;
}

.how-it-works-step:nth-child(2) {
    transition-delay: 0.2s;
}

.how-it-works-step:nth-child(3) {
    transition-delay: 0.3s;
}

/* Step hover effects */
.how-it-works-step .step-icon {
    transition: all 0.3s ease;
}

.how-it-works-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Social proof numbers animation */
.social-proof-number {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Trust indicators fade in */
.trust-indicators {
    animation: fadeIn 1.5s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Primary CTA button enhancement */
.cta-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: perspective(1px) translateZ(0);
    transition: all 0.3s ease;
}

.cta-primary::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 ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: perspective(1px) translateZ(0) scale(1.05);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* Features section improvements */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Prose styling for event descriptions */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #f9fafb;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose h1 {
    font-size: 1.875rem;
}

.prose h2 {
    font-size: 1.5rem;
}

.prose h3 {
    font-size: 1.25rem;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.6;
    color: #d1d5db;
}

.prose ul,
.prose ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
    color: #d1d5db;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose strong,
.prose b {
    color: #f9fafb;
    font-weight: 600;
}

.prose em,
.prose i {
    color: #e5e7eb;
    font-style: italic;
}

.prose a {
    color: #60a5fa;
    text-decoration: underline;
}

.prose a:hover {
    color: #93c5fd;
}

.prose code {
    background-color: #374151;
    color: #f9fafb;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.prose blockquote {
    border-left: 4px solid #6b7280;
    padding-left: 1rem;
    margin: 1.5em 0;
    color: #9ca3af;
    font-style: italic;
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Event status badges */
.event-status-completed {
    background-color: #dc2626;
    color: white;
}

.event-status-today {
    background-color: #059669;
    color: white;
}

.event-status-upcoming {
    background-color: #2563eb;
    color: white;
}

/* Smooth transitions for interactive elements */
.hover-scale {
    transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.map-crosshair {
    cursor: crosshair !important;
}

/* Partners expandable content */
.partners-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.partners-content.expanded {
    max-height: 1000px;
    opacity: 1;
}

/* Partner card animations */
.partner-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.partner-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Partner card hover effects */
.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Toggle button animations */
.toggle-icon {
    transition: transform 0.3s ease-in-out;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

/* Partner logo styling */
.partner-logo {
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease-in-out;
}

.partner-logo:hover {
    filter: grayscale(0%) brightness(1);
}

/* Enhanced hover for partner cards */
.partner-card .group:hover .partner-logo {
    filter: grayscale(0%) brightness(1);
}

/* Partners toggle button hover state */
#partnersToggle:hover {
    background-color: rgba(75, 85, 99, 0.5);
}

/* Focus states for accessibility */
#partnersToggle:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Mobile responsiveness for partners */
@media (max-width: 640px) {
    .partners-content.expanded {
        max-height: 1200px;
    }

    .partner-card {
        padding: 1rem;
    }

    #partnerCount {
        display: none !important;
    }

    .hero-bg {
        padding: 2rem 1rem;
        min-height: 24rem;
    }

    .hero-bg h1 {
        font-size: 2.5rem !important;
    }

    .hero-bg p {
        font-size: 1.125rem !important;
    }

    .social-proof-stats {
        gap: 1rem !important;
    }
}

/* Footer spacing and layout */
footer {
    margin-top: auto;
}

/* Footer logo consistency */
footer .logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer link hover effects */
footer a:hover {
    text-decoration: none;
}

/* Ensure main content area pushes footer down */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.main-content {
    flex: 1;
}

/* Alternative: if you don't want to use flexbox body, use this */
.page-container {
    min-height: calc(100vh - 4rem);
}

/* Remove duplicate sections styling */
.section-duplicate {
    display: none;
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations */
.hero-bg,
.event-card,
.partner-card {
    will-change: transform;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-bg .hero-content {
        animation: none;
    }

    .how-it-works-step,
    .partner-card,
    .animate-on-scroll {
        animation: none;
        transition: none;
    }

    .cta-primary:hover {
        transform: none;
    }
}