/* Custom Styles for Tanza Basketball League */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0033a0;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #002270;
}

/* Basketball Court Background Pattern */
.basketball-court {
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 0%, transparent 15%, rgba(255,255,255,0.05) 15%, rgba(255,255,255,0.05) 16%, transparent 16%),
        linear-gradient(0deg, transparent 49%, rgba(255,255,255,0.05) 49%, rgba(255,255,255,0.05) 51%, transparent 51%),
        linear-gradient(90deg, transparent 49%, rgba(255,255,255,0.05) 49%, rgba(255,255,255,0.05) 51%, transparent 51%);
    background-size: 100% 100%, 100px 100px, 100px 100px;
    opacity: 0.3;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 200, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 200, 0, 0); }
}

.pulse-animation {
    animation: pulse-glow 2s infinite;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Card Hover Effects */
.hover-card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Mobile Table Cards */
@media (max-width: 768px) {
    .mobile-card-table thead {
        display: none;
    }
    
    .mobile-card-table tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mobile-card-table tr {
        display: flex;
        flex-direction: column;
        background: white;
        border-radius: 0.75rem;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
    }
    
    .mobile-card-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .mobile-card-table td:last-child {
        border-bottom: none;
    }
    
    .mobile-card-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.875rem;
        color: #64748b;
        margin-right: 1rem;
    }
}

/* Section Dividers */
.curve-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.curve-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.curve-divider .shape-fill {
    fill: #f8fafc;
}

/* Custom Gradients */
.bg-gradient-brand {
    background: linear-gradient(135deg, #0033a0 0%, #001c5b 100%);
}

.text-gradient-brand {
    background: linear-gradient(to right, #0033a0, #d9272d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollable Teams Container */
.scrollable-teams-container {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0033a0 #f1f5f9;
}

.scrollable-teams-container::-webkit-scrollbar {
    width: 8px;
}

.scrollable-teams-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.scrollable-teams-container::-webkit-scrollbar-thumb {
    background: #0033a0;
    border-radius: 4px;
}

.scrollable-teams-container::-webkit-scrollbar-thumb:hover {
    background: #002270;
}

/* Fixed header for teams table */
.teams-table-header {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}