/* General Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: #004d40; /* Dark Teal - Kwara United colors */
    color: #ffffff;
    padding: 1rem 0;
    border-bottom: 5px solid #ffc107; /* Gold accent */
}

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

.main-header .logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #ffc107;
}

/* Main Content Styles */
main.container {
    padding: 20px 20px;
    min-height: 80vh;
}

/* Footer Styles */
.main-footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 20px;
}

/* Utility Classes */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.mr-10 { margin-right: 10px; }
.mr-20 { margin-right: 20px; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Forms and Buttons */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    background: #004d40;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #00796b;
}

.btn-primary {
    background: #ffc107;
    color: #333;
}

.btn-primary:hover {
    background: #ffeb3b;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

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

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Fixture List Styles */
.fixture-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fixture-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.fixture-card:hover {
    transform: translateY(-5px);
}

.fixture-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee; /* Placeholder background */
}

.fixture-card-content {
    padding: 15px;
}

.fixture-card-content h3 {
    margin-top: 0;
    color: #004d40;
}

.fixture-card-content p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.fixture-card-content .match-info {
    margin-top: 10px;
    font-weight: bold;
}

.fixture-card-content .match-info span {
    display: block;
}

/* Match Details Page Styles */
.match-details-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.match-details-header h2 {
    color: #004d40;
    margin-bottom: 10px;
}

.match-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.match-info-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.match-info-section h3 {
    border-bottom: 2px solid #ffc107;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #004d40;
}

.ticket-category-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.ticket-category-table th, .ticket-category-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.ticket-category-table th {
    background-color: #f2f2f2;
    color: #333;
}

.sold-out {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 10px;
    }

    .main-nav ul li {
        margin: 0 10px;
    }

    .match-details-grid {
        grid-template-columns: 1fr;
    }
}

/* HEADER */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);

    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* FLEX */
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo a {
    font-size: 20px;
    font-weight: 800;
    color: #009900;
    text-decoration: none;
}

/* NAV */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
}

/* NORMAL LINK */
.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #009900;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* PRIMARY BUTTON (Swimming) */
.nav-btn {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* OUTLINE BUTTON (Admin) */
.nav-outline {
    border: 2px solid #009900;
    padding: 8px 14px;
    border-radius: 8px;
    color: #009900;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.nav-outline:hover {
    background: #009900;
    color: #fff;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* VERY IMPORTANT */
}


.main-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap; /* prevents breaking */
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: row;
    }
}


body {
    overflow-x: hidden;
}