/* =========================================================
   TOURNAMENTS PAGE
   NIT NAGALAND VOLLEYBALL
========================================================= */

.tournaments-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 45px 24px 60px;
    box-sizing: border-box;
}


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

.tournaments-header {
    text-align: center;
    margin-bottom: 40px;
}

.header-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #2563eb;

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

    letter-spacing: 2px;
}

.tournaments-header h1 {
    margin: 0;

    color: #172033;

    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
}

.tournaments-header p {
    margin: 12px auto 0;

    max-width: 650px;

    color: #667085;

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   TOURNAMENT GRID
========================================================= */

.tournament-grid {
    display: grid;

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

    gap: 26px;
}


/* =========================================================
   TOURNAMENT CARD
========================================================= */

.tournament-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

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

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

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

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.12);
}


/* =========================================================
   IMAGE AREA
========================================================= */

.tournament-image {
    height: 175px;

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

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );

    border-bottom: 1px solid #e5e7eb;
}

.volleyball-icon {
    width: 90px;
    height: 90px;

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

    border-radius: 50%;

    background: #ffffff;

    font-size: 46px;

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


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

.tournament-info {
    padding: 25px;
}


/* =========================================================
   STATUS
========================================================= */

.tournament-status {
    margin-bottom: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.7px;
}

.status-approved {
    background: #ecfdf3;
    color: #15803d;
}

.status-ongoing {
    background: #eff6ff;
    color: #2563eb;
}

.status-completed {
    background: #f2f4f7;
    color: #475467;
}

.status-pending {
    background: #fffaeb;
    color: #b54708;
}

.status-draft {
    background: #f2f4f7;
    color: #667085;
}

.status-cancelled {
    background: #fef3f2;
    color: #d92d20;
}


/* =========================================================
   NAME
========================================================= */

.tournament-name {
    margin: 0 0 10px;

    color: #172033;

    font-size: 23px;
    font-weight: 800;

    line-height: 1.3;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.tournament-description {
    margin: 0 0 22px;

    color: #667085;

    font-size: 14px;
    line-height: 1.65;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   DETAILS
========================================================= */

.tournament-detail {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 11px 0;

    border-top: 1px solid #f0f2f5;
}

.detail-icon {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

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

    border-radius: 9px;

    background: #f8fafc;

    font-size: 16px;
}

.tournament-detail > div {
    min-width: 0;
}

.detail-label {
    display: block;

    margin-bottom: 3px;

    color: #98a2b3;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.detail-value {
    display: block;

    color: #344054;

    font-size: 13px;
    font-weight: 650;

    overflow-wrap: anywhere;
}


/* =========================================================
   BUTTONS
========================================================= */

.tournament-actions {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 10px;

    margin-top: 22px;
}


.tournament-button {
    min-height: 46px;

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

    gap: 7px;

    padding: 0 12px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 750;

    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}


/* VIEW */

.view-button {
    background: #2563eb;

    border: 1px solid #2563eb;

    color: #ffffff;
}

.view-button:hover {
    background: #1d4ed8;

    border-color: #1d4ed8;

    transform: translateY(-1px);
}


/* STANDINGS */

.standings-button {
    background: #ffffff;

    border: 1px solid #2563eb;

    color: #2563eb;
}

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

    transform: translateY(-1px);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-tournaments {
    padding: 75px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

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

.empty-icon {
    width: 75px;
    height: 75px;

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

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #eff6ff;

    font-size: 34px;
}

.empty-tournaments h2 {
    margin: 0 0 10px;

    color: #172033;

    font-size: 24px;
}

.empty-tournaments p {
    max-width: 520px;

    margin: 0 auto;

    color: #667085;

    font-size: 14px;
    line-height: 1.6;
}


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

@media (max-width: 850px) {

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

    .tournament-card {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

}


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

@media (max-width: 600px) {

    .tournaments-page {
        padding: 28px 12px 45px;
    }


    .tournaments-header {
        margin-bottom: 28px;
    }


    .tournaments-header h1 {
        font-size: 29px;
    }


    .tournaments-header p {
        font-size: 14px;
    }


    .tournament-image {
        height: 145px;
    }


    .volleyball-icon {
        width: 75px;
        height: 75px;

        font-size: 38px;
    }


    .tournament-info {
        padding: 20px;
    }


    .tournament-name {
        font-size: 21px;
    }


    .tournament-description {
        font-size: 13px;
    }


    /*
       Keep buttons side-by-side
       on normal mobile screens.
    */

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


    .tournament-button {
        min-height: 44px;

        padding: 0 8px;

        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .tournaments-page {
        padding-left: 8px;
        padding-right: 8px;
    }


    .tournament-info {
        padding: 17px;
    }


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


    .tournament-button {
        width: 100%;
    }

}