/* Football Club Manager Frontend Stylesheet */

:root {
    --club-primary: #064e3b;
    --club-secondary: #eab308;
    --club-accent: #022c22;
}

/* --- 1. Next Match Hero Banner --- */
.fcm-next-match-card,
.fcm-next-match-banner,
.fcm-next-match-hero {
    background: linear-gradient(135deg, #032b56 0%, var(--club-primary, #064e3b) 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    margin: 24px 0;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fcm-nm-header,
.fcm-hero-header { margin-bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }

.fcm-nm-label,
.fcm-hero-badge {
    background: var(--club-secondary, #eab308);
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
}

.fcm-nm-comp {
    background: rgba(255, 255, 255, 0.12);
    color: #93c5fd;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.fcm-nm-teams,
.fcm-teams-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 20px 0;
}

.fcm-nm-team,
.fcm-team {
    flex: 1;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fcm-nm-crest {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    margin-bottom: 12px;
}

.fcm-nm-team-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.fcm-nm-vs-box { display: flex; align-items: center; justify-content: center; }

.fcm-nm-vs {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    font-size: 16px;
    font-weight: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(250, 204, 21, 0.5);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}
    border-radius: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
}

.fcm-teams-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.fcm-team {
    flex: 1;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fcm-logo-wrap {
    width: 90px;
    height: 90px;
    background: #ffffff;
    border-radius: 50%;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 12px;
}

.fcm-crest {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fcm-team-name {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.fcm-vs-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcm-vs {
    background: rgba(255, 255, 255, 0.15);
    color: var(--club-secondary, #facc15);
    font-size: 18px;
    font-weight: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(250, 204, 21, 0.4);
}

.fcm-match-details { margin: 20px 0; }

.fcm-comp-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.fcm-meta-info {
    color: #e2e8f0;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.fcm-dot { color: var(--club-secondary, #facc15); }

/* Realtime Countdown Timer */
.fcm-countdown-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 16px 24px;
    border-radius: 12px;
    margin-top: 10px;
}

.fcm-timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.fcm-timer-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--club-secondary, #facc15);
    line-height: 1;
}

.fcm-timer-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 4px;
}

.fcm-timer-sep {
    font-size: 24px;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 12px;
}

.fcm-hero-cta { margin-top: 20px; }

.fcm-btn-primary {
    background: var(--club-secondary, #eab308);
    color: #0f172a;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.fcm-btn-primary:hover {
    background: #facc15;
    transform: translateY(-2px);
    color: #0f172a;
}

/* --- 2. Fixtures Widget --- */
.fcm-fixtures-widget { margin: 24px 0; }

.fcm-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.fcm-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.fcm-tab-btn {
    border: none;
    background: transparent;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.fcm-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fcm-select {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.fcm-fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fcm-fixture-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.fcm-fixture-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.fcm-fix-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.fcm-fix-comp {
    font-weight: 700;
    color: var(--club-primary, #064e3b);
}

.fcm-fix-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fcm-fix-team {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fcm-fix-home { justify-content: flex-end; text-align: right; }
.fcm-fix-away { justify-content: flex-start; text-align: left; }

.fcm-fix-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.fcm-fix-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

.fcm-fix-center {
    padding: 0 20px;
    text-align: center;
    min-width: 100px;
}

.fcm-fix-score {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fcm-fix-vs {
    font-size: 14px;
    font-weight: 800;
    color: #94a3b8;
}

.fcm-status-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
    text-transform: uppercase;
}

.fcm-tag-ft { background: #dcfce7; color: #15803d; }
.fcm-tag-upcoming { background: #e0f2fe; color: #0369a1; }

.fcm-fix-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
    font-size: 12px;
    color: #64748b;
}

.fcm-link {
    color: var(--club-primary, #064e3b);
    font-weight: 700;
    text-decoration: none;
}

/* --- 3. League Table --- */
.fcm-league-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin: 24px 0;
}

.fcm-table-header {
    background: var(--club-primary, #064e3b);
    color: #ffffff;
    padding: 16px 20px;
}

.fcm-table-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 1px;
}

.fcm-table-scroll { overflow-x: auto; }

.fcm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
}

.fcm-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 10px;
    border-bottom: 2px solid #e2e8f0;
}

.fcm-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.fcm-col-club {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fcm-table-crest {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.fcm-club-full-name { font-weight: 700; }
.fcm-club-short-name { display: none; color: #94a3b8; font-size: 12px; }

.fcm-col-pts {
    font-weight: 800;
    color: var(--club-primary, #064e3b);
}

.fcm-main-club-row {
    background: #f0fdf4 !important;
    font-weight: 700;
}

.fcm-main-club-row td { color: var(--club-primary, #064e3b); }

/* --- 4. Clubs Directory --- */
.fcm-clubs-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.fcm-club-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.fcm-card-crest img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* --- 5. Squad Roster Grid --- */
.fcm-squad-container { margin: 24px 0; }

.fcm-squad-pos-title {
    font-size: 20px;
    color: var(--club-primary, #064e3b);
    border-bottom: 2px solid var(--club-secondary, #eab308);
    padding-bottom: 6px;
    margin: 24px 0 16px 0;
}

.fcm-squad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.fcm-player-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.fcm-player-card:hover { transform: translateY(-4px); }

.fcm-player-photo-wrap {
    position: relative;
    height: 180px;
    background: #0f172a;
}

.fcm-player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcm-shirt-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--club-secondary, #eab308);
    color: #0f172a;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.fcm-player-info { padding: 14px; }
.fcm-player-name { margin: 0 0 4px 0; font-size: 16px; color: #0f172a; }
.fcm-player-pos { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; }

.fcm-player-stats-row {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #475569;
}

/* --- 6. Top Scorers Widget --- */
.fcm-top-scorers-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.fcm-widget-header {
    background: var(--club-primary, #064e3b);
    color: #fff;
    padding: 14px 20px;
}

.fcm-widget-header h3 { margin: 0; color: #fff; font-size: 16px; }

.fcm-top-scorers-list { list-style: none; margin: 0; padding: 0; }

.fcm-scorer-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    gap: 16px;
}

.fcm-scorer-rank { font-size: 18px; font-weight: 800; color: #94a3b8; width: 24px; }
.fcm-scorer-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.fcm-scorer-name-wrap { flex: 1; display: flex; flex-direction: column; }
.fcm-scorer-name { font-weight: 700; color: #0f172a; }
.fcm-scorer-num { font-size: 12px; color: #64748b; }
.fcm-scorer-goals { text-align: right; }
.fcm-goals-num { font-size: 20px; font-weight: 800; color: var(--club-primary, #064e3b); display: block; line-height: 1; }
.fcm-goals-lbl { font-size: 9px; font-weight: 700; color: #94a3b8; }

/* Responsive Rules */
@media (max-width: 640px) {
    .fcm-teams-container { gap: 16px; }
    .fcm-logo-wrap { width: 64px; height: 64px; }
    .fcm-team-name { font-size: 16px; }
    .fcm-fix-name { font-size: 14px; }
    .fcm-club-full-name { display: none; }
    .fcm-club-short-name { display: inline; font-weight: 700; color: #0f172a; }
}

/* --- 7. Latest Match Result Banner --- */
.fcm-latest-result-wrapper {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin: 24px 0;
    font-family: inherit;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.fcm-lr-title-wrap {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fcm-lr-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--club-primary, #064e3b);
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.fcm-lr-title-line {
    width: 44px;
    height: 4px;
    background: var(--club-secondary, #eab308);
    border-radius: 2px;
}

.fcm-lr-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.fcm-lr-team-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 220px;
}

.fcm-lr-home-info { align-items: flex-end; text-align: right; }
.fcm-lr-away-info { align-items: flex-start; text-align: left; }

.fcm-lr-team-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.fcm-lr-team-line {
    width: 100%;
    height: 3px;
    background: var(--club-primary, #064e3b);
    margin: 8px 0;
    border-radius: 2px;
}

.fcm-lr-status {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fcm-lr-status-win { color: var(--club-primary, #064e3b); }
.fcm-lr-status-loss { color: #ef4444; }
.fcm-lr-status-draw { color: #64748b; }

.fcm-lr-crest-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fcm-lr-crest {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fcm-lr-score-center {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fcm-lr-score-box {
    width: 68px;
    height: 64px;
    background: linear-gradient(135deg, var(--club-primary, #064e3b) 0%, #047857 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.2);
}

.fcm-lr-score-home {
    clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
    padding-right: 8px;
}

.fcm-lr-score-away {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18% 50%);
    padding-left: 8px;
}

.fcm-lr-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #475569;
}

.fcm-lr-date-time { font-weight: 600; color: #334155; }
.fcm-lr-venue { font-size: 13px; }
.fcm-lr-venue-link { color: var(--club-primary, #064e3b); text-decoration: none; font-weight: 600; }
.fcm-lr-venue-link:hover { text-decoration: underline; }

