/* FootManager Public Shortcode Styles */

/* Competition Header */
.fm-competition-header {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #004225;
    color: #fff;
    border-radius: 6px;
}
.fm-competition-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.fm-competition-meta {
    font-size: 13px;
    opacity: 0.85;
}
.fm-competition-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.fm-status-in_progress { background: #27ae60; color: #fff; }
.fm-status-completed { background: #7f8c8d; color: #fff; }
.fm-status-upcoming { background: #f39c12; color: #fff; }

/* Standings Table */
.fm-standings,
.fm-standings-groups {
    margin-bottom: 24px;
    overflow-x: auto;
}
.fm-group-title {
    margin: 16px 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: #004225;
}
.fm-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}
.fm-standings-table thead {
    background: #004225;
    color: #fff;
}
.fm-standings-table th {
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}
.fm-standings-table th.fm-col-team {
    text-align: left;
}
.fm-standings-table td {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}
.fm-standings-table td.fm-col-team {
    text-align: left;
    white-space: nowrap;
}
.fm-standings-table td.fm-col-pos {
    font-weight: 700;
    width: 30px;
}
.fm-standings-table td.fm-col-pts {
    font-weight: 700;
    background: #f8f9fa;
}
.fm-standings-table tbody tr:hover {
    background: #f0f7f4;
}
.fm-team-logo {
    vertical-align: middle;
    border-radius: 2px;
}
.fm-team-name {
    vertical-align: middle;
}
.fm-standing-row.fm-withdrawn {
    opacity: 0.5;
    text-decoration: line-through;
}
.fm-badge-withdrawn {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
}
.fm-standings-notes {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #004225;
    font-size: 12px;
    color: #555;
}

/* Form indicators */
.fm-form {
    display: inline-flex;
    gap: 3px;
}
.fm-form-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.fm-form-w { background: #27ae60; }
.fm-form-d { background: #f39c12; }
.fm-form-l { background: #e74c3c; }

/* Matches */
.fm-matches {
    margin-bottom: 24px;
}
.fm-matchweek-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 0 6px;
    border-bottom: 3px solid #004225;
    margin: 20px 0 8px;
}
.fm-matchweek-header:first-child {
    margin-top: 0;
}
.fm-matchweek-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #004225;
}
.fm-matchweek-date {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}
.fm-date-title {
    margin: 16px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #004225;
    padding-bottom: 4px;
    border-bottom: 2px solid #e8e8e8;
}
.fm-match-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e8e8e8;
}
.fm-match-row:hover {
    background: #f0f7f4;
}
.fm-match-home {
    flex: 1;
    text-align: right;
    font-size: 14px;
    padding-right: 12px;
}
.fm-match-away {
    flex: 1;
    text-align: left;
    font-size: 14px;
    padding-left: 12px;
}
.fm-match-score {
    flex: 0 0 80px;
    text-align: center;
}
.fm-score {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}
.fm-kickoff {
    font-size: 13px;
    font-weight: 600;
    color: #004225;
}
.fm-vs {
    font-size: 12px;
    color: #999;
}
.fm-live-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    animation: fm-pulse 1.5s infinite;
}
@keyframes fm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.fm-match-live {
    background: #fef5f5;
}
.fm-match-info {
    text-align: center;
    padding: 2px 12px 8px;
    color: #888;
}
.fm-no-data {
    padding: 16px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Team links in standings */
.fm-team-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.fm-team-link:hover {
    color: #004225;
    text-decoration: underline;
}

/* Team Page */
.fm-team-page {
    max-width: 900px;
    margin: 0 auto;
}
.fm-team-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #004225;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 24px;
}
.fm-team-crest-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}
.fm-team-crest-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}
.fm-team-header-name {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}
.fm-team-header-meta {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}
.fm-team-colors {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.fm-color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
}
.fm-team-photo {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}
.fm-team-photo-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
/* Gallery */
.fm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.fm-gallery-card {
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fm-gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.fm-gallery-link {
    display: block;
}
.fm-gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.fm-gallery-card .fm-gallery-caption {
    margin: 0;
    padding: 8px 10px;
    font-size: 12px;
    color: #555;
}

.fm-team-section {
    margin-bottom: 32px;
}
.fm-team-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #004225;
    padding-bottom: 8px;
    border-bottom: 3px solid #004225;
    margin-bottom: 12px;
}

/* Match row with date column (team page) */
.fm-team-page .fm-match-row {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e8e8e8;
    border-left: 4px solid transparent;
}
.fm-team-page .fm-match-row:hover {
    background: #f0f7f4;
}
.fm-team-page .fm-result-win {
    border-left-color: #27ae60;
}
.fm-team-page .fm-result-draw {
    border-left-color: #f39c12;
}
.fm-team-page .fm-result-loss {
    border-left-color: #e74c3c;
}
.fm-match-date-col {
    flex: 0 0 60px;
    text-align: center;
    line-height: 1.3;
}
.fm-match-day {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #004225;
}
.fm-match-time {
    display: block;
    font-size: 11px;
    color: #888;
}

/* Responsive */
@media (max-width: 600px) {
    .fm-team-header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .fm-team-header-name {
        font-size: 20px;
    }
    .fm-team-crest-large {
        width: 72px;
        height: 72px;
    }
    .fm-standings-table {
        font-size: 11px;
    }
    .fm-standings-table th,
    .fm-standings-table td {
        padding: 6px 3px;
    }
    .fm-match-home,
    .fm-match-away {
        font-size: 12px;
    }
    .fm-match-score {
        flex: 0 0 60px;
    }
}
