/* Front Page Styles */

.front-page-wrapper {
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

.front-featured-post {
    flex: 1;
    min-width: 0;
}

.featured-post-link {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    text-decoration: none;
    background-size: cover;
    background-position: center;
}

.featured-post-link.no-image {
    background-image: radial-gradient(circle at 20% 20%, #234a88, #0a1631 60%);
}

.featured-post-overlay {
    width: 100%;
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.9) 100%);
}

.featured-post-content {
    position: relative;
    z-index: 1;
    max-width: 940px;
    padding: 160px 48px 52px;
}

.featured-post-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 72px);
    line-height: 0.95;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.featured-post-readmore {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    padding-bottom: 2px;
}

.front-page-sidebar {
    width: min(40vw, 540px);
    min-width: 380px;
    box-sizing: border-box;
    padding: 120px 18px 18px;
    overflow-y: auto;
    background: transparent;
    position: absolute;
    right: 0;
}

.sidebar-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: #f2f5fb;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.last-game {
    margin: 0 0 18px;
}

.last-game-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9dfeb;
    border-radius: 8px;
    padding: 14px;
}

.last-game-team {
    display: flex;
    align-items: center;
    gap: 12px;
}

.last-game-team-away {
    justify-content: flex-end;
    text-align: right;
}

.last-game-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.last-game-team-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.last-game-score-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.last-game-score {
    font-size: 27px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.last-game-stadium {
    font-size: 12px;
    color: #666;
}

.standings-section {
    margin: 0;
}

.standings-container {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #d9dfeb;
    border-radius: 8px;
    max-height: 340px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.standings-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.standings-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.standings-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.standings-table tbody tr:hover {
    background-color: #f9f9f9;
}

.standings-table tbody tr.mans-fc-highlight {
    background-color: #fff3cd;
    font-weight: 600;
    border-left: 4px solid #ffc107;
}

.standings-table tbody tr.mans-fc-highlight:hover {
    background-color: #ffe69c;
}

.team-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.rank {
    font-weight: 600;
    color: #666;
    text-align: center;
}

.points {
    text-align: center;
    font-weight: 600;
    color: #0073aa;
}

.error-message {
    color: #d32f2f;
    padding: 14px;
    background: #ffebee;
    border-radius: 4px;
    text-align: center;
}

@media (max-width: 1180px) {
    .front-page-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .featured-post-link {
        min-height: 72vh;
    }

    .front-page-sidebar {
        width: 100%;
        min-width: 0;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .featured-post-content {
        padding: 140px 20px 28px;
    }

    .last-game-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .last-game-team,
    .last-game-team-away {
        justify-content: center;
        text-align: center;
    }
}
