* {
    box-sizing: border-box;
}


body {
    margin: 0;

    background: #1b1f24;
    color: #f5f5f5;

    font-family: Arial, Helvetica, sans-serif;
}


/* HEADER */

.site-header {
    background: #252b32;
    border-bottom: 1px solid #3a424c;
}


.nav-container {
    max-width: 1200px;

    margin: 0 auto;
    padding: 0 24px;

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

    min-height: 70px;
}


.brand {
    color: #ffffff;

    text-decoration: none;

    font-size: 1.35rem;
    font-weight: bold;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;

    gap: 28px;
}


.main-nav a,
.dropbtn {
    color: #d6dbe1;

    text-decoration: none;

    font-size: 1rem;
}


.main-nav a:hover,
.dropbtn:hover {
    color: #ffffff;
}


/* DROPDOWN */

.dropdown {
    position: relative;
}


.dropbtn {
    background: none;
    border: none;

    cursor: pointer;

    padding: 24px 0;
}


.arrow {
    font-size: 0.7rem;

    margin-left: 4px;
}


.dropdown-content {
    display: none;

    position: absolute;

    top: 60px;
    left: 0;

    min-width: 180px;

    background: #252b32;

    border: 1px solid #3a424c;
    border-radius: 6px;

    overflow: hidden;

    z-index: 100;
}


.dropdown-content a {
    display: block;

    padding: 12px 16px;
}


.dropdown-content a:hover {
    background: #303740;
}


.dropdown:hover .dropdown-content {
    display: block;
}


/* PAGE */

.page-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 50px 24px;
}


.page-title {
    margin-top: 0;

    font-size: 2.3rem;
}


.page-description {
    color: #b7bec7;

    font-size: 1.1rem;
}


/* CARDS */

.card {
    margin-top: 25px;

    padding: 24px;

    background: #252b32;

    border: 1px solid #3a424c;
    border-radius: 8px;
}


/* SECTION HEADERS */

.section-header {
    display: flex;

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

    gap: 20px;

    margin-bottom: 20px;
}


.section-header h2 {
    margin: 0;
}


.section-link,
.read-more,
.week-button {
    color: #d6dbe1;

    text-decoration: none;
}


.section-link:hover,
.read-more:hover,
.week-button:hover {
    color: #ffffff;
}


/* FEATURED ARTICLE */

.featured-article {
    margin-top: 0;
}


.article-title {
    margin: 8px 0 12px;

    font-size: 2rem;
}


.article-meta {
    margin: 0;

    color: #818994;

    font-size: 0.9rem;
}


.article-excerpt {
    max-width: 850px;

    color: #b7bec7;

    line-height: 1.6;
}


.article-controls {
    display: flex;

    align-items: center;

    gap: 12px;
}


.article-controls button {
    width: 38px;
    height: 38px;

    border: 1px solid #3a424c;
    border-radius: 6px;

    background: #1b1f24;
    color: #f5f5f5;

    cursor: pointer;
}


.article-controls button:hover {
    background: #303740;
}


#articleCounter {
    min-width: 40px;

    text-align: center;

    color: #b7bec7;

    font-size: 0.9rem;
}


/* HOMEPAGE DASHBOARD */

.dashboard-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.65fr;

    gap: 24px;
}


/* TRANSACTIONS */

.transaction-list {
    display: flex;

    flex-direction: column;
}


.transaction-item {
    display: flex;

    flex-direction: column;

    gap: 4px;

    padding: 14px 0;

    border-bottom: 1px solid #3a424c;
}


.transaction-item:first-child {
    padding-top: 0;
}


.transaction-item:last-child {
    border-bottom: none;

    padding-bottom: 0;
}


.transaction-item span {
    color: #b7bec7;
}


.transaction-item small {
    color: #818994;
}


/* MATCHUPS */

.matchup-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.matchup {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 18px;

    padding: 18px;

    background: #1b1f24;

    border: 1px solid #3a424c;
    border-radius: 7px;
}


.matchup-team {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.matchup-team span {
    color: #b7bec7;
}


.matchup-team-right {
    text-align: right;
}


.versus {
    color: #818994;

    font-size: 0.8rem;
}


/* MATCHUP WEEK NAVIGATION */

.week-navigation {
    display: flex;

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

    gap: 20px;

    margin-bottom: 24px;
}


.week-navigation h2 {
    margin: 0;

    text-align: center;
}


.week-button {
    min-width: 130px;
}


.week-button:last-child {
    text-align: right;
}


/* STANDINGS */

.standings-table-wrapper {
    overflow-x: auto;
}


.standings-table {
    width: 100%;

    border-collapse: collapse;
}


.standings-table th,
.standings-table td {
    padding: 14px 12px;

    text-align: left;

    border-bottom: 1px solid #3a424c;
}


.standings-table th {
    color: #818994;

    font-size: 0.85rem;

    text-transform: uppercase;
}


.standings-table tbody tr:last-child td {
    border-bottom: none;
}


/* FOOTER */

.site-footer {
    margin-top: 70px;

    padding: 30px;

    text-align: center;

    color: #818994;

    border-top: 1px solid #303740;
}


/* MOBILE */

@media (max-width: 800px) {

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


    .matchups-card {
        order: 1;
    }


    .transactions-card {
        order: 2;
    }


    .article-title {
        font-size: 1.6rem;
    }


    .section-header {
        align-items: flex-start;
    }

}


@media (max-width: 750px) {

    .nav-container {
        flex-direction: column;

        padding: 18px;
    }


    .main-nav {
        margin-top: 15px;

        gap: 16px;

        flex-wrap: wrap;

        justify-content: center;
    }


    .dropbtn {
        padding: 0;
    }


    .dropdown-content {
        top: 25px;
    }

}


@media (max-width: 600px) {

    .week-navigation {
        flex-direction: column;
    }


    .week-button {
        min-width: auto;

        text-align: center;
    }


    .week-button:last-child {
        text-align: center;
    }

}
