/* ── Synottip Hockey Championship ── */
:root {
    --shc-purple-dark: rgba(121, 81, 244, 0.47);
    --shc-purple-mid: #2d1b4e;
    --shc-purple-light: #3d2a5c;
    --shc-green: #47D66E;
    --shc-white: #ffffff;
    --shc-gray: #ffffff;
    --shc-border: rgba(255, 255, 255, 0.12);
}

.shc-wrapper {
    font-family: "Roboto Condensed", Sans-serif;
    color: var(--shc-white);
    background: var(--shc-purple-dark);
    max-width: 100%;
    overflow: hidden;
    line-height: 1.4;
}

.shc-wrapper *, .shc-wrapper *::before, .shc-wrapper *::after {
    box-sizing: border-box;
}

/* ── Hero ── */
.shc-hero {
    position: relative;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-color: var(--shc-purple-mid);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.shc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 10, 46, 0.3) 0%,
        rgba(26, 10, 46, 0.6) 60%,
        rgba(26, 10, 46, 0.95) 100%
    );
    z-index: 1;
}

.shc-hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.shc-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 8px;
    background: var(--shc-green);
    color: var(--shc-white);
    display: inline-block;
    padding: 8px 24px;
    letter-spacing: 1px;
    border: 3px solid var(--shc-white);
}

.shc-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    background: var(--shc-purple-mid);
    display: inline-block;
    padding: 6px 20px;
    border: 2px solid var(--shc-white);
}

/* ── Next game widget (hero overlay) ── */
.shc-next-game-widget {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
    background: rgba(93, 63, 160, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 16px 24px;
    text-align: center;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shc-next-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shc-next-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.shc-next-teams + .shc-next-teams {
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.shc-vs {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.8;
}

.shc-countdown {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ── Flags (flag-icons library) ── */
.shc-flag {
    display: inline-block;
    font-size: 28px;
    line-height: 1;
    vertical-align: middle;
}

.shc-flag .fi {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.shc-flag-sm {
    font-size: 18px;
}

.shc-flag-lg {
    font-size: 48px;
}

/* ── Content area ── */
.shc-content {
    background: linear-gradient(180deg, var(--shc-purple-dark) 0%, #120822 100%);
    padding: 30px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Two-column layout ── */
.shc-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.shc-section-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
}

.shc-section-title.shc-green {
    color: var(--shc-green);
}

/* ── Upcoming games list ── */
.shc-games-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.shc-game-row {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid var(--shc-border);
    gap: 8px;
    font-size: 14px;
    transition: background 0.15s;
}

.shc-game-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.shc-game-date {
    color: var(--shc-green);
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    white-space: nowrap;
}

.shc-game-home {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    justify-content: flex-end;
    text-align: right;
    font-size: 14px;
}

.shc-game-time {
    font-size: 12px;
    color: var(--shc-green);
    min-width: 40px;
    text-align: center;
}

.shc-game-away {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    font-size: 14px;
}

/* ── Hidden rows (see more) ── */
.shc-games-hidden,
.shc-standings-hidden {
    display: none;
}

/* ── See more button ── */
.shc-see-more {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: transparent;
    border: 1px solid var(--shc-border);
    border-radius: 6px;
    color: var(--shc-green);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-align: center;
}

.shc-see-more:hover {
    background: rgba(71, 214, 110, 0.1);
    border-color: var(--shc-green);
}

/* ── Standings table ── */
.shc-standings-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.shc-standings-table thead th {
    padding: 6px 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--shc-gray);
    text-transform: uppercase;
    border-bottom: 2px solid var(--shc-border);
}

.shc-standings-table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--shc-border);
    font-size: 14px;
}

.shc-standings-table .shc-rank {
    color: var(--shc-green);
    font-weight: 700;
    width: 24px;
    text-align: center;
}

.shc-standings-table thead .shc-rank {
    text-align: center;
}

.shc-standings-table .shc-team-name {
    font-weight: 700;
    text-transform: uppercase;
    padding-left: 8px;
}

.shc-standings-table .shc-stat {
    text-align: center;
    width: 36px;
    color: var(--shc-gray);
}

.shc-standings-table .shc-stat-pts {
    color: var(--shc-white);
    font-weight: 700;
}

.shc-standings-table thead th[title] {
    cursor: help;
    text-decoration: underline dotted rgba(255, 255, 255, 0.25);
    text-underline-offset: 3px;
}

/* ── Featured match odds ── */
.shc-featured-odds {
    background: var(--shc-purple-dark);
    border-radius: 8px;
    padding: 24px 20px;
    margin-bottom: 40px;
    text-align: center;
}

.shc-featured-match {
    margin-top: 16px;
}

.shc-featured-match + .shc-featured-match {
    margin-top: 24px;
    padding-top: 24px;
}

.shc-featured-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #7951f4;
    padding: 20px 30px;
    margin-bottom: 16px;
}

.shc-featured-home-name,
.shc-featured-away-name {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shc-featured-vs {
    font-size: 20px;
    font-weight: 700;
	color: var(--shc-green);
}

.shc-odds-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.shc-odd {
    font-size: 22px;
    font-weight: 700;
    color: var(--shc-green);
    padding: 0px 10px 8px 10px;
    border-radius: 6px;
    text-decoration: none;
}

/* ── Blog CTA ── */
.shc-blog-cta {
    text-align: center;
    padding: 20px 0;
}

.shc-blog-cta h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
}

.shc-blog-btn {
    display: inline-block;
    padding: 12px 48px;
    border: 2px solid var(--shc-white);
    border-radius: 30px;
    color: var(--shc-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
}

.shc-blog-btn:hover {
    background: var(--shc-white);
    color: var(--shc-purple-dark);
}

/* ── Loading / empty states ── */
.shc-loading,
.shc-empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--shc-white);
    font-size: 14px;
}

.shc-standings-placeholder {
    font-size: 18px;
    font-weight: 600;
    padding: 40px 10px;
}

.shc-odd-label {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    display: block;
    margin-bottom: 2px;
}

.shc-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--shc-gray);
    border-top-color: var(--shc-green);
    border-radius: 50%;
    animation: shc-spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes shc-spin {
    to { transform: rotate(360deg); }
}

/* ── Standalone widget spacing ── */
.shc-widget {
    padding: 24px 20px;
    border-radius: 8px;
}

.shc-widget .shc-section-title {
    margin-top: 0;
}

/* ── Floating timer ── */
.shc-floating-timer {
    position: fixed;
    top: 254px;
    right: 24px;
    z-index: 9999;
    background: #7951f4;
    backdrop-filter: blur(12px);
    padding: 18px 24px;
    text-align: center;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-family: "Roboto Condensed", Sans-serif;
    color: var(--shc-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.shc-floating-timer.shc-floating-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
.shc-floating-label {
	font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    color: var(--shc-white);
}

.shc-floating-games .shc-next-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.shc-floating-games .shc-next-teams + .shc-next-teams {
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.shc-floating-timer .shc-vs {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.8;
}

.shc-floating-timer .shc-flag {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
}

.shc-floating-timer .shc-countdown {
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    margin-top: 8px;
}

.shc-floating-close {
    position: absolute;
    top: -3px;
    right: 3px;
    background: none;
    border: none;
    color: var(--shc-gray);
    font-size: 20px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.15s;
}

.shc-floating-close:hover {
    color: none;
	background: none;
}


/* ── Responsive ── */
@media (max-width: 768px) {
    .shc-title {
        font-size: 22px;
        padding: 6px 14px;
    }

    .shc-subtitle {
        font-size: 14px;
        padding: 4px 12px;
    }

    .shc-hero {
        min-height: 350px;
        padding: 30px 16px;
    }

    .shc-floating-timer {
        top: 200px;
        right: 12px;
        min-width: 170px;
        padding: 7px 9px;
    }
	
	.shc-floating-label {
		font-size: 14px;
		margin-bottom: 4px;
	}
	
	.shc-floating-timer .shc-vs {
		font-size: 14px;
	}

    .shc-floating-timer .shc-countdown {
        font-size: 20px;
		margin-top: 0px;
    }

    .shc-floating-timer .shc-flag {
        font-size: 22px;
    }

    .shc-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .shc-featured-home-name,
    .shc-featured-away-name {
        font-size: 20px;
    }

    .shc-featured-teams {
        padding: 14px 16px;
        gap: 10px;
    }

    .shc-flag-lg {
        font-size: 36px;
    }

    .shc-content {
        padding: 20px 12px 30px;
    }
	
}

@media (max-width: 480px) {
    .shc-title {
        font-size: 18px;
    }

    .shc-featured-home-name,
    .shc-featured-away-name {
        font-size: 16px;
    }

    .shc-countdown {
        font-size: 22px;
    }

    .shc-game-home,
    .shc-game-away {
        font-size: 12px;
    }
}
