/* Čebelji kviz – javni del
 * Barve in pisavo lahko prilagodite s CSS spremenljivkami v svoji temi, npr.:
 *   .ck { --ck-yellow: #f9b233; }
 */
.ck {
	--ck-yellow: #fdb92c;
	--ck-yellow-dark: #eaa413;
	--ck-ink: #1d1d1d;
	--ck-dark: #2a2a2a;
	--ck-muted: #6f6f6f;
	--ck-line: #e6e6e6;
	--ck-soft: #f3f3f3;
	--ck-white: #fff;
	--ck-ok: #2f9e5b;
	--ck-bad: #d64545;
	--ck-radius: 4px;
	--ck-shadow: 0 6px 24px rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .06);
	--ck-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	font-family: var(--ck-font);
	color: var(--ck-ink);
	line-height: 1.45;
	box-sizing: border-box;
}
.ck *, .ck *::before, .ck *::after { box-sizing: inherit; }
.ck-main { padding: 40px 16px 64px; }

/* ---------- Glava strani ---------- */
.ck-page { max-width: 640px; margin: 0 auto; }
.ck-hero { text-align: center; margin-bottom: 28px; }
.ck-hero__title {
	font-family: var(--ck-font);
	font-size: clamp(2.2rem, 7vw, 3.6rem);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.05;
	margin: 0 0 8px;
	color: var(--ck-ink);
}
.ck-hero__sub { margin: 0; font-size: 1.05rem; color: var(--ck-ink); }
.ck-list .ck-hero__title { font-size: clamp(1.6rem, 5vw, 2.4rem); text-align: center; margin: 0 0 18px; }
.ck-list .ck-hero__sub { text-align: center; margin-bottom: 20px; }

/* ---------- Kartica ---------- */
.ck-card {
	background: var(--ck-white);
	box-shadow: var(--ck-shadow);
	border-radius: var(--ck-radius);
	overflow: hidden;
}
.ck-card__head {
	background: var(--ck-yellow);
	color: var(--ck-white);
	font-weight: 700;
	font-size: 1.35rem;
	padding: 22px 28px;
}
.ck-card__body { padding: 28px; }
@media (max-width: 480px) {
	.ck-card__head { padding: 18px 20px; font-size: 1.15rem; }
	.ck-card__body { padding: 20px; }
}

/* ---------- Gumbi ---------- */
.ck-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: 11px 22px;
	border: 0; border-radius: var(--ck-radius);
	font: 600 .95rem/1.2 var(--ck-font);
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .12s ease, background-color .15s ease, opacity .15s;
}
.ck-btn:hover { transform: translateY(-1px); }
.ck-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ck-btn--yellow { background: var(--ck-yellow); color: var(--ck-white) !important; }
.ck-btn--yellow:hover { background: var(--ck-yellow-dark); }
.ck-btn--dark { background: var(--ck-ink); color: var(--ck-white) !important; }
.ck-btn--ghost { background: transparent; color: var(--ck-ink) !important; box-shadow: inset 0 0 0 1.5px var(--ck-line); }
.ck-btn--small { padding: 7px 16px; font-size: .8rem; }
.ck-back { text-align: center; margin-top: 32px; }

/* ---------- Seznam sklopov / misij ---------- */
.ck.ck-list { max-width: 420px !important; margin-left: auto !important; margin-right: auto !important; }
.ck.ck-page, .ck.ck-profile, .ck.ck-leaderboard { margin-left: auto !important; margin-right: auto !important; }
.ck-list .ck-alert { margin-bottom: 20px; }
.ck-buttons { display: flex; flex-direction: column; gap: 14px; }
.ck-choice {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	min-height: 54px;
	padding: 12px 56px;
	border-radius: var(--ck-radius);
	text-align: center;
	font-size: 1rem;
	text-decoration: none !important;
	transition: transform .12s ease, box-shadow .15s ease, background-color .15s;
}
.ck-choice:hover { transform: translateY(-2px); }
.ck-choice__badge {
	position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	font-size: .72rem; font-weight: 700;
	padding: 3px 8px; border-radius: 999px;
	white-space: nowrap;
}

/* Kvizi: beli gumbi, aktiven rumen */
.ck-list--light .ck-choice {
	background: var(--ck-white);
	color: var(--ck-ink) !important;
	box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
}
.ck-list--light .ck-choice:hover { box-shadow: var(--ck-shadow); }
.ck-list--light .ck-choice.is-active { background: var(--ck-yellow); color: var(--ck-white) !important; font-weight: 700; box-shadow: 0 4px 14px rgba(253,185,44,.45); }
.ck-list--light .ck-choice__badge { background: #eaf6ef; color: var(--ck-ok); }

/* Misije: temni gumbi z rumenim besedilom, aktiven rumen */
.ck-list--dark .ck-choice {
	background: var(--ck-dark);
	color: var(--ck-yellow) !important;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.ck-list--dark .ck-choice:hover { background: #333; }
.ck-list--dark .ck-choice.is-active { background: var(--ck-yellow); color: var(--ck-white) !important; font-weight: 700; }
.ck-list--dark .ck-choice__badge { background: rgba(255,255,255,.12); color: #fff; }
.ck-list--dark .ck-choice__badge--approved { background: var(--ck-ok); }
.ck-list--dark .ck-choice__badge--rejected { background: var(--ck-bad); }
.ck-choice.is-done { opacity: .85; }

/* ---------- Vprašanje ---------- */
.ck-question {
	font-family: var(--ck-font);
	font-size: clamp(1.4rem, 4vw, 1.9rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	margin: 0 0 6px;
	color: var(--ck-ink);
}
.ck-hint { font-size: .85rem; color: var(--ck-muted); margin: 0 0 18px; }
.ck-bonus-tag {
	display: inline-block; margin-bottom: 10px;
	background: #fff4da; color: #8a5a00;
	font-size: .78rem; font-weight: 700;
	padding: 4px 10px; border-radius: 999px;
}

.ck-options { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.ck-option {
	position: relative;
	display: flex; align-items: flex-start; gap: 14px;
	padding: 8px 6px;
	border-radius: var(--ck-radius);
	cursor: pointer;
	font-size: 1.05rem;
}
.ck-option:hover { background: #fafafa; }
.ck-option input { position: absolute; opacity: 0; pointer-events: none; }
.ck-option__box {
	flex: 0 0 22px; height: 22px; margin-top: 1px;
	border: 2px solid #cfcfcf; border-radius: 3px;
	background: var(--ck-white);
	display: grid; place-items: center;
	transition: all .12s;
}
.ck-option input:checked + .ck-option__box { background: var(--ck-yellow); border-color: var(--ck-yellow); }
.ck-option input:checked + .ck-option__box::after {
	content: ""; width: 6px; height: 11px; margin-top: -2px;
	border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.ck-option input:focus-visible + .ck-option__box { outline: 2px solid var(--ck-ink); outline-offset: 2px; }

.ck-selected {
	background: var(--ck-soft);
	border-radius: var(--ck-radius);
	padding: 10px 14px;
	font-size: .85rem; color: var(--ck-muted);
	margin-bottom: 22px;
	min-height: 40px;
}
.ck-selected strong { color: var(--ck-ink); }
.ck-quiz__nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ck-quiz__prev { background: none; border: 0; color: var(--ck-muted); cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; padding: 0; }
.ck-quiz__count { margin: 26px 0 0; text-align: right; font-size: .78rem; color: var(--ck-muted); }
.ck-quiz__bar { height: 4px; background: var(--ck-soft); border-radius: 2px; margin-bottom: 22px; overflow: hidden; }
.ck-quiz__bar span { display: block; height: 100%; background: var(--ck-yellow); transition: width .3s ease; }

/* ---------- Rezultat ---------- */
.ck-score { text-align: center; padding: 6px 0 18px; border-bottom: 1px solid var(--ck-line); margin-bottom: 18px; }
.ck-score__big { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--ck-yellow); }
.ck-score__big small { font-size: 1rem; color: var(--ck-muted); font-weight: 600; }
.ck-honey { font-weight: 700; color: #8a5a00; background: #fff4da; display: inline-block; padding: 6px 14px; border-radius: 999px; }
.ck-review { margin: 0 0 20px; padding-left: 1.4em; }
.ck-review li { margin-bottom: 14px; padding-left: 4px; }
.ck-review__q { font-weight: 700; margin: 0 0 4px; }
.ck-review__a { margin: 0; font-size: .92rem; }
.ck-review__a--ok { color: var(--ck-ok); }
.ck-review__a--wrong { color: var(--ck-bad); text-decoration: line-through; }
.ck-review li.is-ok .ck-review__a--ok::before { content: "✓ "; }
.ck-review__explain { font-size: .85rem; color: var(--ck-muted); margin: 6px 0 0; background: var(--ck-soft); padding: 8px 12px; border-radius: var(--ck-radius); }
.ck-fact { background: #fff8e6; border-left: 4px solid var(--ck-yellow); padding: 12px 16px; margin: 0 0 18px; border-radius: var(--ck-radius); }
.ck-fact p { margin: 4px 0 0; }

/* ---------- Misija ---------- */
.ck-mission__points { font-weight: 700; margin: -6px 0 20px; font-size: .95rem; }
.ck-drop {
	display: flex; align-items: center; gap: 16px;
	padding: 14px 4px 18px;
	cursor: pointer;
	color: var(--ck-yellow);
	border-radius: var(--ck-radius);
	transition: background .15s;
}
.ck-drop.is-over { background: #fff8e6; }
.ck-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ck-drop__icon { flex: 0 0 auto; line-height: 0; }
.ck-drop__icon svg { width: 54px; height: auto; }
.ck-drop__text strong { display: block; color: var(--ck-ink); font-size: 1.25rem; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.ck-drop__text small { color: var(--ck-muted); font-size: .78rem; }
.ck-drop__input:focus-visible ~ .ck-drop__text strong { outline: 2px solid var(--ck-ink); outline-offset: 3px; }

.ck-files { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.ck-files li { position: relative; background: var(--ck-soft); border-radius: var(--ck-radius); aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; font-size: .7rem; text-align: center; padding: 4px; word-break: break-all; }
.ck-files img, .ck-files video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ck-files button { position: absolute; top: 4px; right: 4px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; line-height: 1; font-size: 14px; padding: 0; }

.ck-field { display: block; margin-bottom: 14px; }
.ck-field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.ck-field input, .ck-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--ck-line);
	border-radius: var(--ck-radius);
	background: var(--ck-white);
	font: 1rem var(--ck-font);
	color: var(--ck-ink);
}
.ck-field input:focus, .ck-field textarea:focus { outline: none; border-color: var(--ck-yellow); box-shadow: 0 0 0 3px rgba(253,185,44,.2); }
.ck-field--soft input, .ck-field--soft textarea { background: var(--ck-soft); border-color: transparent; font-size: .9rem; }
.ck-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .ck-field-row { grid-template-columns: 1fr; } }
.ck-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 6px 0 18px; }
.ck-check input { margin-top: 3px; }
.ck-hp { position: absolute; left: -9999px; }

.ck-progressbar { height: 6px; background: var(--ck-soft); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.ck-progressbar span { display: block; width: 0; height: 100%; background: var(--ck-yellow); transition: width .2s; }
.ck-mission__msg:empty { display: none; }

/* ---------- Obvestila ---------- */
.ck-alert { padding: 12px 16px; border-radius: var(--ck-radius); margin-bottom: 18px; font-size: .92rem; }
.ck-alert ul { margin: 0; padding-left: 1.2em; }
.ck-alert--error, .ck-alert--rejected { background: #fdecec; color: #8f1f1f; }
.ck-alert--ok, .ck-alert--approved { background: #eaf6ef; color: #1d6b3d; }
.ck-alert--pending { background: #fff4da; color: #7a5200; }
.ck-notice-box { max-width: 520px; margin: 0 auto; text-align: center; background: var(--ck-white); box-shadow: var(--ck-shadow); padding: 24px; border-radius: var(--ck-radius); }
.ck-notice-box .ck-btn { margin: 4px; }
.ck-muted { color: var(--ck-muted); font-size: .88rem; }

/* ---------- Prijava / registracija ---------- */
.ck-auth { max-width: 520px; margin: 0 auto; }
.ck-form #loginform p { margin: 0 0 14px; }
.ck-form #loginform label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.ck-form #loginform input[type="text"], .ck-form #loginform input[type="password"] {
	width: 100%; padding: 11px 14px; border: 1.5px solid var(--ck-line); border-radius: var(--ck-radius); font: 1rem var(--ck-font);
}
.ck-form #loginform .login-remember label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.ck-form #loginform input[type="submit"] {
	background: var(--ck-yellow); color: #fff; border: 0; border-radius: var(--ck-radius);
	padding: 11px 22px; font: 600 .95rem var(--ck-font); cursor: pointer;
}

/* ---------- Profil in lestvica ---------- */
.ck-profile, .ck-leaderboard { max-width: 640px; margin: 0 auto; }
.ck-profile__team { margin: 0; font-size: 1.8rem; font-weight: 800; }
.ck-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
@media (max-width: 560px) { .ck-stats { grid-template-columns: repeat(2, 1fr); } }
.ck-stat { background: var(--ck-soft); border-radius: var(--ck-radius); padding: 14px 10px; text-align: center; }
.ck-stat--total { background: var(--ck-yellow); color: #fff; }
.ck-stat__num { display: block; font-size: 1.5rem; font-weight: 800; }
.ck-stat__label { font-size: .75rem; }
.ck-progress { list-style: none; margin: 0 0 22px; padding: 0; }
.ck-progress li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ck-line); font-size: .95rem; }
.ck-progress a { color: var(--ck-ink); }
.ck-pill { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--ck-soft); color: var(--ck-muted); white-space: nowrap; }
.ck-pill--ok, .ck-pill--approved { background: #eaf6ef; color: var(--ck-ok); }
.ck-pill--pending { background: #fff4da; color: #7a5200; }
.ck-pill--rejected { background: #fdecec; color: var(--ck-bad); }

.ck-board { list-style: none; margin: 0; padding: 0; }
.ck-board li { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid var(--ck-line); }
.ck-board li.is-me { background: #fff8e6; }
.ck-board__pos { width: 2em; text-align: center; font-size: 1.3rem; font-weight: 700; }
.ck-board__name { flex: 1; display: flex; flex-direction: column; }
.ck-board__name small { color: var(--ck-muted); }
.ck-board__pts { font-weight: 800; white-space: nowrap; }

.ck .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
