/* 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;
}

/* 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);
    /* gray-700 with transparency */
    border: 1px solid rgba(107, 114, 128, 0.3);
    /* gray-500 border */
    backdrop-filter: blur(10px);
}

.event-card:hover {
    background: rgba(75, 85, 99, 0.95);
    /* gray-600 on hover */
    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;
    /* Better readability */
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    /* Better readability */
}

/* 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;
    /* Increased from 600px to 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);
    /* gray-600 with opacity */
}

/* 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;
        /* Even more space on mobile - increased from 800px */
    }

    .partner-card {
        padding: 1rem;
    }

    #partnerCount {
        display: none !important;
    }
}

/* Footer spacing and layout */
footer {
    margin-top: auto;
    /* Push footer to bottom */
}

/* 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);
    /* Adjust based on nav height */
}