/* calendar.css - Calendar page specific styles */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced FullCalendar Styling */
.fc {
    background: #ffffff !important;
    border-radius: 1rem !important;
}

.fc-header-toolbar {
    padding: 1rem !important;
    border-bottom: 2px solid #f3f4f6 !important;
    margin-bottom: 1rem !important;
}

.fc-button-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.fc-button-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.fc-event {
    border-radius: 0.5rem !important;
    border: none !important;
    font-weight: 500 !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0.125rem 0 !important;
}

.fc-daygrid-day {
    transition: all 0.2s ease !important;
    position: relative !important;
}

.fc-daygrid-day:hover {
    background: #fef7ed !important;
    transform: scale(1.01) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15) !important;
}

.fc-day-today {
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%) !important;
}

/* Race type badges in calendar days */
.fc-daygrid-day.has-race::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

/* CTA Badge Styles */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    transition: all 0.3s ease;
}

.cta-badge:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.2) 100%);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Race count display */
.race-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* Surface filter enhancement */
.surface-filter {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.surface-option {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.surface-option:hover {
    border-color: #f59e0b;
    background: #fef7ed;
}

.surface-option.active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

/* Mini modal for race details */
.race-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    z-index: 1000;
}

.race-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

/* Enhanced CTA button */
.cta-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    text-decoration: none;
}

.cta-subscribe:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

/* Autocomplete styles */
.autocomplete-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #f59e0b;
    border-top: none;
    border-radius: 0 0 0.75rem 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.autocomplete-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.autocomplete-suggestion:hover {
    background: #fef7ed;
}

.autocomplete-suggestion.active {
    background: #f59e0b;
    color: white;
}
