/* Yapay Zeka Domain Bul ve 2. El Satış — Posenda v1.0.0 */

.yzdb-wrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
}
.yzdb-wrap *, .yzdb-wrap *::before, .yzdb-wrap *::after { box-sizing: border-box; }

/* ---------- Header ---------- */
.yzdb-header {
	position: relative;
	text-align: center;
	padding: 40px 20px 30px;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #3b82f6 100%);
	border-radius: 22px;
	overflow: hidden;
	margin-bottom: 28px;
	box-shadow: 0 18px 45px rgba(30, 58, 138, .35);
}
.yzdb-header-glow {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 20% 20%, rgba(96,165,250,.35), transparent 45%),
		radial-gradient(circle at 80% 70%, rgba(168,85,247,.28), transparent 45%);
	animation: yzdbGlow 7s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes yzdbGlow {
	0%   { opacity: .55; transform: scale(1); }
	100% { opacity: 1;   transform: scale(1.12); }
}
.yzdb-logo {
	position: relative;
	max-height: 60px;
	width: auto;
	margin: 0 auto 14px;
	display: block;
	background: rgba(255,255,255,.94);
	padding: 8px 16px;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.yzdb-title {
	position: relative;
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	margin: 0 0 8px;
	letter-spacing: -.5px;
	text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.yzdb-subtitle {
	position: relative;
	color: rgba(255,255,255,.85);
	font-size: 15px;
	margin: 0;
}

/* ---------- Tabs ---------- */
.yzdb-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.yzdb-tab {
	flex: 1;
	min-width: 200px;
	padding: 14px 18px;
	border: 2px solid #e2e8f0;
	background: #fff;
	color: #334155;
	font-size: 15px;
	font-weight: 700;
	border-radius: 14px;
	cursor: pointer;
	transition: all .25s ease;
}
.yzdb-tab:hover { border-color: #3b82f6; transform: translateY(-2px); }
.yzdb-tab-active {
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 10px 25px rgba(37,99,235,.35);
}

/* ---------- Search ---------- */
.yzdb-search-box {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 26px;
	box-shadow: 0 8px 30px rgba(15,23,42,.07);
	margin-bottom: 24px;
}
.yzdb-search-inner {
	display: flex;
	gap: 12px;
}
.yzdb-input {
	flex: 1;
	width: 100%;
	padding: 14px 18px;
	font-size: 16px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	background: #f8fafc;
	color: #0f172a;
}
.yzdb-input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 4px rgba(59,130,246,.15);
	background: #fff;
}
.yzdb-hint { margin: 12px 0 0; color: #64748b; font-size: 13px; }

/* ---------- Buttons ---------- */
.yzdb-btn {
	border: none;
	cursor: pointer;
	font-weight: 700;
	border-radius: 12px;
	transition: all .25s ease;
	font-size: 15px;
	line-height: 1.2;
}
.yzdb-btn-primary {
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	color: #fff;
	padding: 14px 26px;
	box-shadow: 0 8px 22px rgba(37,99,235,.35);
	position: relative;
	overflow: hidden;
}
.yzdb-btn-primary::after {
	content: "";
	position: absolute;
	top: 0; left: -80%;
	width: 50%; height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
	transform: skewX(-20deg);
	transition: left .5s ease;
}
.yzdb-btn-primary:hover::after { left: 130%; }
.yzdb-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,99,235,.45); }
.yzdb-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.yzdb-btn-outline {
	background: #fff;
	border: 2px solid #3b82f6;
	color: #2563eb;
	padding: 12px 26px;
}
.yzdb-btn-outline:hover { background: #eff6ff; transform: translateY(-2px); }
.yzdb-btn-buy {
	background: linear-gradient(135deg, #059669, #10b981);
	color: #fff;
	padding: 10px 20px;
	box-shadow: 0 6px 16px rgba(16,185,129,.35);
}
.yzdb-btn-buy:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 22px rgba(16,185,129,.45); }
.yzdb-btn-block { width: 100%; padding: 14px; }

/* ---------- Loading ---------- */
.yzdb-loading { text-align: center; padding: 40px 20px; }
.yzdb-spinner {
	width: 52px;
	height: 52px;
	border: 5px solid #e2e8f0;
	border-top-color: #3b82f6;
	border-radius: 50%;
	margin: 0 auto 16px;
	animation: yzdbSpin .8s linear infinite;
}
@keyframes yzdbSpin { to { transform: rotate(360deg); } }
.yzdb-loading p { color: #475569; font-size: 15px; font-weight: 600; }

/* ---------- Results / Cards ---------- */
.yzdb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 18px;
}
.yzdb-card-item {
	position: relative;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 22px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	overflow: hidden;
}
.yzdb-card-item::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #2563eb, #7c3aed, #10b981);
	opacity: 0;
	transition: opacity .25s ease;
}
.yzdb-card-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 38px rgba(15,23,42,.13);
	border-color: #bfdbfe;
}
.yzdb-card-item:hover::before { opacity: 1; }
.yzdb-anim { animation: yzdbFadeUp .5s ease both; }
@keyframes yzdbFadeUp {
	from { opacity: 0; transform: translateY(18px); }
	to   { opacity: 1; transform: translateY(0); }
}
.yzdb-card-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
	background: #ede9fe;
	color: #6d28d9;
}
.yzdb-badge-free { background: #d1fae5; color: #047857; }
.yzdb-card-domain {
	font-size: 19px;
	font-weight: 800;
	color: #0f172a;
	word-break: break-all;
	margin-bottom: 10px;
}
.yzdb-card-desc { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.yzdb-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.yzdb-card-price { font-size: 16px; font-weight: 800; color: #059669; }
.yzdb-empty, .yzdb-noresult {
	text-align: center;
	color: #64748b;
	padding: 34px 20px;
	background: #f8fafc;
	border-radius: 14px;
	border: 1px dashed #cbd5e1;
	font-size: 15px;
}
.yzdb-regenerate-wrap { text-align: center; margin-top: 24px; }

/* ---------- Modal ---------- */
.yzdb-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.yzdb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15,23,42,.65);
	backdrop-filter: blur(4px);
	animation: yzdbFade .25s ease;
}
@keyframes yzdbFade { from { opacity: 0; } to { opacity: 1; } }
.yzdb-modal-box {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 30px;
	width: 100%;
	max-width: 440px;
	box-shadow: 0 30px 70px rgba(0,0,0,.35);
	animation: yzdbPop .3s cubic-bezier(.34,1.56,.64,1);
	max-height: 90vh;
	overflow-y: auto;
}
@keyframes yzdbPop {
	from { opacity: 0; transform: scale(.85) translateY(20px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
.yzdb-modal-close {
	position: absolute;
	top: 12px; right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	color: #94a3b8;
	cursor: pointer;
	line-height: 1;
	transition: color .2s;
}
.yzdb-modal-close:hover { color: #ef4444; }
.yzdb-modal-title { font-size: 21px; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.yzdb-modal-domain {
	font-size: 16px;
	font-weight: 700;
	color: #2563eb;
	background: #eff6ff;
	padding: 10px 14px;
	border-radius: 10px;
	margin: 0 0 20px;
	word-break: break-all;
}
.yzdb-field { margin-bottom: 14px; }
.yzdb-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
}
.yzdb-form-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	margin-bottom: 14px;
}
.yzdb-form-success { text-align: center; padding: 20px 0 10px; }
.yzdb-success-icon {
	width: 64px; height: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, #059669, #10b981);
	color: #fff;
	font-size: 34px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	animation: yzdbPop .4s cubic-bezier(.34,1.56,.64,1);
	box-shadow: 0 12px 30px rgba(16,185,129,.4);
}
.yzdb-form-success p { color: #334155; font-size: 15px; font-weight: 600; }

/* ---------- Tablet ---------- */
@media (max-width: 782px) {
	.yzdb-title { font-size: 25px; }
	.yzdb-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}

/* ---------- Mobil ---------- */
@media (max-width: 560px) {
	.yzdb-wrap { padding: 12px; }
	.yzdb-header { padding: 28px 14px 22px; border-radius: 16px; }
	.yzdb-title { font-size: 21px; }
	.yzdb-subtitle { font-size: 13px; }
	.yzdb-logo { max-height: 46px; }
	.yzdb-search-inner { flex-direction: column; }
	.yzdb-btn-primary { width: 100%; }
	.yzdb-tab { min-width: 100%; }
	.yzdb-grid { grid-template-columns: 1fr; }
	.yzdb-modal-box { padding: 22px; }
	.yzdb-card-footer { flex-direction: column; align-items: stretch; }
	.yzdb-btn-buy { width: 100%; }
}
