/* ============================================================
   COP31 BAŞVURU SONUÇ & DURUM SORGULAMA SAYFASI
   Tek kolonlu, responsive sonuç arayüzü
   ============================================================ */

.ide-query-shell {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 10px 24px 90px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ---------- SORGULAMA KARTI ---------- */
.ide-query-card {
	position: relative;
	overflow: hidden;
}

.ide-query-card::before {
	content: "";
	position: absolute;
	top: -100px;
	right: -80px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 162, 51, 0.12), transparent 70%);
	pointer-events: none;
}

.ide-query-form {
	display: flex;
	gap: 12px;
	align-items: stretch;
	margin-top: 14px;
}

.ide-query-input-wrap {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.ide-query-input-wrap .ide-query-icon {
	position: absolute;
	left: 16px;
	width: 20px;
	height: 20px;
	color: #7f93aa;
	pointer-events: none;
	transition: color 0.25s var(--ide-ease-soft);
}

.ide-query-input-wrap .ide-input {
	padding-left: 48px;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.ide-query-input-wrap:focus-within .ide-query-icon {
	color: var(--ide-accent);
}

.ide-query-hint-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	font-size: 0.83rem;
	color: var(--ide-text-dim);
	flex-wrap: wrap;
	gap: 8px;
}

.ide-query-hint-link {
	color: var(--ide-accent);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

.ide-query-hint-link:hover {
	color: #ffc477;
	text-decoration: underline;
}

/* ---------- SONUÇ BULUNAMADI ---------- */
.ide-not-found-card {
	text-align: center;
	padding: 40px 24px;
	background: var(--ide-surface);
	border: 1px solid rgba(255, 122, 122, 0.35);
	border-radius: var(--ide-r-lg);
	animation: ide-rise 0.4s var(--ide-ease) both;
}

.ide-not-found-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: rgba(255, 122, 122, 0.12);
	color: var(--ide-err);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.ide-not-found-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--ide-text);
	margin: 0 0 8px;
}

.ide-not-found-desc {
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--ide-text-soft);
	max-width: 540px;
	margin: 0 auto 24px;
}

/* ---------- DURUM & PUAN BANNER ---------- */
.ide-status-hero {
	position: relative;
	padding: 24px 28px;
	border-radius: var(--ide-r-lg);
	background: var(--ide-surface);
	border: 1px solid var(--ide-line);
	display: flex;
	flex-direction: column;
	gap: 18px;
	animation: ide-rise 0.5s var(--ide-ease) both;
}

.ide-status-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
}

.ide-status-team-info h2 {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.4px;
	color: var(--ide-text);
	margin: 0 0 6px;
}

.ide-status-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.86rem;
	color: var(--ide-text-dim);
	flex-wrap: wrap;
}

.ide-ref-pill {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 0.8px;
	padding: 3px 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--ide-line);
	border-radius: 6px;
	color: var(--ide-text);
}

/* Durum Rozetleri & Temalar */
.ide-state-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-radius: var(--ide-r-md);
}

.ide-state-banner.is-approved {
	background: rgba(61, 220, 151, 0.12);
	border: 1px solid rgba(61, 220, 151, 0.4);
	color: #e0fbf0;
}

.ide-state-banner.is-approved svg {
	color: var(--ide-ok);
}

.ide-state-banner.is-rejected {
	background: rgba(255, 122, 122, 0.12);
	border: 1px solid rgba(255, 122, 122, 0.4);
	color: #ffe6e6;
}

.ide-state-banner.is-rejected svg {
	color: var(--ide-err);
}

.ide-state-banner.is-reviewed {
	background: rgba(56, 189, 248, 0.12);
	border: 1px solid rgba(56, 189, 248, 0.4);
	color: #e0f2fe;
}

.ide-state-banner.is-reviewed svg {
	color: #38bdf8;
}

.ide-state-banner.is-pending {
	background: rgba(255, 162, 51, 0.12);
	border: 1px solid rgba(255, 162, 51, 0.4);
	color: #fff4e5;
}

.ide-state-banner.is-pending svg {
	color: var(--ide-accent);
}

.ide-state-icon-wrap {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ide-state-text h3 {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0 0 3px;
	color: inherit;
}

.ide-state-text p {
	font-size: 0.88rem;
	line-height: 1.5;
	margin: 0;
	opacity: 0.9;
}

/* Toplam Puan Rozeti */
.ide-total-score-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	background: var(--ide-surface);
	border: 1px solid var(--ide-accent-line);
	border-radius: var(--ide-r-md);
	min-width: 130px;
}

.ide-total-score-badge .score-label {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--ide-text-dim);
}

.ide-total-score-badge .score-num {
	font-size: 1.6rem;
	font-weight: 900;
	color: var(--ide-accent);
	letter-spacing: -0.5px;
}

/* ---------- PUAN KRİTERLERİ DAĞILIMI ---------- */
.ide-score-breakdown {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
	margin-top: 6px;
}

.ide-score-chip {
	padding: 14px 16px;
	background: var(--ide-surface-2);
	border: 1px solid var(--ide-line);
	border-radius: var(--ide-r-md);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ide-score-chip-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.ide-score-chip-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ide-text);
	line-height: 1.4;
}

.ide-score-chip-points {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--ide-accent);
	white-space: nowrap;
}

.ide-score-bar-bg {
	width: 100%;
	height: 6px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	overflow: hidden;
}

.ide-score-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--ide-accent-deep), var(--ide-accent));
	border-radius: 10px;
	transition: width 0.6s var(--ide-ease);
}

/* Jüri Değerlendirme Notu */
.ide-jury-note-box {
	display: flex;
	gap: 12px;
	padding: 14px 18px;
	background: rgba(255, 255, 255, 0.03);
	border-left: 3px solid var(--ide-accent);
	border-radius: 0 var(--ide-r-sm) var(--ide-r-sm) 0;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--ide-text-soft);
	margin-top: 10px;
}

.ide-jury-note-box svg {
	flex-shrink: 0;
	color: var(--ide-accent);
	margin-top: 3px;
}

/* ---------- DETAYLI BAŞVURU FORMU BİLGİLERİ (STAGE 4 DÜZENİ) ---------- */
.ide-detail-section {
	background: var(--ide-surface);
	border: 1px solid var(--ide-line);
	border-radius: var(--ide-r-lg);
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ide-detail-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ide-line);
}

.ide-detail-num {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 162, 51, 0.15);
	border: 1px solid var(--ide-accent-line);
	color: var(--ide-accent);
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ide-detail-title {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: var(--ide-text);
	margin: 0;
}

/* Bilgi Tablosu / Satırları */
.ide-kv-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 16px;
}

.ide-kv-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ide-kv-item.col-12 { grid-column: span 12; }
.ide-kv-item.col-6  { grid-column: span 6; }
.ide-kv-item.col-4  { grid-column: span 4; }
.ide-kv-item.col-8  { grid-column: span 8; }

.ide-kv-key {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ide-text-dim);
}

.ide-kv-val {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ide-text);
	line-height: 1.5;
	word-break: break-word;
}

.ide-kv-val-text {
	font-size: 0.92rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--ide-text-soft);
	background: rgba(255, 255, 255, 0.025);
	padding: 12px 14px;
	border-radius: var(--ide-r-sm);
	border: 1px solid rgba(255, 255, 255, 0.07);
	white-space: pre-wrap;
}

/* Öğrenci Kartları */
.ide-student-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.ide-student-card {
	padding: 14px 16px;
	background: var(--ide-surface-2);
	border: 1px solid var(--ide-line);
	border-radius: var(--ide-r-md);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ide-student-card.is-captain {
	border-color: var(--ide-accent-line);
	background: linear-gradient(135deg, rgba(247, 148, 29, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
}

.ide-student-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ide-student-order {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--ide-text-dim);
}

.ide-captain-badge {
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 800;
	background: var(--ide-accent);
	color: #06121f;
	border-radius: 100px;
}

.ide-student-name {
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--ide-text);
}

.ide-student-sub {
	font-size: 0.82rem;
	color: var(--ide-text-soft);
}

/* Dosya & Medya Göstergesi */
.ide-file-indicator {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--ide-surface-2);
	border: 1px solid var(--ide-line);
	border-radius: var(--ide-r-md);
	gap: 12px;
}

.ide-file-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ide-file-info svg {
	color: var(--ide-accent);
	flex-shrink: 0;
}

.ide-file-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--ide-text);
}

.ide-file-meta {
	font-size: 0.8rem;
	color: var(--ide-text-dim);
}

/* Rıza Kontrolleri */
.ide-consent-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(61, 220, 151, 0.1);
	border: 1px solid rgba(61, 220, 151, 0.3);
	border-radius: 100px;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ide-ok);
	margin-right: 8px;
	margin-bottom: 8px;
}

/* Sayfa Alt Butonları */
.ide-query-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
}

@media (max-width: 768px) {
	.ide-query-form {
		flex-direction: column;
	}

	.ide-kv-item.col-6,
	.ide-kv-item.col-4,
	.ide-kv-item.col-8 {
		grid-column: span 12;
	}

	.ide-status-top {
		flex-direction: column;
	}

	.ide-total-score-badge {
		align-self: stretch;
	}

	.ide-query-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.ide-query-actions .ide-btn {
		justify-content: center;
	}
}

@media print {
	.modern-nav,
	.site-footer,
	.ide-query-card,
	.ide-query-actions,
	.ambient-layer,
	.grid-floor,
	.noise-overlay,
	#networkCanvas {
		display: none !important;
	}

	body {
		background: #ffffff !important;
		color: #000000 !important;
	}

	.ide-query-shell {
		max-width: 100% !important;
		padding: 0 !important;
	}

	.ide-status-hero,
	.ide-detail-section {
		border: 1px solid #ccc !important;
		background: #ffffff !important;
		color: #000000 !important;
		box-shadow: none !important;
		page-break-inside: avoid;
	}

	.ide-status-team-info h2,
	.ide-detail-title,
	.ide-student-name,
	.ide-kv-val {
		color: #000000 !important;
	}

	.ide-kv-val-text {
		background: #f9f9f9 !important;
		border: 1px solid #ddd !important;
		color: #111111 !important;
	}
}

/* ---------- SONUCA İTİRAZ ---------- */
.ide-objection-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 18px;
	background: rgba(255, 162, 51, 0.08);
	border: 1px dashed rgba(255, 162, 51, 0.45);
	border-radius: var(--ide-r-md);
}

.ide-objection-cta strong {
	display: block;
	font-size: 0.92rem;
	color: var(--ide-text);
	margin-bottom: 3px;
}

.ide-objection-cta p {
	font-size: 0.83rem;
	line-height: 1.6;
	color: var(--ide-text-dim);
}

.ide-objection-cta p b {
	color: var(--ide-text-soft);
}

.ide-objection-box {
	padding: 14px 18px;
	background: rgba(56, 189, 248, 0.06);
	border: 1px solid rgba(56, 189, 248, 0.3);
	border-radius: var(--ide-r-md);
}

.ide-objection-box-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.ide-objection-box .ide-kicker {
	margin: 0;
}

.ide-objection-result {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(56, 189, 248, 0.25);
}

.ide-objection-result .ide-kicker {
	display: block;
	margin-bottom: 6px;
}

.ide-objection-date,
.ide-objection-note {
	font-size: 0.8rem;
	color: var(--ide-text-dim);
}

.ide-objection-note {
	margin-top: 10px;
}

.ide-objection-form {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1;
}

.ide-objection-form .ide-label {
	display: block;
	margin: 14px 0 6px;
}

.ide-objection-textarea {
	width: 100%;
	min-height: 200px;
}

.ide-objection-hint {
	font-size: 12px;
	color: var(--ide-text-dim);
}

.ide-objection-error {
	margin-top: 0;
	border-left-color: var(--ide-err);
	background: rgba(255, 122, 122, 0.08);
}

.ide-objection-error svg,
.ide-objection-error strong {
	color: var(--ide-err);
}

.ide-objection-turnstile {
	margin-top: 14px;
	min-height: 65px;
}

@media (max-width: 560px) {
	.ide-objection-cta .ide-btn {
		width: 100%;
		justify-content: center;
	}

	.ide-modal-foot {
		flex-direction: column;
		align-items: stretch;
	}
}
