:root {
    --primary-color: #2563eb;
    --secondary-color: #16a34a;
    --accent-color: #ea580c;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 40px;
    --spacing-6: 48px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    scroll-behavior: smooth;
    /* Smooth scrolling for anchor links */
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-2);
}


/* Header Styles */

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: var(--spacing-2) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.05);
}


/* Mobile Menu Toggle */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--spacing-1);
    z-index: 1001;
    background: none;
    border: none;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* Navigation Menu */

.nav-menu {
    display: flex;
    gap: var(--spacing-3);
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}


/* Language Switch */

.language-switch {
    display: flex;
    gap: var(--spacing-1);
    flex-wrap: wrap;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}


/* Main Content */

.main-content {
    min-height: calc(100vh - 80px);
    padding: var(--spacing-4) 0;
}


/* Card Styles */

.card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-4);
    margin-bottom: var(--spacing-3);
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    border-bottom: 2px solid var(--neutral-100);
    padding-bottom: var(--spacing-2);
    margin-bottom: var(--spacing-3);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: var(--spacing-1);
}

.card-subtitle {
    color: var(--neutral-600);
    font-size: 0.9rem;
}


/* Form Styles */

.form-group {
    margin-bottom: var(--spacing-3);
    animation: slideInUp 0.5s ease;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-1);
    color: var(--neutral-700);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-2);
    border: 2px solid var(--neutral-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}


/* Button Styles */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2) var(--spacing-4);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #15803d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: #c2410c;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}


/* Grid System */

.grid {
    display: grid;
    gap: var(--spacing-3);
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}


/* Hero Section */

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: var(--spacing-6) 0;
    margin-bottom: var(--spacing-4);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-2);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-4);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.4s both;
}


/* Profile Card */

.profile-card {
    display: flex;
    gap: var(--spacing-3);
    align-items: center;
    padding: var(--spacing-3);
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: var(--spacing-2);
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.profile-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-1);
}

.profile-role {
    color: var(--neutral-600);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-1);
}

.profile-sport {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    display: inline-block;
}


/* Search Bar */

.search-container {
    margin-bottom: var(--spacing-4);
}

.search-input {
    width: 100%;
    padding: var(--spacing-2) var(--spacing-3);
    border: 2px solid var(--neutral-200);
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* File Upload */

.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-1);
    padding: var(--spacing-2) var(--spacing-3);
    background-color: var(--neutral-100);
    border: 2px dashed var(--neutral-300);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.file-upload:hover .file-upload-label {
    background-color: var(--neutral-200);
    border-color: var(--primary-color);
}


/* Alert Messages */

.alert {
    padding: var(--spacing-2) var(--spacing-3);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-2);
    animation: slideInDown 0.5s ease;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fed7aa;
}


/* Animations */

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


/* Loading Animation */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Mobile Overlay */

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}


/* Responsive Design */

@media (max-width: 768px) {
    /* Mobile Header */
    .header-content {
        position: relative;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    /* Mobile Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px var(--spacing-3) var(--spacing-3);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-menu.active {
        right: 0;
        animation: slideInFromRight 0.3s ease;
    }
    .nav-menu.closing {
        animation: slideOutToRight 0.3s ease;
    }
    .nav-link {
        padding: var(--spacing-2) var(--spacing-3);
        margin-bottom: var(--spacing-1);
        border-radius: var(--border-radius);
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateX(-5px);
    }
    /* Mobile Language Switch */
    .language-switch {
        margin-top: var(--spacing-4);
        padding-top: var(--spacing-3);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: center;
        gap: var(--spacing-2);
    }
    .lang-btn {
        flex: 1;
        text-align: center;
        padding: var(--spacing-2);
        font-size: 0.9rem;
    }
    /* Mobile Hero */
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    /* Mobile Grid */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    /* Mobile Profile Card */
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    /* Mobile Card */
    .card {
        padding: var(--spacing-2);
    }
    /* Mobile Buttons */
    .btn {
        width: 100%;
        margin-bottom: var(--spacing-2);
    }
    /* Mobile Form */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }
    /* Mobile Container */
    .container {
        padding: 0 var(--spacing-2);
    }
    /* Mobile Spacing */
    .main-content {
        padding: var(--spacing-2) 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2.5rem;
    }
}


/* Large screens */

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}


/* Print Styles */

@media print {
    .header,
    .nav-menu,
    .language-switch,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }
    .card {
        box-shadow: none;
        border: 1px solid var(--neutral-300);
    }
}


/* Dark mode support */

@media (prefers-color-scheme: dark) {
     :root {
        --neutral-50: #0f172a;
        --neutral-100: #1e293b;
        --neutral-200: #334155;
        --neutral-800: #f1f5f9;
        --neutral-900: #f8fafc;
    }
    body {
        background-color: var(--neutral-50);
        color: var(--neutral-800);
    }
    .card {
        background-color: var(--neutral-100);
        border-color: var(--neutral-200);
    }
}


/* Accessibility */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Focus styles for keyboard navigation */

.btn:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.nav-link:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}


/* High contrast mode */

@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    .card {
        border: 2px solid var(--neutral-400);
    }
}


/* Reduced motion */

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


/* Touch device optimizations */

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .nav-link:hover {
        transform: none;
    }
    .btn {
        padding: var(--spacing-3) var(--spacing-4);
    }
    .nav-link {
        padding: var(--spacing-3);
    }
}