/* =========================================
   RESET
========================================= */

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


/* =========================================
   BODY
========================================= */

body {
    font-family: Georgia, "Times New Roman", serif;

    background:
        linear-gradient(
            135deg,
            #eef4ff,
            #ffffff,
            #e7f7ff
        );

    color: #172554;

    min-height: 100vh;
}


/* =========================================
   MAIN PAGE
========================================= */

.tournament-page {
    min-height: 100vh;

    padding: 60px 20px;
}


.tournament-container {
    max-width: 1150px;

    margin: 0 auto;
}


/* =========================================
   TOURNAMENT HEADER
========================================= */

.tournament-header {
    text-align: center;

    margin-bottom: 45px;
}


.tournament-icon {
    width: 80px;
    height: 80px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #dbeafe;

    font-size: 38px;

    box-shadow:
        0 8px 25px rgba(37, 99, 235, 0.12);
}


.section-label {
    margin-bottom: 8px;

    color: #2563eb;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 2px;
}


.tournament-header h1 {
    margin-bottom: 15px;

    color: #172554;

    font-size: 44px;

    line-height: 1.2;
}


.description {
    max-width: 700px;

    margin: 0 auto;

    color: #64748b;

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================
   TOURNAMENT INFORMATION
========================================= */

.tournament-info {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 15px;

    margin-bottom: 55px;
}


.info-card {
    min-height: 110px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 12px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.07);
}


.info-icon {
    font-size: 21px;
}


.info-label {
    display: block;

    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}


.info-card strong {
    color: #334155;

    font-size: 14px;
}


.status {
    color: #2563eb !important;

    text-transform: capitalize;
}


/* =========================================
   TEAMS SECTION
========================================= */

.teams-section {
    margin-top: 20px;
}


.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 25px;
}


.section-heading h2 {
    color: #172554;

    font-size: 30px;
}


.team-count {
    padding: 8px 15px;

    border-radius: 20px;

    background: #dbeafe;

    color: #1d4ed8;

    font-size: 13px;

    font-weight: bold;
}


/* =========================================
   TEAMS GRID
========================================= */

.teams-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}


/* =========================================
   TEAM CARD
========================================= */

.team-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 20px;

    min-height: 130px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    text-decoration: none;

    color: inherit;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


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

    border-color: #93c5fd;

    box-shadow:
        0 15px 35px rgba(37, 99, 235, 0.13);
}


/* =========================================
   TEAM LOGO
========================================= */

.team-logo {
    width: 75px;

    height: 75px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #eff6ff;

    border: 2px solid #dbeafe;

    font-size: 32px;
}


.team-logo img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}


/* =========================================
   TEAM INFORMATION
========================================= */

.team-information {
    flex: 1;
}


.team-information h3 {
    margin-bottom: 6px;

    color: #172554;

    font-size: 21px;
}


.team-information p {
    margin-bottom: 10px;

    color: #64748b;

    font-size: 14px;
}


.view-team {
    color: #2563eb;

    font-size: 14px;

    font-weight: bold;
}


.view-team span {
    margin-left: 5px;

    transition: margin-left 0.2s ease;
}


.team-card:hover .view-team span {
    margin-left: 10px;
}


/* =========================================
   RIGHT ARROW
========================================= */

.team-arrow {
    color: #2563eb;

    font-size: 24px;

    transition:
        transform 0.2s ease;
}


.team-card:hover .team-arrow {
    transform: translateX(5px);
}


/* =========================================
   NO TEAMS
========================================= */

.no-teams {
    padding: 65px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.07);
}


.no-teams-icon {
    width: 70px;

    height: 70px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    font-size: 32px;
}


.no-teams h3 {
    margin-bottom: 10px;

    color: #172554;

    font-size: 23px;
}


.no-teams p {
    color: #64748b;

    font-size: 15px;
}


/* =========================================
   BACK SECTION
========================================= */

.back-section {
    margin-top: 40px;

    text-align: center;
}


.back-button {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 10px;

    background: #ffffff;

    border: 1px solid #cbd5e1;

    color: #334155;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;

    transition: 0.2s ease;
}


.back-button:hover {
    background: #eff6ff;

    border-color: #93c5fd;

    color: #1d4ed8;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .tournament-info {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 750px) {

    .tournament-page {
        padding: 40px 15px;
    }


    .tournament-header h1 {
        font-size: 34px;
    }


    .tournament-info {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .teams-grid {
        grid-template-columns: 1fr;
    }


    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

}


@media (max-width: 500px) {

    .tournament-info {
        grid-template-columns: 1fr;
    }


    .team-card {
        padding: 18px;

        gap: 14px;
    }


    .team-logo {
        width: 60px;

        height: 60px;

        font-size: 26px;
    }


    .team-information h3 {
        font-size: 18px;
    }


    .team-arrow {
        font-size: 20px;
    }

}


/* ==========================================
   TOURNAMENT MATCHES
========================================== */

.matches-section {
    margin-top: 55px;
}

.match-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 8px 15px;

    border-radius: 20px;

    background: #eef4ff;
    color: #2864e6;

    font-size: 14px;
    font-weight: 700;
}


/* MATCH GRID */

.matches-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 22px;

    margin-top: 25px;
}


/* MATCH CARD */

.tournament-match-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #dbe4f0;

    border-radius: 18px;

    padding: 25px;

    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.06);

    transition: 0.2s ease;
}

.tournament-match-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}


/* ROUND */

.match-round {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    background: #f1f5f9;

    color: #475569;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;
}


/* TEAMS */

.match-teams {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin: 25px 0;
}

.match-team {
    flex: 1;

    text-align: center;

    color: #102a5c;

    font-size: 17px;

    font-weight: 700;
}

.match-vs {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 45px;
    height: 45px;

    border-radius: 50%;

    background: #2864e6;

    color: white;

    font-size: 12px;

    font-weight: 700;
}


/* MATCH INFORMATION */

.match-details {
    display: flex;

    flex-direction: column;

    gap: 9px;

    padding-top: 18px;

    border-top: 1px solid #e5eaf1;

    color: #64748b;

    font-size: 14px;
}


/* STATUS */

.match-status {
    margin-top: 18px;
}

.match-status span {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    background: #eaf7ef;

    color: #21834b;

    font-size: 12px;

    font-weight: 700;
}


/* VIEW MATCH BUTTON */

.view-match-button {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    margin-top: 20px;

    padding: 12px 15px;

    border-radius: 10px;

    background: #2864e6;

    color: white;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    transition: 0.2s ease;
}

.view-match-button:hover {
    background: #174fc5;
}


/* NO MATCHES */

.no-matches {
    margin-top: 25px;

    padding: 45px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dbe4f0;

    border-radius: 18px;
}

.no-matches-icon {
    font-size: 40px;

    margin-bottom: 15px;
}

.no-matches h3 {
    margin-bottom: 8px;

    color: #102a5c;
}

.no-matches p {
    color: #64748b;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 750px) {

    .matches-grid {
        grid-template-columns: 1fr;
    }

    .match-teams {
        gap: 8px;
    }

    .match-team {
        font-size: 15px;
    }

    .match-vs {
        min-width: 40px;
        height: 40px;
    }
}

/* ==========================================
   TEAM DETAILS PAGE
========================================== */

.team-details-page {
    max-width: 1100px;
    margin: 0 auto;
}


/* ==========================================
   TEAM HEADER
========================================== */

.team-details-header {
    display: flex;
    align-items: center;
    gap: 30px;

    padding: 30px;

    margin-bottom: 30px;

    background: #ffffff;

    border: 1px solid #dbe4f0;
    border-radius: 20px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.team-logo-large {
    width: 120px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 18px;

    background: #eef4ff;

    flex-shrink: 0;
}

.team-logo-large img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.team-logo-large span {
    font-size: 55px;
}

.team-header-info h1 {
    margin: 8px 0;

    color: #102a5c;

    font-size: 34px;
}

.team-header-info p {
    margin: 0;

    color: #64748b;

    font-size: 16px;
}


/* ==========================================
   TEAM INFORMATION
========================================== */

.team-info-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 45px;
}

.team-info-card {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #dbe4f0;

    border-radius: 16px;

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

.info-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eef4ff;

    font-size: 23px;
}

.info-label {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;
}

.team-info-card h3 {
    margin: 0;

    color: #102a5c;

    font-size: 17px;
}


/* ==========================================
   PLAYERS SECTION
========================================== */

.players-section {
    margin-top: 20px;
}

.player-count {
    padding: 8px 15px;

    border-radius: 20px;

    background: #eef4ff;

    color: #2864e6;

    font-size: 14px;

    font-weight: 700;
}

.players-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    margin-top: 25px;
}


/* ==========================================
   PLAYER CARD
========================================== */

.player-card {
    display: flex;

    align-items: center;

    gap: 15px;

    position: relative;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #dbe4f0;

    border-radius: 16px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);

    transition: 0.2s ease;
}

.player-card:hover {
    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


/* PLAYER NUMBER */

.player-number {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #2864e6;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;
}


/* PLAYER INFORMATION */

.player-info {
    flex: 1;
}

.player-info h3 {
    margin: 0 0 6px;

    color: #102a5c;

    font-size: 17px;
}

.player-info p {
    margin: 3px 0;

    color: #64748b;

    font-size: 13px;
}


/* ==========================================
   PLAYER ROLE
========================================== */

.player-role {
    padding: 6px 10px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;
}

.captain-role {
    background: #fff4d6;

    color: #9a6700;
}

.vice-role {
    background: #eef4ff;

    color: #2864e6;
}


/* ==========================================
   NO PLAYERS
========================================== */

.no-players {
    margin-top: 25px;

    padding: 45px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dbe4f0;

    border-radius: 18px;
}

.no-players > div {
    margin-bottom: 10px;

    font-size: 40px;
}

.no-players h3 {
    margin: 0 0 8px;

    color: #102a5c;
}

.no-players p {
    margin: 0;

    color: #64748b;
}


/* ==========================================
   BACK BUTTON
========================================== */

.back-section {
    margin-top: 35px;

    padding-top: 25px;

    border-top: 1px solid #e1e7ef;
}

.back-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    border-radius: 10px;

    background: #eef2f7;

    color: #173d7a;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    transition: 0.2s ease;
}

.back-button:hover {
    background: #dfe6ef;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 800px) {

    .team-details-header {
        flex-direction: column;

        text-align: center;
    }

    .team-info-grid {
        grid-template-columns: 1fr;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .team-details-header {
        padding: 22px;
    }

    .team-logo-large {
        width: 95px;
        height: 95px;
    }

    .team-header-info h1 {
        font-size: 27px;
    }

    .player-card {
        padding: 15px;
    }

    .player-role {
        display: none;
    }

}


/* ==========================================
   TEAM MATCHES
========================================== */

.team-matches-section {
    margin-top: 50px;
}

.team-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.team-match-card {
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 24px;

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

    transition: 0.2s ease;
}

.team-match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}


/* ROUND */

.team-match-card .match-round {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    background: #f1f5f9;
    color: #475569;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
}


/* TEAMS */

.team-match-teams {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    margin: 25px 0;
}

.team-match-teams strong {
    flex: 1;

    text-align: center;

    color: #102a5c;

    font-size: 16px;
}

.team-match-vs {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #2864e6;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


/* MATCH INFORMATION */

.team-match-info {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding-top: 17px;

    border-top: 1px solid #e5eaf1;

    color: #64748b;

    font-size: 13px;
}


/* STATUS */

.team-match-status {
    display: inline-block;

    margin-top: 16px;

    padding: 6px 11px;

    border-radius: 20px;

    background: #eaf7ef;
    color: #21834b;

    font-size: 11px;
    font-weight: 700;
}


/* VIEW MATCH */

.team-match-card .view-match-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    box-sizing: border-box;

    margin-top: 18px;
    padding: 12px;

    border-radius: 10px;

    background: #2864e6;
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition: 0.2s ease;
}

.team-match-card .view-match-button:hover {
    background: #174fc5;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 750px) {

    .team-matches-grid {
        grid-template-columns: 1fr;
    }

    .team-match-teams {
        gap: 8px;
    }

    .team-match-teams strong {
        font-size: 14px;
    }

    .team-match-vs {
        width: 38px;
        height: 38px;
    }
}


.teams-section {
    margin-top: 40px;
}

.teams-section h2 {
    color: #102f5b;
    margin-bottom: 25px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.team-card {
    display: block;
    background: white;
    border: 1px solid #dce3ed;
    border-radius: 16px;
    padding: 25px;
    text-decoration: none;
    transition: 0.2s;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(20, 50, 90, 0.12);
}

.team-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-logo {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5fa;
    border-radius: 50%;
    font-size: 35px;
}

.team-info {
    text-align: center;
}

.team-info h3 {
    color: #102f5b;
    margin-bottom: 10px;
}

.team-info span {
    color: #2864e8;
    font-weight: bold;
}

.no-teams {
    color: #71829c;
}

