@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #01639a;
    --primary-dark: #014f7d;
    --accent-color: #00d2ff;
    /* Keep for some highlights, or switch to a darker blue? Let's use primary for text. */
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-color: #1c1e21;
    --text-muted: #65676b;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
}

body {
    background: var(--bg-color);
    /* Simple clean background, maybe a subtle pattern or gradient? */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(1, 99, 154, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(1, 99, 154, 0.05) 0%, transparent 20%);
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 10px;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
.wtm-ticker-label,
.wtm-live-indicator,
.podium-block,
.button-schedule {
    font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
    letter-spacing: 1px;
}

#wtm-monitor-root {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Components --- */
.wtm-header {
    margin-bottom: 30px;
    text-align: center;
    /* Remove text-shadow for clean light look */
}

.wtm-header h1 {
    font-size: 3.5em;
    /* Compensate for lighter weight visual */
    color: var(--primary-color);
    margin-bottom: 0;
    margin-top: 0;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.wtm-header h2 {
    font-size: 2em;
    color: var(--text-muted);
    margin-top: 5px;
    margin-bottom: 5px;
}

/* Ticker (Upcoming/Previous) */
.wtm-ticker {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.wtm-ticker-box {
    flex: 1;
    background: var(--card-bg);
    border: none;
    /* Shadow handles definition */
    border-top: 4px solid var(--primary-color);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wtm-ticker-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.wtm-ticker-label {
    font-size: 1.1em;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.wtm-ticker-content {
    font-size: 1.2em;
    /* Increased for Bebas */
    font-weight: 400;
	font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
    /* Bebas is naturally bold */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.wtm-ticker-content img {
    height: 30px;
    /* Kept small but visible */
    margin: 0 10px;
}

/* Main Stage */
.wtm-main-stage {
    background: var(--card-bg);
    border: none;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.wtm-main-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.wtm-live-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e63946;
    color: #fff;
    padding: 4px 12px;
    font-size: 1.1em;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

.wtm-match-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.wtm-team-large h1 {
    font-size: 2.5em;
    margin: 15px 0 0 0;
    color: var(--text-color);
    line-height: 1.1;
}

.wtm-logo-large {
    height: 80px;
    /* Reset to slightly larger for white theme, can adjust downstream */
    width: 80px;
    object-fit: contain;
    /* Drop shadow for white bg */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s;
}

.wtm-team-large:hover .wtm-logo-large {
    transform: scale(1.05);
}

.wtm-score-large {
    font-size: 6em;
    font-family: 'Bebas Neue', sans-serif;
    color: var(--primary-color);
    /* Primary color for score instead of white */
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
    line-height: 1;
}

#live-timer-frontend {
    font-size: 2.5em !important;
    margin-top: 10px !important;
    color: #555 !important;
    /* Darker grey for timer */
    font-weight: bold;
}


/* Tables */
.wtm-tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.wtm-table-card {
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s;
}

.wtm-table-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.wtm-table-header {
    background: var(--primary-color);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 1.3em;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.wtm-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
    font-size: 0.95em;
	font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
}

.wtm-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
    /* Slight increase for Bebas readability */
}

.wtm-table tr:last-child td {
    border-bottom: none;
}

.wtm-table tr:hover {
    background: #f8f9fa;
}

.wtm-table td:nth-child(1) {
    /* Rank */
    color: var(--text-muted);
    font-weight: bold;
}

.wtm-table td:last-child {
    /* Points */
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1em;
}

/* Schedule Button */
.button-schedule {
    font-size: 1.3em;
    padding: 12px 40px;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(1, 99, 154, 0.2);
}

.button-schedule:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(1, 99, 154, 0.4);
    transform: translateY(-2px);
}

/* --- Schedule Modal --- */
#wtm-schedule-modal {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

#wtm-schedule-modal>div {
    background: #fff !important;
    border: none;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px;
}

#wtm-schedule-modal h2 {
    color: var(--primary-color);
    margin-top: 0;
}

#wtm-schedule-modal table th {
    background: #f8f9fa;
    color: #555;
    border-bottom: 2px solid var(--primary-color);
}

#wtm-schedule-modal table td {
    border-bottom: 1px solid #eee;
    color: #333;
}

/* --- Podium --- */
.podium-block {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: none !important;
    background: #fff;
    /* Fallback */
}

.rank-1 .podium-block {
    background: linear-gradient(45deg, #FFD700, #FDB931);
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.rank-2 .podium-block {
    background: linear-gradient(45deg, #E0E0E0, #BDBDBD);
    color: #fff;
}

.rank-3 .podium-block {
    background: linear-gradient(45deg, #CD7F32, #A0522D);
    color: #fff;
}

/* --- RESPONSIVE / COMPACT --- */
@media (max-width: 768px) {
    .wtm-header h1 {
        font-size: 2.2em;
    }

    .wtm-header h2 {
        font-size: 1.5em;
    }

    .wtm-ticker {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .wtm-ticker-box {
        padding: 12px;
        box-shadow: var(--shadow-soft);
    }

    .wtm-ticker-content {
        font-size: 1.1em;
    }

    .wtm-ticker-content img {
        height: 25px;
        margin: 0 5px;
    }

    .wtm-main-stage {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Enforce Small Logos as requested */
    .wtm-logo-large {
        height: 50px;
        width: 50px;
    }

    .wtm-team-large h1 {
        font-size: 1.5em;
    }

    .wtm-score-large {
        font-size: 4em;
    }

    .wtm-match-display {
        padding: 10px 0;
    }
}