@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #0d7f28;
    --secondary: #ffee12;
    --accent: #03b7f4;
    --dark: #0f356b;
    --darker: #08244a;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--darker);
    background-image:
        radial-gradient(circle at 15% 25%, rgba(3, 183, 244, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(101, 178, 12, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 53, 107, 0.3) 0%, transparent 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logos {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.8rem;
    }
}


/* Hero */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(to bottom, transparent, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-box {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
}

.hero-logo {
    height: 180px;
    object-fit: contain;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #27ae60, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero p {
    font-size: 1.4rem;
    color: #eee;
    font-weight: 300;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-box {
        flex-direction: column;
        gap: 20px;
    }

    .hero-logo {
        height: 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Page Titles */
.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Cards & Sections */
.section-title {
    margin: 40px 0 20px;
    font-size: 2rem;
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--primary);
    border-bottom: 2px solid var(--glass-border);
    font-weight: 600;
    white-space: nowrap;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.pos {
    font-weight: 800;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .card {
        padding: 15px;
        border-radius: 10px;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .pos {
        padding-left: 5px;
        min-width: 35px;
    }

    .table-container {
        margin-top: 10px;
    }

    /* Team name column adjustment */
    td:nth-child(2) {
        white-space: normal;
        min-width: 150px;
    }
}



/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ccc;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #219150;
    transform: translateY(-2px);
}

/* Series Switcher */
.series-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.series-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.series-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Match Grid */
.match-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    text-align: center;
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.match-details {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 500px) {
    .match-card {
        padding: 15px 10px;
    }

    .team-logo {
        width: 50px;
        height: 50px;
    }

    .team-info strong {
        font-size: 0.8rem;
    }

    .score {
        font-size: 1.5rem;
    }
}


/* Admin Specific */
.admin-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    vertical-align: middle;
}