﻿body {
    color: #e5e7eb;
    background:
    /* Stadium floodlights left */
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.12), transparent 60%),
    /* Stadium floodlights right */
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.1), transparent 60%),
    /* Deep night gradient */
    linear-gradient(180deg, rgba(5,15,35,1), rgba(3,10,22,1));
    background-attachment: fixed;
    background-repeat: no-repeat;
}

    /* Centre circle + halfway line only */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background:
        /* Centre circle */
        radial-gradient(circle, transparent 0, transparent 148px, rgba(255,255,255,0.06) 150px, transparent 152px) center center / 300px 300px no-repeat,
        /* Halfway line */
        linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)) center center / 100% 2px no-repeat;
    }


.hero-gradient {
    position: relative;
    background: linear-gradient( 135deg, #1e3a8a 0%, /* deep indigo */
    #0f172a 100% /* same as page background */
    );
    overflow: hidden;
    padding-bottom: 6rem;
}
    .hero-gradient::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top, rgba(255,255,255,0.15), transparent 60%);
        pointer-events: none;
    }
    .hero-gradient::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/images/pitch-texture.png');
        background-size: cover;
        opacity: 0.03;
        pointer-events: none;
    }

.hero-accent {
    color: #B8FFD9; /* match elite subtitle */
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.feature-card {
    background: linear-gradient(145deg, rgba(2,33,10,0.15), rgba(7,69,26,0.05)); /* soft green hint */
    border-radius: 1.75rem; /* match elite-card */
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

.feature-surface {
    background: rgba(2,33,10,0.15); /* subtle green layer */
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.section-highlight {
    background: rgba(2,33,10,0.08); /* subtle green glow */
    border-radius: 1.5rem;
}
.clean-list {
    background: rgba(255,255,255,0.12);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

    .clean-list .list-group-item + .list-group-item {
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    /* Fix list-group readability inside clean-list */
    .clean-list .list-group-item {
        background: transparent; /* let parent show through */
        color: #e5e7eb; /* readable light text */
        border: none;
    }

        .clean-list .list-group-item i {
            color: #B8FFD9; /* match elite green */
            vertical-align: middle;
        }

.btn-outline-light {
    opacity: 0.85;
}
@media (max-width: 768px) {
    .hero-gradient {
        padding-bottom: 3rem;
    }

        .hero-gradient h1 {
            font-size: 2.2rem;
        }
}



/* ============================================================
   TEAMS & FLAGS
============================================================ */
.team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .team.flag-right {
        flex-direction: row-reverse;
    }

.team-name {
    font-size: 1em;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .team-name a {
        text-decoration: none;
    }

.team-link {
    cursor: pointer;
}

.team-link-text {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

    /* underline halves */
    .team-link-text::before,
    .team-link-text::after {
        content: "";
        position: absolute;
        bottom: -3px;
        height: 2px;
        width: 0;
        background-color: var(--bs-dark);
        transition: width 0.25s ease;
    }

    /* left → centre */
    .team-link-text::before {
        left: 50%;
    }

    /* right → centre */
    .team-link-text::after {
        right: 50%;
    }

    /* hover */
    .team-link-text:hover::before,
    .team-link-text:hover::after {
        width: 50%;
    }

.team-link-text {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 2px;
    background-position: center bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s cubic-bezier(.4,0,.2,1);
}

    .team-link-text:hover {
        background-size: 100% 2px;
    }

/* Flags */
.flag-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: inline-block !important;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #ddd;
    box-shadow: 0 0 2px rgba(0,0,0,0.1);
}
.team:not(.flag-right) .flag-icon {
    margin-right: 2px;
}

.team.flag-right .flag-icon {
    margin-left: 2px;
}

/* Flag variants */
.flag-icon-en {
    background-image: url('/images/flags/gb-en.png');
}

.flag-icon-sc {
    background-image: url('/images/flags/gb-sc.jpg');
}

.flag-icon-wl {
    background-image: url('/images/flags/gb-wl.jpg');
}



/* Inactive tabs */
.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.6); /* light text for inactive tabs */
    transition: color 0.2s;
}

    /* Hover effect for inactive tabs */
    .nav-tabs .nav-link:hover {
        color: rgba(255, 255, 255, 0.85);
    }

    /* Active tab */
    .nav-tabs .nav-link.active {
        color: #000 !important; /* bright white */
        font-weight: 600;
    }
    .nav-tabs .nav-link.active {
        border-color: #0d6efd #0d6efd transparent; /* Bootstrap primary color */
    }


/* Alternate fixture layout */
.fixture-row {
    display: flex;
    align-items: center;
}

@media (max-width: 575.98px) {
    .fixture-row {
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }

        .fixture-row .score {
            width: 100%;
            order: 2;
            text-align: center;
        }

        .fixture-row .home-team {
            order: 1;
            width: 50%;
        }

        .fixture-row .away-team {
            order: 3;
            width: 50%;
            text-align: right;
        }
    .fixture-events {
        flex-direction: column;
        align-items: stretch;
    }

        .fixture-events > div {
            text-align: left !important;
            padding: 0.25rem 0;
        }
}
.match-icon {
    display: inline-block;
    width: 0.5rem;
    height: 0.75rem;
}

    .match-icon.ball {
        transform: scale(0.85);
    }

.home-team {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 3px;
}

.away-team {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    margin-left: 3px;
}

.score {
    white-space: nowrap;
    min-width: 30px;
    text-align: center;
}


.info-pill {
    background: #EDEEEF;
    padding: 2px 10px;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stadium-photo {
    max-height: 300px;
}

.badge-icon {
    display: inline-block !important;
    overflow: hidden;
    flex-shrink: 0;
    width: 1.6875rem;
    height: 1.6875rem;
    text-align: center;
}

    .badge-icon img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }


/* DESKTOP — EXACTLY your original layout */
.fixture-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
}

    /* Prevent flex children from breaking grid */
    .fixture-grid > * {
        min-width: 0;
    }

.fixture-time {
    position: absolute;
    left: 20px;
    text-align: left;
    font-size: 0.9rem;
    color: #6c757d;
}

.fixture-home {
    justify-self: end;
    grid-column: 1;
}

.fixture-score {
    justify-self: center;
    grid-column: 2;
    white-space: nowrap;
}

.fixture-away {
    justify-self: start;
    grid-column: 3;
}

/* =========================
   MOBILE ONLY
   ========================= */
@media (max-width: 576px) {
    .fixture-grid {
        grid-template-columns: 1fr auto 1fr;
        row-gap: 4px;
    }

    .fixture-time {
        grid-column: 1 / -1;
        text-align: center;
        font-size: 0.8rem;
        color: #6c757d;
        margin-top: 2px;
    }

    .fixture-home {
        text-align: right;
    }

    .fixture-score {
        white-space: nowrap;
        font-weight: 600;
    }

    .fixture-away {
        text-align: left;
    }
}


/* =========================================
   MOBILE FIX FOR TEAM FIXTURE VIEW ONLY
   ========================================= */
@media (max-width: 576px) {

    /* Override your inline 5-column grid */
    .mb-3 > .d-grid {
        grid-template-columns: 1fr auto 1fr !important;
        row-gap: 4px;
    }

        /* Move date to full width on top */
        .mb-3 > .d-grid > div:first-child {
            grid-column: 1 / -1;
            text-align: center !important;
            font-size: 0.8rem;
            margin-bottom: 2px;
        }

    /* Keep teams readable */
    .mb-3 .text-end {
        text-align: right !important;
    }

    .mb-3 .text-start {
        text-align: left !important;
    }

    /* Score stays centered */
    .mb-3 .fw-bold {
        white-space: nowrap;
        font-size: 0.95rem;
    }
}

/* =========================
   Squad Card Styling
   ========================= */

.position-section {
    margin-bottom: 3rem;
}

.position-heading {
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: #fff;
    display: inline-block;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
}

.player-tile {
    transition: transform 0.25s, box-shadow 0.25s;
    border-radius: 12px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem;
    position: relative;
}

    .player-tile:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.2);
    }

.player-number {
    width: 60px;
    height: 60px;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 60px;
}

.player-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.player-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.player-position {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Captain badge */
.captain-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: gold;
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.player-stats i {
    font-size: 0.9rem;
    vertical-align: middle;
}

.player-stats span {
    font-size: 0.9rem;
}

.player-stats {
    gap: 0.5rem;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

    .stat-badge i {
        font-size: 0.9rem;
    }

    .stat-badge:hover {
        transform: translateY(-2px);
    }

/* Individual stat colors */
.goal-badge {
    background-color: #d4edda; /* light green */
    color: #155724; /* dark green */
}

.yellow-card-badge {
    background-color: #fff3cd; /* light yellow */
    color: #856404; /* dark yellow */
}

.red-card-badge {
    background-color: #f8d7da; /* light red */
    color: #721c24; /* dark red */
}/* =========================
   Position Sections
   ========================= */
.position-section {
    padding-top: 10px;
}

.position-heading {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #fff;
    border-left: 4px solid #fff;
    padding-left: 10px;
}
