/* Home — News & Offers + Upcoming Matches sections */

.home-news,
.home-matches {
    padding: var(--spacing-16, 4rem) 0;
    background: var(--bg-secondary, #f8f9fa);
}

.home-news {
    border-bottom: 1px solid var(--gray-200, #eee);
}

.home-matches {
    background: #0b0f14;
    color: #fff;
}

.home-matches .section-header h2,
.home-matches .section-header p {
    color: #fff;
}

.home-matches .section-header p {
    color: rgba(255, 255, 255, 0.65);
}

.home-matches .section-badge {
    background: rgba(237, 164, 35, 0.15);
    color: #eda423;
    border: 1px solid rgba(237, 164, 35, 0.35);
}

/* News grid / carousel */
.news-carousel-wrap {
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .news-grid::-webkit-scrollbar {
        display: none;
    }

    .news-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
        max-width: 100%;
    }

    .news-card:hover {
        transform: none;
    }
}

.news-nav {
    display: none;
}

@media (max-width: 768px) {
    .news-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .news-nav[hidden] {
        display: none !important;
    }

    .news-nav__btn {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid var(--gray-300, #e0e0e0);
        background: #fff;
        color: var(--gray-900, #111);
        font-size: 1.25rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transition: background 0.2s, border-color 0.2s, color 0.2s;
    }

    .news-nav__btn:hover {
        background: #eda423;
        border-color: #eda423;
        color: #000;
    }

    .news-dots {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .news-dots__dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: var(--gray-300, #e0e0e0);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

    .news-dots__dot.is-active {
        background: #eda423;
        transform: scale(1.2);
    }
}

.news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200, #eee);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.news-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--gray-100, #f5f5f5);
}

.news-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gray-900, #111);
    line-height: 1.3;
}

.news-card__text {
    font-size: 0.9rem;
    color: var(--gray-600, #666);
    line-height: 1.65;
    flex: 1;
}

.news-card__date {
    font-size: 0.78rem;
    color: var(--gray-400, #bdbdbd);
    margin-top: 0.25rem;
}

/* Matches */
.matches-carousel-wrap {
    position: relative;
}

.matches-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .matches-carousel {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .matches-carousel::-webkit-scrollbar {
        display: none;
    }

    .match-card {
        flex: 0 0 min(100%, 340px);
        scroll-snap-align: center;
    }
}

.matches-nav {
    display: none;
}

@media (max-width: 768px) {
    .matches-nav {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.25rem;
    }

    .matches-nav__btn {
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid rgba(237, 164, 35, 0.4);
        background: rgba(237, 164, 35, 0.1);
        color: #eda423;
        font-size: 1.25rem;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .matches-nav__btn:hover {
        background: rgba(237, 164, 35, 0.25);
    }

    .matches-dots {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .matches-dots__dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.25);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }

    .matches-dots__dot.is-active {
        background: #eda423;
        transform: scale(1.2);
    }
}

.match-card {
    display: flex;
    flex-direction: column;
    background: #121820;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(237, 164, 35, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.match-card__visual {
    position: relative;
    flex: 1;
    min-height: 300px;
    overflow: hidden;
    background: #0f1923;
}

.match-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.match-card__image--placeholder {
    background:
        linear-gradient(160deg, rgba(11, 15, 20, 0.4) 0%, rgba(13, 31, 13, 0.5) 100%),
        repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(34, 139, 34, 0.06) 49px, rgba(34, 139, 34, 0.06) 50px),
        #0f1923;
}

.match-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 15, 20, 0.05) 0%,
        rgba(11, 15, 20, 0.35) 45%,
        rgba(11, 15, 20, 0.88) 78%,
        rgba(11, 15, 20, 0.96) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.match-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.25rem 1.25rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.match-card__title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.match-card__date {
    font-size: 0.82rem;
    color: #eda423;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

/* Countdown inside match card overlay — scoped to avoid banner .match-countdown styles */
.home-matches .match-card__overlay .match-countdown {
    display: flex;
    justify-content: stretch;
    gap: 0.4rem;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.home-matches .match-card__overlay .match-countdown__unit {
    flex: 1;
    background: rgba(15, 20, 28, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(237, 164, 35, 0.28);
    border-radius: 10px;
    padding: 0.45rem 0.35rem 0.4rem;
    min-width: 0;
    text-align: center;
}

.home-matches .match-card__overlay .match-countdown__num {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.home-matches .match-card__overlay .match-countdown__label {
    display: block;
    font-size: 0.58rem;
    color: #eda423;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    margin-top: 0.25rem;
}

.home-matches .match-card__overlay .match-countdown--done .match-countdown__num {
    font-size: 0.72rem;
    color: #eda423;
}

.home-matches .match-card__overlay .match-countdown--done .match-countdown__label {
    font-size: 0.5rem;
}

.match-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.95rem 1.25rem;
    background: #eda423;
    color: #000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: filter 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.match-card__cta:hover {
    filter: brightness(1.05);
    background: #f0b040;
}

.match-card__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

@media (min-width: 769px) {
    .match-card__visual {
        min-height: 340px;
    }

    .match-card__overlay {
        padding: 1.5rem 1.35rem 1.25rem;
    }

    .home-matches .match-card__overlay .match-countdown__num {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .match-card {
        flex: 0 0 min(100%, 340px);
        scroll-snap-align: center;
        max-width: 100%;
    }

    .match-card__visual {
        min-height: 280px;
    }

    .match-card__title {
        font-size: 0.98rem;
    }

    .home-matches .match-card__overlay .match-countdown__num {
        font-size: 1rem;
    }

    .match-card__cta {
        min-height: 48px;
        font-size: 0.85rem;
    }
}

.home-section-loading,
.home-section-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500, #999);
    font-size: 0.95rem;
}

.home-matches .home-section-loading,
.home-matches .home-section-empty {
    color: rgba(255, 255, 255, 0.45);
}
