/* VMkollen plugin — frontend component styles
 * Scoped under .vmk-* to avoid theme conflicts. Uses CSS vars
 * so themes can override brand colors without editing this file.
 */

:root {
	--vmk-primary: #0b1d3a;
	--vmk-accent:  #f5c518;
	--vmk-live:    #e11d48;
	--vmk-bg:      #ffffff;
	--vmk-surface: #f7f8fa;
	--vmk-border:  #e4e7eb;
	--vmk-text:    #111827;
	--vmk-muted:   #6b7280;
	--vmk-radius:  10px;
	--vmk-shadow:  0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}

/* ----- Match card ----- */
.vmk-match {
	display: block;
	background: var(--vmk-bg);
	border: 1px solid var(--vmk-border);
	border-radius: var(--vmk-radius);
	padding: 14px 18px;
	margin: 10px 0;
	text-decoration: none;
	color: var(--vmk-text);
	transition: transform .15s ease, box-shadow .15s ease;
}
.vmk-match:hover { transform: translateY(-1px); box-shadow: var(--vmk-shadow); }

.vmk-match__status {
	font-size: 12px; font-weight: 600; letter-spacing: .05em;
	text-transform: uppercase; color: var(--vmk-muted);
	margin-bottom: 8px;
}
.vmk-match.is-live .vmk-match__status {
	color: var(--vmk-live);
	animation: vmk-pulse 1.5s infinite;
}
.vmk-match.is-finished .vmk-match__status { color: var(--vmk-primary); }

.vmk-match__teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
}
.vmk-match__team { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.vmk-match__team--away { justify-content: flex-end; }
.vmk-match__team img { border-radius: 50%; background: var(--vmk-surface); }
.vmk-match__score { font-size: 20px; font-variant-numeric: tabular-nums; text-align: center; }
.vmk-match__score strong { color: var(--vmk-primary); }
.vmk-vs { color: var(--vmk-muted); font-weight: 400; }

@keyframes vmk-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: .55; }
}

/* ----- Day heading in schedule ----- */
.vmk-day {
	margin: 30px 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--vmk-accent);
	font-size: 18px;
}

/* ----- Standings table ----- */
.vmk-standings {
	background: var(--vmk-bg);
	border: 1px solid var(--vmk-border);
	border-radius: var(--vmk-radius);
	padding: 16px;
	margin: 16px 0;
}
.vmk-standings__title {
	margin: 0 0 12px;
	font-size: 16px;
	color: var(--vmk-primary);
}
.vmk-standings table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vmk-standings th {
	text-align: left; padding: 6px 4px;
	font-weight: 600; color: var(--vmk-muted);
	border-bottom: 1px solid var(--vmk-border);
}
.vmk-standings td { padding: 8px 4px; border-bottom: 1px solid var(--vmk-border); }
.vmk-standings tr:last-child td { border-bottom: none; }
.vmk-team-cell { display: flex; align-items: center; gap: 8px; }
.vmk-qualify td { background: rgba(245, 197, 24, 0.08); }

.vmk-standings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
}

/* ----- Countdown ----- */
.vmk-countdown {
	background: linear-gradient(135deg, var(--vmk-primary), #1e3a8a);
	color: #fff;
	padding: 24px;
	border-radius: var(--vmk-radius);
	text-align: center;
	margin: 20px 0;
}
.vmk-countdown__label {
	font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
	opacity: .85; margin-bottom: 14px;
}
.vmk-countdown__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	max-width: 460px;
	margin: 0 auto;
}
.vmk-countdown__grid > div {
	background: rgba(255,255,255,0.1);
	border-radius: 8px;
	padding: 12px 6px;
}
.vmk-countdown__grid span {
	display: block;
	font-size: 32px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.vmk-countdown__grid small {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: .8;
	margin-top: 4px;
}

/* ----- Bracket ----- */
.vmk-bracket {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin: 20px 0;
}
.vmk-bracket__round h3 {
	text-align: center;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--vmk-primary);
	padding-bottom: 8px;
	border-bottom: 2px solid var(--vmk-accent);
	margin-bottom: 12px;
}

/* ----- News list ----- */
.vmk-news { list-style: none; padding: 0; margin: 0; }
.vmk-news__item { border-bottom: 1px solid var(--vmk-border); }
.vmk-news__item:last-child { border-bottom: none; }
.vmk-news__item a {
	display: block; padding: 14px 4px;
	text-decoration: none; color: var(--vmk-text);
}
.vmk-news__item a:hover { background: var(--vmk-surface); }
.vmk-news__source {
	display: inline-block;
	font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .08em;
	color: var(--vmk-accent);
	background: var(--vmk-primary);
	padding: 2px 8px; border-radius: 3px;
	margin-bottom: 6px;
}
.vmk-news__title { margin: 4px 0; font-size: 15px; line-height: 1.4; }
.vmk-news__date { font-size: 12px; color: var(--vmk-muted); }

/* ----- Affiliate widget ----- */
.vmk-affiliate {
	background: var(--vmk-surface);
	border-left: 4px solid var(--vmk-accent);
	padding: 18px 20px;
	margin: 24px 0;
	border-radius: 0 var(--vmk-radius) var(--vmk-radius) 0;
}
.vmk-affiliate h4 { margin: 0 0 8px; color: var(--vmk-primary); }
.vmk-affiliate__cta {
	display: inline-block;
	background: var(--vmk-primary);
	color: #fff;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background .15s;
}
.vmk-affiliate__cta:hover { background: #1e3a8a; color: #fff; }

/* ----- Empty states ----- */
.vmk-empty {
	color: var(--vmk-muted);
	font-style: italic;
	text-align: center;
	padding: 20px;
}

/* ----- Live container ----- */
.vmk-live {
	background: var(--vmk-bg);
	border: 1px solid var(--vmk-border);
	border-radius: var(--vmk-radius);
	padding: 12px;
}

/* ----- Mobile tweaks ----- */
@media (max-width: 560px) {
	.vmk-match__score { font-size: 18px; }
	.vmk-countdown__grid span { font-size: 24px; }
	.vmk-standings table { font-size: 13px; }
}
