/* ========== Recent Games on Home Page ========== */

.recent-games-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.home-games-empty {
    color: var(--dark-grey);
    margin: 0.5rem 0;
}

.recent-game-card {
    min-width: 260px;
    max-width: 320px;
    background-color: var(--white);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.recent-game-card:hover {
    background-color: var(--light-grey);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.recent-game-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    color: var(--dark-grey);
    gap: 0.5rem;
}

.recent-game-date {
    font-weight: 600;
}

.recent-game-time {
    font-size: 0.8rem;
}

.recent-game-status {
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.25rem 0.45rem;
    text-transform: uppercase;
}

.recent-game-status-live {
    background: #dc2626;
    color: #fff;
}

.recent-game-status-upcoming,
.recent-game-status-scheduled {
    background: #e0f2fe;
    color: #075985;
}

.recent-game-status-final {
    background: #f3f4f6;
    color: #374151;
}

.recent-game-teams {
    display: grid;
    grid-template-columns: auto 1fr min-content;  /* [logo | name | score] */
    row-gap: 0.15rem;
    column-gap: 0.5rem;
    align-items: center;
}

.recent-game-row {
    display: grid;
    grid-template-columns: auto 1fr min-content;
    align-items: center;
    column-gap: 0.5rem;
    font-size: 0.9rem;
}

.recent-game-card .recent-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: block;
}


.recent-team-name {
    font-weight: 500;
    color: var(--primary-blue);
}

.recent-team-name-line {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    white-space: nowrap;
}

.recent-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-team-rank {
    flex: 0 0 auto;
    font-weight: 800;
    color: var(--text-dark);
}

.recent-team-rank-class {
    font-size: 0.72em;
}

.recent-team-record {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--dark-grey);
    opacity: 0.72;
}

.recent-team-score {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-dark);
}

.recent-game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--dark-grey);
    margin-top: 0.15rem;
    gap: 0.5rem;
}

.recent-game-sport {
    font-weight: 500;
}

.recent-game-location {
    text-align: right;
    flex: 1 1 auto;
}

.recent-team-score-win {
    font-weight: 800;
    color: var(--primary-blue);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.12);
}

.recent-team-score-loss {
    opacity: 0.75;
}

.recent-team-score-tie {
    opacity: 0.9;
}

/* Social Media */
.social-section {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--primary-blue),
        var(--light-blue)
    );
    border-radius: 18px;
    margin-bottom: 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}


.social-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--background-red);
}

.social-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.social-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 35px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}


.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}


.social-btn svg {
    width: 26px;
    height: 26px;
    stroke-width: 2.25;
}


.social-btn.instagram {
    background: linear-gradient(
        45deg,
        #f09433,
        #dc2743,
        #bc1888
    );
    color: white;
}


.social-btn.x {
    background: var(--text-dark);
    color: var(--white);
}


.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}


.social-btn.instagram:hover {
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.6);
}

.social-btn.x:hover {
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.6);
}


/* Merch card on home */
.merch-card-section {
    padding: 36px 24px;
    text-align: center;
    background: linear-gradient(145deg, var(--primary-blue), var(--light-blue));
    border-radius: 18px;
    margin-bottom: 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.merch-card-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--background-red);
}

.merch-card-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.merch-card-subtitle {
    font-size: 15px;
    opacity: 0.92;
    margin-bottom: 24px;
}

.merch-card-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.merch-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.merch-card-button svg {
    width: 20px;
    height: 20px;
}

/* Featured article */
.featured-article-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    gap: 1.25rem;
    align-items: stretch;
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.featured-article-card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.featured-article-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.featured-article-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    color: var(--dark-grey);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.featured-article-body h3 {
    color: var(--primary-blue);
    font-size: 1.45rem;
    margin: 0 0 0.55rem;
}

.featured-article-subtitle {
    color: var(--text-dark);
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.featured-article-preview {
    color: var(--dark-grey);
    line-height: 1.55;
    margin: 0;
}

.featured-article-read-more {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 0.85rem;
}

.article-detail-page {
    max-width: 980px;
}

.article-detail {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.article-detail-header {
    padding: 2rem 2rem 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.article-detail-header h1 {
    color: var(--primary-blue);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    margin: 0.35rem 0 0;
}

.article-detail-subtitle {
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0.85rem 0 0;
}

.article-detail-images {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 2rem 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.article-detail-image-frame {
    flex: 0 0 min(82%, 760px);
    margin: 0;
    scroll-snap-align: start;
}

.article-detail-image-frame img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.article-detail-image-frame figcaption {
    color: var(--dark-grey);
    font-size: 0.85rem;
    margin-top: 0.45rem;
}

.article-gallery-hint {
    color: var(--dark-grey);
    font-size: 0.85rem;
    margin: 0.65rem 2rem 0;
}

.article-detail-body {
    padding: 1.5rem 2rem 2.25rem;
}

.article-detail-body p {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1.15rem;
}

.article-detail-body h2,
.article-detail-body h3 {
    color: var(--primary-blue);
    line-height: 1.25;
    margin: 1.8rem 0 0.8rem;
}

.article-detail-body a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 0 0 1.15rem 1.5rem;
}

.article-detail-body blockquote {
    border-left: 4px solid var(--primary-blue);
    color: var(--dark-grey);
    margin: 1.25rem 0;
    padding: 0.4rem 0 0.4rem 1rem;
}

.article-detail-body figure {
    margin: 1.6rem 0;
}

.article-detail-body figure img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: contain;
    border-radius: 10px;
    background: #f8fafc;
}

.article-detail-body figcaption {
    color: var(--dark-grey);
    font-size: 0.88rem;
    margin-top: 0.45rem;
}

.articles-page {
    max-width: 1180px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

.article-list-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.article-list-card-link {
    color: inherit;
    display: block;
    height: 100%;
    text-decoration: none;
}

.article-list-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-list-content {
    padding: 1.35rem;
}

.article-list-content h2 {
    color: var(--primary-blue);
    font-size: 1.45rem;
    line-height: 1.2;
    margin: 0.55rem 0;
}

.article-list-subtitle,
.article-list-preview {
    color: var(--text-dark);
    margin: 0 0 0.8rem;
}

.article-list-subtitle {
    font-weight: 700;
}

.article-list-preview {
    color: var(--dark-grey);
}

.article-list-read-more {
    color: var(--primary-blue);
    font-weight: 800;
}

@media (max-width: 760px) {
    .featured-article-card {
        grid-template-columns: 1fr;
    }

    .featured-article-image {
        min-height: 180px;
    }

    .article-detail-images {
        padding-inline: 1rem;
        scroll-padding-inline: 1rem;
    }

    .article-detail-image-frame {
        flex-basis: 88%;
    }

    .article-gallery-hint {
        margin-inline: 1rem;
    }
}
