/* ====================================================================
   Tipovačka — MS vo futbale 2026
   Samostatné štýly, všetko scopované pod .wctip — nič z InBase
   štýlov sa neprepisuje. Po MS stačí zmazať priečinok tipovacka/.
   ==================================================================== */

.wctip {
	--wctip-navy:       var(--ib-navy, #085086);
	--wctip-navy-deep:  #052e4e;
	--wctip-blue:       var(--ib-cta-blue, #1972b6);
	--wctip-green:      var(--ib-cta-green, #21ac18);
	--wctip-green-hov:  var(--ib-cta-green-hover, #0e8f1b);
	--wctip-gold:       #f0c75e;
	--wctip-bg:         var(--ib-bg, #f6f8fb);
	--wctip-border:     var(--ib-border-soft, #e5e9ef);
	--wctip-muted:      var(--ib-muted, #6b7b95);
	--wctip-text:       var(--ib-text, #2d2d2d);
	--wctip-radius:     var(--ib-radius-card, 18px);
	--wctip-shadow:     var(--ib-shadow-card, 0 0 17px 0 rgba(50, 49, 49, .07));

	color: var(--wctip-text);
	font-size: 16px;
	line-height: 1.55;
}

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

.wctip-wrap {
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.wctip-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(52px, 8vw, 92px) 0 clamp(46px, 6.5vw, 78px);
	background: linear-gradient(160deg, var(--wctip-navy-deep) 0%, var(--wctip-navy) 62%, #0a5f9b 100%);
	color: #fff;
}

/* Náznak stredového kruhu ihriska */
.wctip-hero::before {
	content: "";
	position: absolute;
	width: 540px; height: 540px;
	left: 50%; bottom: -430px;
	transform: translateX(-50%);
	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: 50%;
	pointer-events: none;
}

/* text-align aj na samotných elementoch — téma má section p { text-align: left } */
.wctip-kicker {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-align: center;
	color: rgba(255, 255, 255, .6);
}

.wctip-title {
	margin: 0 0 14px;
	font-size: clamp(32px, 5.5vw, 50px);
	font-weight: 700;
	line-height: 1.12;
	text-align: center;
	color: #fff;
}

.wctip-lead {
	margin: 0 auto 26px;
	max-width: 640px;
	font-size: clamp(16px, 2.2vw, 18px);
	text-align: center;
	color: rgba(255, 255, 255, .82);
}

.wctip-rules {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}
.wctip-rule {
	padding: 0 16px;
	border-right: 1px solid rgba(255, 255, 255, .25);
	font-size: 15px;
	color: rgba(255, 255, 255, .85);
	white-space: nowrap;
}
.wctip-rule:last-child { border-right: 0; }
.wctip-rule b { color: var(--wctip-gold); font-weight: 700; }

.wctip-prize {
	margin: 0 0 8px;
	font-size: 15px;
	text-align: center;
	color: rgba(255, 255, 255, .75);
}
.wctip-prize b { color: var(--wctip-gold); font-weight: 700; }

.wctip-finale {
	margin: 0 0 28px;
	font-size: 13px;
	text-align: center;
	color: rgba(255, 255, 255, .5);
}
.wctip-finale-days { color: rgba(255, 255, 255, .75); font-weight: 600; }

.wctip-hero .wctip-hero-cta {
	display: block;
	width: fit-content;
	margin: 0 auto;
	padding: 13px 34px;
	font-size: 16px;
}

/* --------------------------------------------------------------------
   Hlavná časť, karty
   -------------------------------------------------------------------- */
.wctip-main {
	background: var(--wctip-bg);
	padding: 48px 0 76px;
}

.wctip-card {
	background: #fff;
	border: 1px solid var(--wctip-border);
	border-radius: var(--wctip-radius);
	box-shadow: var(--wctip-shadow);
	padding: clamp(22px, 4vw, 32px);
}
.wctip-card + .wctip-card,
.wctip-alert + .wctip-card { margin-top: 24px; }

.wctip-h2 {
	margin: 0 0 14px;
	font-size: clamp(20px, 3vw, 24px);
	font-weight: 700;
	color: var(--wctip-navy);
}

.wctip-note  { margin: 0 0 20px; color: var(--wctip-muted); font-size: 15px; }
.wctip-empty { margin: 6px 0 0; color: var(--wctip-muted); font-size: 16px; }

.wctip-count {
	margin-left: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wctip-muted);
}

/* --------------------------------------------------------------------
   Hlášky
   -------------------------------------------------------------------- */
.wctip-alert {
	margin: 0 0 24px;
	padding: 13px 18px;
	border-radius: 10px;
	font-weight: 600;
	border: 1px solid transparent;
}
.wctip-alert--ok  { background: #ecf7ea; border-color: #c8e5c3; color: #1d6917; }
.wctip-alert--err { background: #fcefef; border-color: #efc9c9; color: #9c2929; }

/* --------------------------------------------------------------------
   Výsledky turnaja
   -------------------------------------------------------------------- */
.wctip-results-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 6px;
}
.wctip-result-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	text-align: center;
	padding: 18px 12px;
	border: 1px solid var(--wctip-border);
	border-radius: 12px;
	background: #fafbfd;
}
.wctip-result-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wctip-muted); }
.wctip-result-value { font-size: 17px; font-weight: 700; color: var(--wctip-navy); }
.wctip-tbd          { color: var(--wctip-muted); font-weight: 600; }

/* --------------------------------------------------------------------
   Čo tipuje kabína — štatistiky tipov
   -------------------------------------------------------------------- */
.wctip-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 40px;
	margin-top: 4px;
}
.wctip-stat-h {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: left;
	color: var(--wctip-muted);
}
.wctip-stat-row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.wctip-stat-row + .wctip-stat-row { margin-top: 9px; }
.wctip-stat-label {
	flex: 0 0 46%;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wctip-stat-bar {
	flex: 1;
	height: 8px;
	border-radius: 4px;
	background: #eef1f6;
	overflow: hidden;
}
.wctip-stat-bar span {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: var(--wctip-blue);
}
.wctip-stat-bar--green span { background: var(--wctip-green); }
.wctip-stat-count {
	flex: 0 0 34px;
	text-align: right;
	font-size: 13px;
	font-weight: 700;
	color: var(--wctip-muted);
	white-space: nowrap;
}

/* aktuálny počet gólov strelca */
.wctip-goals {
	display: inline-block;
	margin-left: 7px;
	padding: 1px 7px;
	border-radius: 6px;
	background: #eef7ec;
	color: var(--wctip-green-hov);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

/* Druhá šanca — jemný akcent, aby bola odlíšená od hlavných tipov */
.wctip-card--sc { border-top: 3px solid var(--wctip-gold); }

/* --------------------------------------------------------------------
   Formulár
   -------------------------------------------------------------------- */
.wctip-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
	margin-bottom: 22px;
}
.wctip-field--full { grid-column: 1 / -1; }

.wctip-field span {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wctip-navy);
}
.wctip-field input,
.wctip-field select {
	width: 100%;
	padding: 11px 14px;
	font-size: 15px;
	color: var(--wctip-text);
	background: #fff;
	border: 1px solid var(--ib-field-border, #e3e7ee);
	border-radius: 8px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wctip-field select {
	height: 44px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7b95' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px;
	cursor: pointer;
}
.wctip-field input:focus,
.wctip-field select:focus {
	border-color: var(--wctip-blue);
	box-shadow: 0 0 0 3px rgba(25, 114, 182, .12);
}
.wctip-field input::placeholder { color: #a9b4c6; }

.wctip-btn {
	display: inline-block;
	padding: 12px 28px;
	border: 0;
	border-radius: var(--ib-radius-btn, 9px);
	background: var(--wctip-green);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s ease;
}
.wctip-btn:hover,
.wctip-btn:focus {
	background: var(--wctip-green-hov);
	color: #fff;
}

/* Honeypot — mimo obrazovky */
.wctip-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* --------------------------------------------------------------------
   Tabuľky (board tipov + vyhodnotenie)
   -------------------------------------------------------------------- */
.wctip-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.wctip-table {
	width: 100%;
	min-width: 560px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}
.wctip-table th {
	padding: 10px 14px;
	text-align: left;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wctip-muted);
	border-bottom: 2px solid var(--wctip-border);
	white-space: nowrap;
}
.wctip-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--wctip-border);
	vertical-align: middle;
}
.wctip-table tbody tr:last-child td { border-bottom: 0; }
.wctip-table tbody tr:hover td { background: #f7fafd; }

.wctip-td-meno { font-weight: 700; color: var(--wctip-navy); }

/* vyradený tip (play-off) — prečiarknutý načerveno */
.wctip-out {
	color: #b3261e;
	text-decoration: line-through;
	text-decoration-color: rgba(179, 38, 30, .7);
}
.wctip-out .wctip-flag { opacity: .45; filter: grayscale(1); }
.wctip-out-tag {
	display: inline-block;
	margin-left: 7px;
	padding: 1px 7px;
	border-radius: 6px;
	background: #fce9e7;
	color: #b3261e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: 1px;
}
.wctip-note-out { color: var(--wctip-muted); }
.wctip-note-out b { color: #b3261e; }

/* vlajky — obrázky (flagcdn), emoji vlajky Windows nezobrazí */
.wctip-flag {
	height: 14px;
	width: auto;
	margin-right: 8px;
	vertical-align: -1px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

/* triedenie klikom na hlavičku */
.wctip-table th[data-sort] {
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}
.wctip-table th[data-sort]::after {
	content: "↕";
	margin-left: 6px;
	font-size: 11px;
	opacity: .4;
}
.wctip-table th[data-sort]:hover { color: var(--wctip-navy); }
.wctip-table th[data-sort].is-asc::after  { content: "↑"; opacity: 1; }
.wctip-table th[data-sort].is-desc::after { content: "↓"; opacity: 1; }

/* mazanie tipu (len admin) */
.wctip-th-del, .wctip-td-del { width: 40px; text-align: right; }
.wctip-del {
	width: 26px; height: 26px;
	padding: 0;
	border: 1px solid #efc9c9;
	border-radius: 50%;
	background: #fcefef;
	color: #9c2929;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.wctip-del:hover { background: #9c2929; color: #fff; }

/* --------------------------------------------------------------------
   Vyhodnotenie — rebríček
   -------------------------------------------------------------------- */
.wctip-th-rank  { width: 52px; }
.wctip-th-total { text-align: right; }
.wctip-table--rank td:last-child { text-align: right; }

.wctip-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: #eef1f6;
	color: var(--wctip-muted);
	font-size: 13px;
	font-weight: 700;
}
.wctip-rank.is-1 { background: #f5df9f; color: #6b4d00; }
.wctip-rank.is-2 { background: #dde3ea; color: #4a5568; }
.wctip-rank.is-3 { background: #e9cdb2; color: #6e3f12; }

.wctip-table--rank tr.is-top-1 td { background: #fdf8ea; }
.wctip-table--rank tr.is-top-1:hover td { background: #faf2d9; }

.wctip-pts {
	display: inline-block;
	min-width: 36px;
	padding: 2px 9px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}
.wctip-pts.is-hit  { background: #ecf7ea; color: #1d6917; }
.wctip-pts.is-near { background: #fdf3d7; color: #8a6100; }
.wctip-pts.is-miss { background: #f2f4f8; color: #97a3b6; }
.wctip-pts.is-na   { background: transparent; color: #b6c0cf; }

.wctip-total {
	font-size: 16px;
	font-weight: 700;
	color: var(--wctip-navy);
	white-space: nowrap;
}

.wctip-legend {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--wctip-muted);
}

/* --------------------------------------------------------------------
   Scenáre finále — „na čom sme"
   -------------------------------------------------------------------- */
.wctip-scenare {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px 28px;
	margin-top: 6px;
}
.wctip-scenar-h {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--wctip-border);
	font-size: 15px;
	font-weight: 800;
	color: var(--wctip-navy);
}
.wctip-scenar-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
.wctip-scenar-list li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 11px;
	padding: 7px 8px;
	border-radius: 8px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.wctip-scenar-info {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #eef1f6;
	color: var(--wctip-muted);
	font-size: 11px;
	font-weight: 800;
	font-style: italic;
	line-height: 17px;
	text-align: center;
}
.wctip-scenar-list li:hover .wctip-scenar-info,
.wctip-scenar-list li.is-open .wctip-scenar-info { background: var(--wctip-blue); color: #fff; font-style: normal; }
.wctip-scenar-list li.is-open .wctip-scenar-info::after { content: "×"; }
.wctip-scenar-list li.is-open .wctip-scenar-info { font-size: 0; }
.wctip-scenar-list li.is-open .wctip-scenar-info::after { font-size: 13px; }

/* rozpis bodov — skrytý, rozbalí sa na klik/ťuk (funguje aj na mobile) */
.wctip-rozpis {
	display: none;
	flex-basis: 100%;
	margin-top: 4px;
	padding: 8px 10px;
	border-radius: 7px;
	background: var(--wctip-bg);
	color: var(--wctip-muted);
	font-size: 12.5px;
	line-height: 1.5;
}
.wctip-scenar-list li.is-open .wctip-rozpis { display: block; }

.wctip-rozpis-row { display: none; }
.wctip-rozpis-row td {
	padding: 8px 14px 12px;
	color: var(--wctip-muted);
	font-size: 12.5px;
	line-height: 1.5;
	background: var(--wctip-bg);
}
.wctip-rozpis-toggle.is-open + .wctip-rozpis-row { display: table-row; }
.wctip-table--rank tbody tr.wctip-rozpis-toggle { cursor: pointer; }
.wctip-scenar-list li + li { margin-top: 2px; }
.wctip-scenar-list li.is-top-1 { background: #fdf8ea; }
.wctip-scenar-meno {
	flex: 1;
	font-weight: 700;
	color: var(--wctip-navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wctip-scenar-body {
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 800;
	color: var(--wctip-navy);
	white-space: nowrap;
}

/* --------------------------------------------------------------------
   Admin box
   -------------------------------------------------------------------- */
.wctip-admin { border-style: dashed; background: #fbfcfe; }
.wctip-admin ul { margin: 0; padding-left: 20px; color: var(--wctip-muted); }
.wctip-admin li { font-size: 14px; line-height: 1.6; }
.wctip-admin li + li { margin-top: 6px; }
.wctip-admin code {
	padding: 1px 6px;
	border-radius: 5px;
	background: #eef1f6;
	color: var(--wctip-navy);
	font-size: 13px;
}

/* --------------------------------------------------------------------
   Mobil
   -------------------------------------------------------------------- */
@media (max-width: 700px) {
	.wctip-form-grid { grid-template-columns: 1fr; }
	.wctip-results-grid { grid-template-columns: 1fr; }
	.wctip-stats { grid-template-columns: 1fr; }
	.wctip-scenare { grid-template-columns: 1fr; gap: 8px; }
	.wctip-btn { width: 100%; text-align: center; }
	.wctip-rule { padding: 0 10px; font-size: 14px; }
	.wctip-main { padding: 32px 0 52px; }
	.wctip-card { border-radius: 14px; }
}
