/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ===== LAYOUT CONTAINERS ===== */
.container-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-wrapper--lg {
    max-width: 1400px;
}

.container-wrapper--xl {
    max-width: 1600px;
}

/* ===== HEADER STYLES ===== */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: #28a745 !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: #218838 !important;
}

.navbar-nav .nav-link {
    color: #495057 !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-outline-dark {
    color: #343a40;
    border-color: #343a40;
}

.btn-outline-dark:hover {
    background-color: #343a40;
    border-color: #343a40;
}

/* ===== CARD STYLES ===== */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease;
    background: #fff;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* ===== COURT CARD STYLES ===== */
.court-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.court-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.court-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.court-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ===== CLUB CARD STYLES ===== */
.club-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.club-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.club-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.club-info {
    flex: 1;
}

.club-info h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.club-info p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.875rem;
}

.club-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===== PROFILE STYLES ===== */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* ===== STATS CARDS ===== */
.stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* ===== FORM STYLES ===== */
.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ===== TABLE STYLES ===== */
.table {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.table-hover tbody tr:hover {
    background-color: rgba(40, 167, 69, 0.05);
}

/* ===== BADGE STYLES ===== */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-primary {
    background-color: #007bff !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* ===== ALERT STYLES ===== */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ===== PAGINATION STYLES ===== */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    color: #007bff;
    padding: 0.5rem 0.75rem;
}

.page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #495057;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.dropdown-item i {
    width: 16px;
    margin-right: 0.5rem;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #343a40;
    color: #ffffff;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: #e9ecef;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #28a745;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li a {
    color: #e9ecef;
}

.footer-links li a:hover {
    color: #28a745;
}

.footer-social a {
    color: #e9ecef;
    margin-right: 1rem;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #28a745;
}

.footer p {
    color: #e9ecef;
}

.footer .text-muted {
    color: #adb5bd !important;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.2s ease;
    height: 100%;
}

.feature-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* ===== UTILITY CLASSES ===== */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow-md {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container-wrapper--xl {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .container-wrapper--lg {
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container-wrapper {
        padding: 0 1rem;
    }

    .main-content {
        padding: 1rem 0;
    }

    .card-body {
        padding: 1rem;
    }

    .club-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .club-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .container-wrapper {
        padding: 0 0.75rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== PRINT STYLES ===== */
@media print {
    .main-header,
    .footer,
    .btn,
    .dropdown {
        display: none !important;
    }

    .container-wrapper {
        max-width: none;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
