/* ==================================================
   Oddělení sekcí
================================================== */

.section-divider {
    margin: 42px 0;
    height: 1px;
    background: #e6edf7;
}

/* ==================================================
   1. TOP HIGHLIGHT (HLAVNÍ INFO)
================================================== */

.top-highlight {
    padding: 26px 28px;
    background: linear-gradient(180deg, #f4f8fd 0%, #eaf2fb 100%);
    border: 1px solid #dbe4f0;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 36, 82, 0.12);
}

.top-highlight-content {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.highlight-badge {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.top-highlight p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.highlight-btn {
    margin-left: auto;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.highlight-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* ==================================================
   2. PŘEHLED ZÁPASŮ NA HOMEPAGE
================================================== */

.homepage-matches > h2 {
    margin-bottom: 24px;
}

.homepage-matches-section + .homepage-matches-section {
    margin-top: 34px;
}

.homepage-matches-section h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.homepage-match-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.homepage-match-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--white);
    border: 1px solid #e6edf7;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 36, 82, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homepage-match-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 36, 82, 0.08);
}

.homepage-match-main {
    min-width: 0;
}

.homepage-match-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.homepage-match-team {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ebf2fa;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.homepage-match-card h3 {
    margin-bottom: 6px;
    font-size: 1.02rem;
    line-height: 1.4;
    color: var(--text-color);
}

.homepage-match-meta {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5f6b7a;
}

.homepage-match-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    align-self: stretch;
    gap: 8px;
    min-width: 140px;
    text-align: right;
}

.homepage-match-date {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
}

.homepage-match-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-top: 6px;
}

.homepage-match-score {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
}

.homepage-match-half {
    font-size: 0.92rem;
    font-weight: 700;
    color: #6b7280;
}

.homepage-match-empty {
    margin-top: 6px;
    font-size: 0.88rem;
    color: #6b7280;
}

.homepage-match-date-mobile {
    display: none;
}

.homepage-match-date-desktop {
    display: block;
}

/* ==================================================
   3. AKTUALITY + AKCE
================================================== */

.homepage-columns {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.homepage-columns > section,
.homepage-columns > div {
    margin-top: 0 !important;
    padding: 0;
}

.news-section,
.events-section {
    display: flex;
    flex-direction: column;
}

.news-section h2,
.events-section h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.news-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e6edf7;
}

.news-date {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
}

.news-content h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
    color: var(--text-color);
}

.news-content p {
    color: #5f6b7a;
    line-height: 1.6;
}

.news-empty {
    padding-top: 4px;
    color: #6b7280;
    font-size: 0.94rem;
}

.homepage-more-link {
    margin-top: 14px;
}

.homepage-more-link a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.homepage-more-link a:hover {
    text-decoration: underline;
}

/* ==================================================
   4. SPODNÍ FOTO / QUOTE
================================================== */

.homepage-quote {
    position: relative;
    width: calc(100% + 40px);
    height: 420px;
    margin: 56px -20px 0;
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 36, 82, 0.18);
}

.hero-bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
}

.hero-text-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
}

.hero-text-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0)
    );
    z-index: 0;
}

.hero-text-overlay h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 28px 28px;
    max-width: 520px;
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* ==================================================
   5. RESPONSIVE - TABLET
================================================== */

@media (max-width: 900px) {
    .top-highlight {
        padding: 22px 22px;
    }

    .top-highlight-content {
        gap: 14px;
    }

    .top-highlight p {
        font-size: 1rem;
    }

    .highlight-btn {
        padding: 9px 16px;
        font-size: 0.9rem;
    }

    .homepage-matches > h2 {
        margin-bottom: 20px;
    }

    .homepage-matches-section + .homepage-matches-section {
        margin-top: 28px;
    }

    .homepage-matches-section h3 {
        margin-bottom: 10px;
        font-size: 1.15rem;
    }

    .homepage-match-list {
        gap: 12px;
        margin-top: 12px;
    }

    .homepage-match-card {
        gap: 18px;
        padding: 16px 18px;
        border-radius: 12px;
    }

    .homepage-match-top {
        margin-bottom: 10px;
    }

    .homepage-match-team {
        font-size: 0.74rem;
    }

    .homepage-match-side {
        min-width: 150px;
        gap: 10px;
    }

    .homepage-match-date {
        font-size: 0.9rem;
    }

    .homepage-match-card h3 {
        font-size: 0.96rem;
        line-height: 1.38;
    }

    .homepage-match-meta {
        font-size: 0.85rem;
    }

    .homepage-match-score {
        font-size: 1.7rem;
    }

    .homepage-match-half {
        font-size: 0.82rem;
    }

    .homepage-columns {
        gap: 30px;
    }

    .news-list {
        gap: 18px;
    }

    .news-item {
        grid-template-columns: 100px 1fr;
        gap: 16px;
        padding-bottom: 16px;
    }

    .news-date {
        font-size: 0.85rem;
    }

    .news-content h3 {
        font-size: 1rem;
    }

    .news-content p {
        font-size: 0.95rem;
    }

    .news-empty {
        font-size: 0.93rem;
        line-height: 1.55;
    }

    .homepage-more-link {
        margin-top: 12px;
    }

    .homepage-quote {
        width: calc(100% + 40px);
        height: 320px;
        margin: 42px -20px 0;
        border-radius: 18px;
    }

    .hero-text-overlay {
        padding: 24px;
    }

    .hero-text-overlay h2 {
        font-size: 2rem;
        max-width: 420px;
        margin: 0 0 24px 24px;
    }
}

/* ==================================================
   6. RESPONSIVE - MOBIL
================================================== */

@media (max-width: 600px) {
    .top-highlight {
        padding: 20px 18px;
    }

    .top-highlight-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .top-highlight p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .highlight-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .homepage-matches > h2 {
        margin-bottom: 18px;
    }

    .homepage-matches-section + .homepage-matches-section {
        margin-top: 24px;
    }

    .homepage-matches-section h3 {
        margin-bottom: 10px;
        font-size: 1.05rem;
    }

    .homepage-match-list {
        gap: 10px;
        margin-top: 10px;
    }

    .homepage-match-card {
        display: block;
        padding: 14px;
        border-radius: 12px;
        position: relative;
    }

    .homepage-match-top {
        margin-bottom: 6px;
    }

    .homepage-match-team {
        padding: 4px 10px;
        font-size: 0.72rem;
    }

    .homepage-match-main {
        min-width: 0;
        padding-right: 0px;
    }

    .homepage-match-date {
        display: block;
        margin-bottom: 6px;
        font-size: 0.83rem;
        line-height: 1.35;
    }

    .homepage-match-card h3 {
        margin-bottom: 4px;
        font-size: 0.92rem;
        line-height: 1.38;
    }

    .homepage-match-meta {
        font-size: 0.87rem;
        line-height: 1.5;
    }

    .homepage-match-side {
        position: absolute;
        top: 10px;
        right: 12px;
    }

    .homepage-match-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
    text-align: right;
    }

    .homepage-match-score {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--primary-color);
    }

    .homepage-match-half {
        font-size: 0.72rem;
        font-weight: 700;
        color: #6b7280;
    }

    .homepage-match-date-mobile {
        display: block;
    }

    .homepage-match-date-desktop {
        display: none;
    }

    .homepage-columns {
        gap: 26px;
    }

    .news-list {
        gap: 16px;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-bottom: 14px;
    }

    .news-date {
        font-size: 0.82rem;
    }

    .news-content h3 {
        font-size: 0.98rem;
    }

    .news-content p,
    .news-empty {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .homepage-more-link {
        margin-top: 10px;
    }

    .homepage-quote {
        width: calc(100% + 40px);
        height: 230px;
        margin: 34px -20px 0;
        border-radius: 14px;
    }

    .hero-text-overlay {
        padding: 18px;
    }

    .hero-text-overlay h2 {
        margin: 0 0 18px 18px;
        font-size: 1.45rem;
        max-width: 280px;
    }
}