/* Custom styles for Palmerbet-inspired website */
@font-face {
    font-family: 'Kanit';
    src: url('/fonts/Kanit-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Custom properties for consistent theming */
:root {
    --palmerbet-blue: #221e8a;
    --palmerbet-dark: #281eaf;
    --palmerbet-light: #3b4ef6;
    --palmerbet-green: #10b972;
    --secondary-color: #6b6b80;
}

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

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

/* Typography utilities matching Palmerbet 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: var(--palmerbet-blue);
}

/* Date display styling */
#current-date {
    font-weight: 500;
    color: #374151;
}

/* Search bar styling */
.search-bar {
    transition: all 0.2s ease-in-out;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Navigation styling */
.nav-button {
    transition: all 0.2s ease-in-out;
}

.nav-button:hover {
    transform: translateY(-1px);
}

.nav-button.active {
    background-color: var(--palmerbet-blue);
    color: white;
}

/* Carousel navigation */
.carousel-nav {
    transition: all 0.2s ease-in-out;
}

.carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Quick links styling */
.quick-link {
    transition: all 0.2s ease-in-out;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Featured events styling */
.featured-event {
    transition: all 0.2s ease-in-out;
}

.featured-event:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Filter buttons */
.filter-button {
    transition: all 0.2s ease-in-out;
}

.filter-button:hover {
    transform: translateY(-1px);
}

.filter-button.active {
    background-color: var(--palmerbet-blue);
    color: white;
}

/* Empty state styling */
.empty-state {
    color: #9CA3AF;
}

.empty-state svg {
    opacity: 0.5;
}

/* 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);
}

/* Social media icons */
.social-icon {
    transition: all 0.2s ease-in-out;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* BetStop banner styling */
.betstop-banner {
    border-color: #059669;
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

/* 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(--palmerbet-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

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

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

.btn-primary:hover {
    background-color: #1E40AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-success {
    background-color: var(--palmerbet-green);
    transition: all 0.2s ease-in-out;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    .search-bar {
        margin: 0 1rem;
    }
    
    .quick-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .featured-events {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@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(--palmerbet-blue);
    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(--palmerbet-blue);
    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;
    }
}