/*
 * DOC'S Futbol Club Design System
 * Colors: White (#FFFFFF), Dark Blue (#1A457C), Light Blue / Gray (#9AC0D8)
 */
:root {
    --primary-blue: #1A457C;
    --primary-blue-hover: #123159;
    --secondary-blue: #9AC0D8;
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --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);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.5;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue-hover);
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-blue);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #8ab0c8;
    color: var(--text-dark);
}

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

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

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(154, 192, 216, 0.3);
}

/* Cards (Glassmorphism) */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Navigation - Public */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--primary-blue);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--secondary-blue);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-blue);
    cursor: pointer;
}

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a:not(.btn) {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .btn-mobile-visible {
        margin-left: auto;
        padding: 0.5rem 1rem;
    }
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-actions {
        width: 100%;
        flex-direction: column;
    }
    .page-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Private Layout - Sidebar */
.app-container {
    display: flex;
    min-height: 100vh;
}

.mobile-header, .mobile-toggle {
    display: none;
}

.sidebar {
    width: 280px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 50;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.sidebar-header img {
    max-width: 120px;
    filter: brightness(0) invert(1); /* Makes logo white */
}

.sidebar-menu {
    list-style: none;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sidebar-menu i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
}

.main-content {
    flex-grow: 1;
    background-color: var(--off-white);
    padding: 2rem;
    overflow-y: auto;
}

/* Mobile Sidebar Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        position: fixed;
        left: -280px;
        height: 100vh;
    }
    .sidebar.open {
        left: 0;
    }
    .main-content {
        padding-top: 5rem;
    }
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 4rem;
        background: var(--white);
        box-shadow: var(--shadow-sm);
        display: flex;
        align-items: center;
        padding: 0 1.5rem;
        z-index: 40;
    }
    .mobile-toggle {
        display: block;
    }
    .mobile-header-logo img {
        height: 40px;
        margin-left: 1rem;
    }
}

/* Tables */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background-color: #f1f5f9;
    color: var(--primary-blue);
    font-weight: 600;
}

.table tr:hover td {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success { background-color: #dcfce7; color: #166534; }
.badge-warning { background-color: #fef08a; color: #854d0e; }
.badge-primary { background-color: #e0f2fe; color: var(--primary-blue); }

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(26, 69, 124, 0.7), rgba(26, 69, 124, 0.7)), url('/public/img/hero.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}
