/* =========================================================
   NIT NAGALAND VOLLEYBALL
   RESULTS PAGE
   Professional Responsive Design
========================================================= */


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

.results-page,
.results-page * {
    box-sizing: border-box;
}


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

.results-page {
    width: 100%;
    min-height: calc(100vh - 80px);

    padding: 55px 24px 70px;

    background:
        linear-gradient(
            180deg,
            #f5f8fc 0%,
            #eef3f9 100%
        );

    color: #102a43;
}


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

.results-header {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto 42px;

    text-align: center;
}

.results-label {
    display: inline-flex;
    align-items: center;

    padding: 8px 16px;

    border-radius: 50px;

    background: #e5efff;
    color: #1769e0;

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

    letter-spacing: 2px;
}

.results-header h1 {
    margin: 15px 0 10px;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;

    font-weight: 850;

    color: #102a43;
}

.results-header p {
    margin: 0 auto;

    max-width: 650px;

    font-size: 17px;
    line-height: 1.6;

    color: #687b91;
}


/* =========================================================
   RESULTS CONTAINER
========================================================= */

.results-container {
    width: 100%;
    max-width: 1150px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 24px;
}


/* =========================================================
   RESULT CARD
========================================================= */

.result-card {
    position: relative;

    width: 100%;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #dce5ef;
    border-radius: 24px;

    box-shadow:
        0 10px 30px rgba(16, 42, 67, 0.07);

    overflow: hidden;

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

.result-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: #1769e0;
}

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

    box-shadow:
        0 18px 40px rgba(16, 42, 67, 0.11);
}


/* =========================================================
   TOP SECTION
========================================================= */

.result-top {
    display: flex;

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

    gap: 20px;

    margin-bottom: 18px;
}


/* =========================================================
   COMPLETED BADGE
========================================================= */

.completed-badge {
    display: inline-flex;

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

    min-height: 34px;

    padding: 7px 15px;

    border-radius: 50px;

    background: #e5f7ee;
    color: #087443;

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

    letter-spacing: 1px;
}


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

.round-name {
    padding: 7px 13px;

    border-radius: 8px;

    background: #f0f4f9;

    color: #61758c;

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

    text-transform: uppercase;
    letter-spacing: 0.8px;
}


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

.tournament-name {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 14px 17px;

    margin-bottom: 25px;

    border-radius: 12px;

    background: #f7f9fc;

    border: 1px solid #e5ebf2;

    color: #526b84;

    font-size: 16px;
    font-weight: 750;
}


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

.result-teams {
    width: 100%;

    display: grid;

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

    align-items: center;

    gap: 25px;

    padding: 15px 10px 30px;
}


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

.result-team {
    min-width: 0;

    padding: 20px;

    border-radius: 18px;

    background: #f8fafc;

    border: 1px solid #e5ebf2;

    transition: 0.2s ease;
}

.result-team.team-left {
    text-align: right;
}

.result-team.team-right {
    text-align: left;
}


/* Winner */

.result-team.winner {
    background: #eef7f2;

    border: 1px solid #bde7d0;

    box-shadow:
        inset 0 0 0 1px rgba(8, 116, 67, 0.03);
}

.result-team h2 {
    margin: 0;

    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.2;

    font-weight: 850;

    color: #102a43;

    overflow-wrap: anywhere;
}

.result-team.winner h2 {
    color: #087443;
}


/* =========================================================
   WINNER LABEL
========================================================= */

.winner-label {
    display: inline-flex;

    margin-top: 9px;

    padding: 5px 10px;

    border-radius: 6px;

    background: #d9f2e5;
    color: #087443;

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

    letter-spacing: 1px;
}


/* =========================================================
   VS
========================================================= */

.result-vs {
    width: 64px;
    height: 64px;

    margin: auto;

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

    border-radius: 50%;

    background: #102a43;
    color: #ffffff;

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

    box-shadow:
        0 8px 20px rgba(16, 42, 67, 0.18);
}


/* =========================================================
   SET SCORES SECTION
========================================================= */

.sets-section {
    width: 100%;

    margin-top: 2px;

    padding: 22px;

    border-radius: 18px;

    background: #f7f9fc;

    border: 1px solid #e1e8f0;
}

.sets-section h3 {
    margin: 0 0 17px;

    font-size: 16px;
    font-weight: 850;

    color: #102a43;

    text-transform: uppercase;
    letter-spacing: 1px;
}


/* =========================================================
   SET TABLE
========================================================= */

.sets-table {
    width: 100%;

    overflow: hidden;

    border: 1px solid #dce5ef;

    border-radius: 12px;

    background: #ffffff;
}


/* Header */

.set-header {
    display: grid;

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

    align-items: center;

    min-height: 50px;

    padding: 0 15px;

    background: #102a43;

    color: #ffffff;

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

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.set-header span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.set-header span:not(:first-child) {
    text-align: center;
}


/* Rows */

.set-row {
    display: grid;

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

    align-items: center;

    min-height: 56px;

    padding: 0 15px;

    border-bottom: 1px solid #e7edf3;
}

.set-row:last-child {
    border-bottom: none;
}

.set-row > span {
    font-size: 14px;

    font-weight: 700;

    color: #647991;
}

.set-row strong {
    text-align: center;

    font-size: 21px;

    color: #102a43;
}


/* =========================================================
   NO SCORE
========================================================= */

.no-score {
    margin: 0;

    padding: 20px;

    text-align: center;

    border-radius: 12px;

    background: #ffffff;

    border: 1px dashed #ccd8e5;

    color: #71839a;

    font-size: 14px;
}


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

.result-info {
    display: grid;

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

    gap: 14px;

    margin-top: 22px;
}


/* Each info block */

.result-info > div {
    min-width: 0;

    padding: 16px 17px;

    border-radius: 14px;

    background: #ffffff;

    border: 1px solid #e1e8f0;
}

.info-label {
    display: block;

    margin-bottom: 7px;

    font-size: 10px;

    font-weight: 850;

    color: #8294a8;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.result-info > div > span:last-child {
    display: block;

    font-size: 14px;

    line-height: 1.5;

    font-weight: 700;

    color: #243b53;

    overflow-wrap: anywhere;
}


/* =========================================================
   ACTION
========================================================= */

.result-action {
    display: flex;

    justify-content: flex-end;

    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid #e7edf3;
}

.view-result-btn {
    display: inline-flex;

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

    min-height: 46px;

    padding: 0 22px;

    border-radius: 10px;

    background: #1769e0;
    color: #ffffff;

    text-decoration: none;

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

    box-shadow:
        0 5px 14px rgba(23, 105, 224, 0.22);

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

.view-result-btn:hover {
    background: #0f55bc;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(23, 105, 224, 0.28);
}


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

.no-results {
    width: 100%;
    max-width: 650px;

    margin: 20px auto;

    padding: 60px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #dce5ef;

    border-radius: 24px;

    box-shadow:
        0 10px 30px rgba(16, 42, 67, 0.07);
}

.no-results-icon {
    width: 80px;
    height: 80px;

    margin: 0 auto 20px;

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

    border-radius: 50%;

    background: #edf4ff;

    font-size: 38px;
}

.no-results h2 {
    margin: 0 0 10px;

    font-size: 27px;

    color: #102a43;
}

.no-results p {
    margin: 0 auto 25px;

    max-width: 450px;

    line-height: 1.6;

    color: #71839a;
}

.matches-btn {
    display: inline-flex;

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

    min-height: 44px;

    padding: 0 22px;

    border-radius: 10px;

    background: #1769e0;
    color: #ffffff;

    text-decoration: none;

    font-weight: 750;
}


/* =========================================================
   BACK HOME
========================================================= */

.back-home {
    width: 100%;
    max-width: 1150px;

    margin: 35px auto 0;

    text-align: center;
}

.back-home a {
    color: #1769e0;

    text-decoration: none;

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

.back-home a:hover {
    text-decoration: underline;
}


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

@media (max-width: 900px) {

    .results-page {
        padding: 45px 18px 60px;
    }

    .result-card {
        padding: 24px;
    }

    .result-teams {
        grid-template-columns:
            minmax(0, 1fr)
            70px
            minmax(0, 1fr);

        gap: 15px;
    }

    .result-team {
        padding: 17px;
    }

    .result-vs {
        width: 56px;
        height: 56px;
    }

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


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

@media (max-width: 650px) {

    .results-page {
        padding: 30px 12px 45px;
    }


    /* Header */

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

    .results-label {
        font-size: 10px;
        letter-spacing: 1.5px;

        padding: 7px 13px;
    }

    .results-header h1 {
        margin-top: 13px;

        font-size: 34px;
    }

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


    /* Card */

    .result-card {
        padding: 17px;

        border-radius: 18px;
    }


    /* Top */

    .result-top {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }

    .completed-badge {
        font-size: 10px;
    }


    /* Tournament */

    .tournament-name {
        margin-bottom: 18px;

        padding: 12px;

        font-size: 14px;
    }


    /* Teams */

    .result-teams {
        display: flex;

        flex-direction: column;

        gap: 10px;

        padding: 5px 0 22px;
    }

    .result-team,
    .result-team.team-left,
    .result-team.team-right {
        width: 100%;

        text-align: center;

        padding: 15px;
    }

    .result-team h2 {
        font-size: 23px;
    }


    /* VS */

    .result-vs {
        width: 42px;
        height: 42px;

        font-size: 11px;

        box-shadow: none;
    }


    /* Scores */

    .sets-section {
        padding: 14px;

        border-radius: 14px;
    }

    .sets-section h3 {
        font-size: 14px;
    }

    .set-header {
        grid-template-columns:
            75px
            minmax(0, 1fr)
            minmax(0, 1fr);

        min-height: 45px;

        padding: 0 9px;

        font-size: 9px;
    }

    .set-row {
        grid-template-columns:
            75px
            minmax(0, 1fr)
            minmax(0, 1fr);

        min-height: 50px;

        padding: 0 9px;
    }

    .set-row > span {
        font-size: 12px;
    }

    .set-row strong {
        font-size: 19px;
    }


    /* Information */

    .result-info {
        display: flex;

        flex-direction: column;

        gap: 10px;

        margin-top: 16px;
    }

    .result-info > div {
        width: 100%;

        padding: 13px 14px;
    }


    /* Action */

    .result-action {
        margin-top: 18px;

        padding-top: 16px;
    }

    .view-result-btn {
        width: 100%;

        min-height: 46px;
    }


    /* Empty */

    .no-results {
        padding: 45px 20px;
    }
}


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

@media (max-width: 380px) {

    .results-page {
        padding-left: 9px;
        padding-right: 9px;
    }

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

    .result-card {
        padding: 14px;
    }

    .result-team h2 {
        font-size: 20px;
    }

    .set-header {
        grid-template-columns:
            65px
            minmax(0, 1fr)
            minmax(0, 1fr);

        font-size: 8px;
    }

    .set-row {
        grid-template-columns:
            65px
            minmax(0, 1fr)
            minmax(0, 1fr);
    }

    .set-row > span {
        font-size: 11px;
    }

    .set-row strong {
        font-size: 17px;
    }
}