/* Custom styles for Manrope-inspired website */
@font-face {
    font-family: 'Manrope';
    src: url('/fonts/Manrope-VariableFont_wght.ttf') format('truetype');
}

/* Custom properties for consistent theming */
:root {
    --mintbet-green: #10B981;
    --mintbet-dark: #059669;
    --mintbet-light: #34D399;
    --mintbet-accent: #6EE7B7;
    --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 Manrope 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(--mintbet-green);
}

/* Top racing bar styling */
.bg-mintbet-green {
    background-color: var(--mintbet-green);
}

/* Sidebar navigation styling */
aside {
    position: relative;
}

aside nav {
    height: calc(100vh - 120px);
    overflow-y: auto;
}

/* Navigation menu items */
aside nav > div > div {
    transition: all 0.2s ease-in-out;
}

aside nav > div > div:hover {
    background-color: var(--mintbet-dark);
    border-radius: 0.5rem;
}

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

.search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 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(--mintbet-green);
    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(--mintbet-green);
    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: var(--mintbet-green);
    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(--mintbet-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

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

.btn-primary:hover {
    background-color: var(--mintbet-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

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

/* Markets section styling */
.markets-tab {
    transition: all 0.2s ease-in-out;
}

.markets-tab:hover {
    background-color: var(--mintbet-accent);
}

/* Racing event cards */
.racing-event {
    transition: all 0.2s ease-in-out;
}

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

/* Bet slip styling */
.bet-slip {
    background-color: var(--mintbet-green);
    color: white;
}

/* 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;
    }
    
    /* Mobile sidebar adjustments */
    aside {
        position: fixed;
        left: -100%;
        transition: left 0.3s ease-in-out;
        z-index: 40;
    }
    
    aside.mobile-open {
        left: 0;
    }
    
    /* Mobile bet slip adjustments */
    .bet-slip {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        z-index: 30;
    }
}

@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(--mintbet-green);
    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(--mintbet-green);
    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;
    }
}

/* Custom scrollbar for sidebar */
aside nav::-webkit-scrollbar {
    width: 4px;
}

aside nav::-webkit-scrollbar-track {
    background: transparent;
}

aside nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

aside nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}