/* Custom styles for Ladbrokes website */

/* Custom properties for consistent theming */
:root {
    --ladbrokes-red: #DC2626;
    --ladbrokes-dark: #1F2937;
    --secondary-color: #6B7280;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Typography utilities matching Ladbrokes design */
.label-md {
    font-size: 0.875rem;
    font-weight: 500;
}

.label-lg {
    font-size: 1rem;
    font-weight: 500;
}

.label-sm {
    font-size: 0.75rem;
    font-weight: 500;
}

.heading-xl {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2.25rem;
  color: #fff;
}

/* Session timer styling */
.session-timer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.session-timer__label {
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 2px;
}

.session-timer__timer {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #1F2937;
}

/* Custom hover effects for racing cards */
.racing-card {
    transition: all 0.2s ease-in-out;
}

.racing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Odds button styling */
.odds-button {
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.odds-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navigation active state */
.nav-active {
    border-bottom: 2px solid white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal animations */
#registrationModal {
    animation: fadeIn 0.3s ease-out;
}

#registrationModal.closing {
    animation: fadeOut 0.3s ease-in;
}

#registrationModal > div {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

/* Form styling improvements */
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="date"]:focus,
input[type="tel"]:focus {
    border-color: var(--ladbrokes-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Checkbox custom styling */
input[type="checkbox"]:checked {
    background-color: var(--ladbrokes-red);
    border-color: var(--ladbrokes-red);
}

/* Button hover effects */
.btn-primary {
    background-color: var(--ladbrokes-red);
    transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
    background-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Hero section gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, #DC2626 0%, #EC4899 100%);
}

/* Partner logos hover effect */
.partner-logo {
    transition: all 0.2s ease-in-out;
    filter: grayscale(20%);
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-gradient {
        padding: 2rem 0;
    }
    
    .hero-gradient h1 {
        font-size: 2rem;
    }
    
    .nav-mobile {
        display: block;
    }
    
    .nav-desktop {
        display: none;
    }
}

@media (min-width: 769px) {
    .nav-mobile {
        display: none;
    }
    
    .nav-desktop {
        display: flex;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--ladbrokes-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--ladbrokes-red);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-neutral-100 {
        background-color: white;
        border: 1px solid #000;
    }
    
    .text-secondary {
        color: #000;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}