/*
Theme Name: M4 Football
Theme URI: 
Author: AI
Author URI: 
Description: 
Version: 1.1.2
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GPLv2 or later
Text Domain: m4-football
*/

/* ==========================================================================
   THEME STYLESHEET - M4 FOOTBALL
   Dynamic options (Colors, Fonts, Border Radius, Layout) are managed in:
   WordPress Admin > Theme Football Settings
   ========================================================================== */


/* Stream Channels & Commentator Switcher Bar */
.stream-channels-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-card, #1f1f1f);
    padding: 12px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color, #333333);
    border-radius: var(--border-radius, 8px);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.stream-channels-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stream-channel-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #a3a3a3);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.stream-channel-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stream-server-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface-medium, #262626);
    color: var(--text-main, #f8fafc);
    border: 1px solid var(--border-color, #333333);
    border-radius: var(--border-radius-sm, 6px);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
}

.stream-server-btn:hover {
    background: var(--bg-hover, #333333);
    color: var(--link-hover-color, var(--accent-blue));
}

.stream-server-btn.active {
    background: var(--accent-blue, #a3e635) !important;
    color: var(--accent-contrast, #101010) !important;
    border-color: var(--accent-blue, #a3e635) !important;
}

.stream-server-btn.active .live-dot-mini {
    background: var(--accent-contrast, #101010);
}

.live-dot-mini {
    width: 8px;
    height: 8px;
    background: var(--accent-red, #ef4444);
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
}

.inline-svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ==========================================================================
   UNIFORM 300px BOX CARDS WITH AUTO SCROLL
   ========================================================================== */
.uniform-box-card {
    height: 300px !important;
    max-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-card, #1f1f1f) !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    border: 1px solid var(--border-color, #333333);
    border-radius: var(--border-radius, 12px);
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.uniform-box-header {
    flex-shrink: 0;
    padding: 12px 18px;
    background: var(--surface-medium, #262626);
    color: var(--text-main, #f8fafc);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color, #333333);
    margin: 0;
}

.uniform-box-body {
    flex: 1;
    overflow-y: auto !important;
    padding: 16px 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-strong, #444) transparent;
}

.uniform-box-body::-webkit-scrollbar {
    width: 6px;
}

.uniform-box-body::-webkit-scrollbar-track {
    background: transparent;
}

.uniform-box-body::-webkit-scrollbar-thumb {
    background: var(--surface-strong, #444);
    border-radius: 4px;
}

/* Non-live match info frame */
.match-info-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--bg-panel, #171717);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius, 12px);
}

.match-info-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--accent-primary-glow, rgba(163,230,53,0.15)) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.match-info-placeholder > * {
    position: relative;
    z-index: 1;
}

.match-info-placeholder .info-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.match-info-placeholder .info-league-badge {
    background: var(--surface-medium, #262626);
    color: var(--text-main, #f8fafc);
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm, 6px);
}

.match-info-placeholder .info-status-badge {
    background: var(--accent-blue, #a3e635);
    color: var(--accent-contrast, #101010);
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm, 6px);
}

.match-info-placeholder .info-status-badge.status-finished {
    background: var(--surface-strong, #333333);
    color: var(--text-muted, #a3a3a3);
}

.match-info-placeholder .info-status-badge.status-postponed {
    background: var(--accent-gold, #f59e0b);
    color: #101010;
}

.match-info-placeholder .info-teams-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 650px;
    margin-bottom: 20px;
}

.match-info-placeholder .info-team-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.match-info-placeholder .info-team-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.match-info-placeholder .info-team-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
}

.match-info-placeholder .info-score-col {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.match-info-placeholder .info-score-text {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-gold, #f59e0b);
    letter-spacing: 2px;
}

.match-info-placeholder .info-vs-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-muted, #a3a3a3);
    background: var(--surface-medium, #262626);
    padding: 6px 16px;
    border-radius: var(--border-radius-sm, 6px);
}

.match-info-placeholder .info-time-box {
    background: var(--surface-medium, #262626);
    padding: 8px 20px;
    color: var(--text-muted, #a3a3a3);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    border-radius: var(--border-radius-sm, 6px);
}

.match-info-placeholder .info-notice-bar {
    background: var(--surface-soft, rgba(255,255,255,0.03));
    color: var(--accent-gold, #f59e0b);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--border-radius-sm, 6px);
}

.desktop-only-grid > .uniform-box-card {
    margin-bottom: 0 !important;
}

.mockup-action-btn {
    background: var(--accent-blue, #a3e635) !important;
    color: var(--accent-contrast, #101010) !important;
    border: none;
    border-radius: var(--border-radius-sm, 6px);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    transition: opacity 0.2s ease;
}

.mockup-action-btn:hover {
    opacity: 0.9;
}