/* MatheCord Tutor form styling. Brand tokens from CLAUDE.md. */

.mc-tutor {
	--mc-navy: #0F1E38;
	--mc-blue: #3B82F6;
	--mc-gold: #FFD700;
	--mc-gold-hover: #ffe44d;
	--mc-bg: #F8FAFC;
	--mc-text: #334155;
	--mc-muted: #64748B;
	--mc-border: #E2E8F0;
	--mc-success: #059669;
	--mc-discord: #5865F2;

	max-width: 820px;
	margin: 0 auto;
	font-family: "DM Sans", system-ui, sans-serif;
	color: var(--mc-text);
}

/* Card */
.mc-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--mc-border);
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 30, 56, .06);
	padding: 40px;
	overflow: hidden;
}

/* Section label + heading + gold underline */
.mc-label {
	display: block;
	font-family: "Urbanist", sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 13px;
	color: var(--mc-blue);
	margin-bottom: 8px;
}
.mc-h2 {
	font-family: "Urbanist", sans-serif;
	font-weight: 800;
	letter-spacing: -0.5px;
	color: var(--mc-navy);
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 14px;
}
.mc-goldline {
	display: block;
	width: 60px;
	height: 3px;
	border-radius: 2px;
	background: var(--mc-gold);
	margin-bottom: 20px;
}
.mc-lead {
	font-size: 17px;
	line-height: 1.6;
	color: var(--mc-muted);
	margin: 0 0 24px;
}
.mc-signed-in {
	font-size: 15px;
	color: var(--mc-muted);
	margin: 0 0 24px;
}
.mc-signed-in strong { color: var(--mc-navy); }
.mc-signout { color: var(--mc-blue); font-weight: 600; text-decoration: none; }
.mc-signout:hover { text-decoration: underline; }
.mc-locked-signout { font-size: 14px; color: var(--mc-muted); margin: 22px 0 0; }
.mc-locked-signout a { color: var(--mc-blue); font-weight: 600; text-decoration: none; }
.mc-locked-signout a:hover { text-decoration: underline; }

/* Buttons (pill) */
.mc-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	font-family: "Urbanist", sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 15px;
	padding: 15px 30px;
	text-decoration: none;
	transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.mc-btn:hover { transform: translateY(-2px); }

.mc-btn-gold {
	background: var(--mc-gold);
	color: #000;
	box-shadow: 0 6px 18px rgba(255, 215, 0, .35);
}
.mc-btn-gold:hover { background: var(--mc-gold-hover); }

.mc-btn-discord {
	background: var(--mc-discord);
	color: #fff;
}
.mc-btn-discord:hover { background: #4752c4; color: #fff; }
.mc-btn-discord i { font-size: 18px; }

.mc-btn-navy { background: var(--mc-navy); color: #fff; }
.mc-btn-navy:hover { background: #16294a; color: #fff; }

/* "Current file" hints shown in edit mode */
.mc-current {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--mc-muted);
	margin: 4px 0 8px;
}
.mc-current-photo {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--mc-border);
	flex: none;
}
.mc-current a { color: var(--mc-blue); font-weight: 600; text-decoration: none; }
.mc-current a:hover { text-decoration: underline; }

/* Delete zone (edit mode only) */
.mc-danger {
	margin-top: 28px;
	padding: 22px;
	border: 1px solid #f3c9c9;
	background: rgba(220, 38, 38, .04);
	border-radius: 12px;
}
.mc-danger-title {
	font-family: "Urbanist", sans-serif;
	font-weight: 800;
	color: #b91c1c;
	font-size: 17px;
	margin: 0 0 6px;
}
.mc-danger p { font-size: 14px; color: var(--mc-text); line-height: 1.55; margin: 0 0 14px; }
.mc-delete-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mc-delete-confirm {
	border: 1px solid var(--mc-border);
	border-radius: 10px;
	padding: 11px 14px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	max-width: 220px;
}
.mc-delete-confirm:focus {
	outline: none;
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}
.mc-btn-danger { background: #dc2626; color: #fff; }
.mc-btn-danger:hover { background: #b91c1c; color: #fff; }
.mc-btn-danger:disabled { background: #e6a3a3; cursor: not-allowed; box-shadow: none; }

/* Tutor "unlock" steps (shown when signed in without a tutor plan) */
.mc-lock-step {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--mc-border);
}
.mc-lock-step:first-of-type { margin-top: 10px; padding-top: 0; border-top: none; }
.mc-lock-step-title {
	font-family: "Urbanist", sans-serif;
	font-weight: 800;
	color: var(--mc-navy);
	font-size: 17px;
	margin: 0 0 6px;
}
.mc-lock-step p { font-size: 14.5px; color: var(--mc-muted); line-height: 1.55; margin: 0 0 14px; }

/* Header hero (holds the faint decorative symbols) */
.mc-hero { position: relative; }
.mc-hero > *:not(.mc-decor) { position: relative; z-index: 1; }

/* Labeled form sections */
.mc-section { margin: 30px 0 10px; padding-top: 22px; border-top: 1px solid var(--mc-border); }
.mc-section:first-of-type { border-top: none; padding-top: 0; margin-top: 6px; }
.mc-section-eyebrow {
	display: block;
	font-family: "Urbanist", sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 12px;
	color: var(--mc-blue);
	margin-bottom: 16px;
}

/* Form layout */
.mc-form { margin-top: 8px; }
.mc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 18px;
}
.mc-field {
	display: block;
	margin-bottom: 18px;
}
.mc-field-label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: var(--mc-navy);
	margin-bottom: 7px;
}
.mc-field-label em {
	color: var(--mc-blue);
	font-style: normal;
}
.mc-hint {
	font-weight: 400;
	color: var(--mc-muted);
	font-size: 13px;
}

.mc-field input,
.mc-field textarea,
.mc-field select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--mc-border);
	border-radius: 10px;
	padding: 12px 14px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	color: var(--mc-text);
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mc-field input:focus,
.mc-field textarea:focus,
.mc-field select:focus {
	outline: none;
	border-color: var(--mc-blue);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.mc-field textarea { resize: vertical; }

/* Custom dropdown caret, matching the directory filters. */
.mc-field select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 36px;
	cursor: pointer;
	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 d='M1 1l5 5 5-5' fill='none' stroke='%230F1E38' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}

/* Topics grid */
.mc-topics {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin-top: 6px;
}
.mc-topic {
	display: flex;
	align-items: center;
	gap: 9px;
	border: 1px solid var(--mc-border);
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 14px;
	cursor: pointer;
	background: var(--mc-bg);
	transition: border-color .15s ease, background .15s ease;
}
.mc-topic:hover { border-color: var(--mc-blue); }
.mc-topic input { width: 17px; height: 17px; accent-color: var(--mc-blue); }
.mc-topic:has(input:checked) {
	border-color: var(--mc-blue);
	background: rgba(59, 130, 246, .06);
}

/* File uploads (profile photo + documents) */
.mc-field input[type="file"] {
	padding: 10px 12px;
	font-size: 14px;
	background: var(--mc-bg);
	cursor: pointer;
}
.mc-field input[type="file"]::file-selector-button {
	margin-right: 12px;
	border: 0;
	border-radius: 8px;
	padding: 8px 14px;
	background: var(--mc-navy);
	color: #fff;
	font-family: "Urbanist", sans-serif;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s ease;
}
.mc-field input[type="file"]::file-selector-button:hover { background: #16294a; }

/* Availability grid */
.mc-avail { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.mc-avail-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; }
.mc-avail-day { font-family: "Urbanist", sans-serif; font-weight: 700; font-size: 14px; color: var(--mc-navy); }
.mc-avail-time:disabled { background: var(--mc-bg); color: var(--mc-muted); }
.mc-avail-off { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--mc-muted); white-space: nowrap; cursor: pointer; }
.mc-avail-off input { width: 16px; height: 16px; accent-color: var(--mc-blue); }
@media (max-width: 560px) {
	.mc-avail-row { grid-template-columns: 1fr auto; }
	.mc-avail-day { grid-column: 1 / -1; margin-bottom: -2px; }
}

/* Callouts */
.mc-callout {
	border-radius: 0 10px 10px 0;
	padding: 14px 18px;
	margin-bottom: 22px;
	font-size: 15px;
	line-height: 1.5;
}
.mc-callout-error {
	border-left: 4px solid #dc2626;
	background: rgba(220, 38, 38, .05);
	color: #991b1b;
}
.mc-callout-success {
	border-left: 4px solid var(--mc-success);
	background: rgba(5, 150, 105, .06);
	color: #065f46;
}

/* Reveal-on-scroll (site-wide pattern) */
.mc-r {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity .6s ease, transform .6s ease;
}
.mc-r.vis {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
	.mc-card { padding: 26px 20px; }
	.mc-grid { grid-template-columns: 1fr; }
	.mc-h2 { font-size: 25px; }
}
