/*
Theme Name: MCD Exam
Theme URI: https://fsp.unibuc.ro
Author: Mare Maestru
Description: Temă ultra-minimalistă pentru examenul online — Master's in Cultural Diplomacy, School of Political Science, University of Bucharest. Pagina de start este direct formularul de examen (pluginul Examen Online), iar comisia are o zonă de răspunsuri protejată cu parolă la /?comisie=1.
Version: 1.0.2
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mcd-exam
*/

/* ------------------------------------------------------------ Bază */
:root {
	--mcd-ink: #1d2833;
	--mcd-muted: #5a6572;
	--mcd-navy: #1f3f63;
	--mcd-navy-dark: #16304c;
	--mcd-line: #d7dee6;
	--mcd-bg: #ffffff;
	--mcd-crit: #a42323;
	--mcd-ok: #1a6b3c;
}

* {
	box-sizing: border-box;
}

/* Plasă de siguranță globală: [hidden] învinge orice display din CSS
   (previne overlay-uri „invizibile" care blochează click-urile). */
[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--mcd-bg);
	color: var(--mcd-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--mcd-navy);
}

.mcd-container {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ------------------------------------------------------------ Antet */
.mcd-masthead {
	padding: 34px 0 22px;
	text-align: center;
	border-bottom: 1px solid var(--mcd-line);
	margin-bottom: 8px;
}

.mcd-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.mcd-logos img {
	height: 54px;
	width: auto;
}

.mcd-logo-sep {
	width: 1px;
	height: 44px;
	background: var(--mcd-line);
}

.mcd-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--mcd-muted);
}

.mcd-program {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(24px, 4vw, 32px);
	line-height: 1.25;
	color: var(--mcd-navy-dark);
}

/* ---------------------------------------------------------- Conținut */
.mcd-main {
	padding: 18px 0 40px;
}

.mcd-notice {
	max-width: 780px;
	margin: 32px auto;
	padding: 18px 22px;
	border: 1px solid var(--mcd-line);
	border-left: 4px solid var(--mcd-navy);
	border-radius: 6px;
	background: #f6f8fa;
}

/* ------------------------------------------------------------ Subsol */
.mcd-footer {
	border-top: 1px solid var(--mcd-line);
	padding: 22px 0 34px;
	text-align: center;
	font-size: 13px;
	color: var(--mcd-muted);
}

.mcd-footer p {
	margin: 0 0 6px;
}

.mcd-comisie-link {
	color: var(--mcd-muted);
	text-decoration: none;
	border-bottom: 1px dotted var(--mcd-line);
	font-size: 12px;
}

.mcd-comisie-link:hover {
	color: var(--mcd-navy);
}

/* ---------------------------------------------------- Zona comisiei */
.mcd-gate {
	max-width: 420px;
	margin: 48px auto;
	padding: 30px 28px;
	border: 1px solid var(--mcd-line);
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 1px 2px rgba(20, 35, 55, 0.05);
}

.mcd-gate h1 {
	margin: 0 0 6px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	color: var(--mcd-navy-dark);
}

.mcd-gate p {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--mcd-muted);
}

.mcd-gate input[type="password"] {
	width: 100%;
	padding: 11px 12px;
	font: inherit;
	font-size: 16px;
	border: 1px solid var(--mcd-line);
	border-radius: 6px;
	margin-bottom: 14px;
	text-align: center;
	letter-spacing: 0.08em;
}

.mcd-btn {
	display: inline-block;
	padding: 11px 30px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--mcd-navy);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
}

.mcd-btn:hover {
	background: var(--mcd-navy-dark);
	color: #fff;
}

.mcd-btn-ghost {
	background: transparent;
	color: var(--mcd-navy);
	border: 1px solid var(--mcd-line);
	font-weight: 600;
}

.mcd-btn-ghost:hover {
	background: #f2f4f7;
	color: var(--mcd-navy-dark);
}

.mcd-error {
	color: var(--mcd-crit);
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 12px;
}

.mcd-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 6px 0 20px;
}

.mcd-toolbar form {
	display: inline;
}

.mcd-toolbar select {
	padding: 8px 10px;
	font: inherit;
	font-size: 14px;
	border: 1px solid var(--mcd-line);
	border-radius: 6px;
	max-width: 380px;
}

.mcd-count {
	font-size: 14px;
	color: var(--mcd-muted);
}

table.mcd-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	background: #fff;
}

.mcd-table th,
.mcd-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid var(--mcd-line);
	vertical-align: top;
}

.mcd-table th {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mcd-muted);
	border-bottom: 2px solid var(--mcd-navy);
}

.mcd-table tr:hover td {
	background: #f6f8fa;
}

.mcd-badge-auto {
	color: #a05a12;
	font-weight: 600;
}

.mcd-answer {
	background: #fff;
	border: 1px solid var(--mcd-line);
	border-radius: 6px;
	padding: 16px 18px;
	margin: 8px 0 4px;
	white-space: normal;
}

.mcd-answer-empty {
	color: var(--mcd-crit);
	font-style: italic;
}

.mcd-meta-table {
	width: 100%;
	max-width: 640px;
	border-collapse: collapse;
	font-size: 15px;
	margin-bottom: 26px;
}

.mcd-meta-table th {
	width: 160px;
	text-align: left;
	padding: 7px 10px 7px 0;
	color: var(--mcd-muted);
	font-weight: 600;
	vertical-align: top;
}

.mcd-meta-table td {
	padding: 7px 0;
}

.mcd-q-head {
	margin: 30px 0 4px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px;
	color: var(--mcd-navy-dark);
}

.mcd-q-text {
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--mcd-muted);
}

.mcd-wordcount {
	font-size: 13px;
	color: var(--mcd-muted);
	margin: 4px 0 0;
}

.mcd-pager {
	margin-top: 16px;
	font-size: 15px;
}

.mcd-pager a,
.mcd-pager strong {
	margin-right: 10px;
}

@media (max-width: 640px) {
	.mcd-logos img {
		height: 42px;
	}
	.mcd-logos {
		gap: 16px;
	}
	.mcd-logo-sep {
		display: none;
	}
	.mcd-masthead {
		padding: 24px 0 16px;
	}
	table.mcd-table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}
	.mcd-table th,
	.mcd-table td {
		padding: 8px 10px;
		font-size: 13px;
	}
	.mcd-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.mcd-toolbar select {
		width: 100%;
		max-width: 100%;
		min-height: 44px;
	}
	.mcd-toolbar .mcd-btn {
		width: 100%;
		text-align: center;
		min-height: 44px;
	}
	.mcd-gate {
		margin: 24px auto;
		padding: 24px 18px;
	}
	.mcd-gate .mcd-btn {
		width: 100%;
		min-height: 44px;
	}
	.mcd-meta-table th {
		width: 120px;
	}
}
