/* ==========================================================================
   Yapay Zekâ Renk Asistanı
   ========================================================================== */

.tsec-cm { max-width: 1100px; margin: 0 auto 50px; }

.tsec-cm__intro { max-width: 720px; margin: 10px auto 26px; text-align: center; }
.tsec-cm__badge {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, #fff3e0, #fde7ef);
	color: #8a4b00;
	font-size: 13px;
	font-weight: 600;
}
.tsec-cm__intro h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.tsec-cm__intro p { margin: 0; color: #555; font-size: 15px; }

.tsec-cm__tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.tsec-cm__tips li { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--tsec-line); border-radius: 12px; background: #fcfbf9; }
.tsec-cm__tips li > span { font-size: 22px; }
.tsec-cm__tips strong { font-size: 14px; }
.tsec-cm__tips small { color: #666; font-size: 12px; line-height: 1.45; }

.tsec-cm__upload { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 30px 20px; border: 2px dashed #e3ddd5; border-radius: 16px; text-align: center; }
.tsec-cm__upload .button { min-height: 52px; padding-inline: 28px !important; display: inline-flex; align-items: center; cursor: pointer; font-size: 15px; }
.tsec-cm__gallery { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
.tsec-cm__privacy { flex-basis: 100%; margin: 6px 0 0; color: #666; font-size: 13px; }

.tsec-cm__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 28px; align-items: start; }
.tsec-cm__canvas-wrap { position: relative; justify-self: center; overflow: hidden; border-radius: 14px; background: #f3f1ee; line-height: 0; }
.tsec-cm__canvas-wrap canvas { max-width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.tsec-cm__marker {
	position: absolute;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 6px 20px rgba(0, 0, 0, .25);
	pointer-events: none;
	opacity: 0;
	transition: left .25s ease, top .25s ease, opacity .2s ease;
}
.tsec-cm__marker.is-visible { opacity: 1; }
.tsec-cm__scan {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, rgba(234, 143, 16, .25) 48%, rgba(255, 255, 255, .6) 50%, rgba(234, 143, 16, .25) 52%, transparent 100%);
	background-size: 100% 220%;
	animation: tsec-cm-scan .7s ease-out;
	pointer-events: none;
}
@keyframes tsec-cm-scan { from { background-position: 0 100%; } to { background-position: 0 0; } }

.tsec-cm__panel { display: grid; gap: 14px; }
.tsec-cm__hint { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fcfbf9; font-size: 14px; }
.tsec-cm__warning { margin: 0; padding: 12px 14px; border-radius: 10px; background: #fff6e5; color: #7a4a00; font-size: 14px; }
.tsec-cm__label { margin: 0 0 8px; color: #777; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tsec-cm__swatches, .tsec-cm__palette { display: flex; flex-wrap: wrap; gap: 8px; }
.tsec-cm__palette { max-height: 220px; overflow-y: auto; padding: 10px; border: 1px solid var(--tsec-line); border-radius: 10px; }
.tsec-cm__swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px 7px 7px;
	border: 1px solid #e2ded8;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.tsec-cm__swatch span { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.tsec-cm__swatch small { color: #888; }
.tsec-cm__swatch[aria-pressed="true"] { border-color: #000; box-shadow: 0 0 0 1px #000; }
.tsec-cm__link { justify-self: start; padding: 0; border: 0; background: none; color: #000; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.tsec-cm__actions { display: grid; gap: 10px; }
.tsec-cm__find { min-height: 52px; font-size: 15px !important; }
.tsec-cm__find.is-loading { opacity: .7; }

.tsec-cm__results { margin-top: 34px; }
.tsec-cm__title { margin: 0 0 14px; font-size: 22px; }
.tsec-cm__tabs { display: flex; gap: 8px; margin-bottom: 10px; overflow-x: auto; }
.tsec-cm__tabs button { flex: none; padding: 10px 18px; border: 1px solid var(--tsec-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tsec-cm__tabs button small { color: #999; font-weight: 400; }
.tsec-cm__tabs button[aria-selected="true"] { background: #000; border-color: #000; color: #fff; }
.tsec-cm__tabs button[aria-selected="true"] small { color: #ccc; }
.tsec-cm__group-desc { margin: 4px 0 16px; color: #666; font-size: 14px; }
.tsec-cm__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tsec-cm__card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px; border: 1px solid var(--tsec-line); border-radius: 12px; background: #fff; }
.tsec-cm__img img { display: block; width: 110px; height: 150px; object-fit: cover; border-radius: 8px; background: #f6f5f3; }
.tsec-cm__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tsec-cm__tone { display: inline-flex; align-items: center; gap: 6px; color: #666; font-size: 12px; }
.tsec-cm__tone span { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.tsec-cm__name { color: #000; font-size: 14px; font-weight: 600; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tsec-cm__reason { margin: 0; color: #555; font-size: 13px; line-height: 1.45; }
.tsec-cm__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.tsec-cm__buy .button { min-height: 36px; padding: 0 14px !important; font-size: 12px !important; display: inline-flex; align-items: center; }
.tsec-cm__buy .added_to_cart { display: none; }
.tsec-cm__more { margin: 18px 0 8px; text-align: center; }
.tsec-cm__feedback { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; padding: 14px; border-radius: 12px; background: #fcfbf9; font-size: 14px; }
.tsec-cm__feedback button { width: 42px; height: 42px; border: 1px solid var(--tsec-line); border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; }
.tsec-cm__feedback button:hover { border-color: #000; }
.tsec-cm__empty { padding: 30px; text-align: center; color: #666; }

/* Ana sayfa tanıtım kutusu */
.tsec-cm-cta {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	align-items: center;
	gap: 20px;
	padding: clamp(24px, 4vw, 44px);
	border-radius: 18px;
	background: linear-gradient(120deg, #fff6ea 0%, #fdeef3 60%, #eef3fb 100%);
	overflow: hidden;
}
.tsec-cm-cta h2 { margin: 10px 0 8px; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; }
.tsec-cm-cta p { margin: 0 0 18px; color: #555; font-size: 15px; max-width: 520px; }
.tsec-cm-cta .button { min-height: 50px; padding-inline: 28px !important; display: inline-flex; align-items: center; }
.tsec-cm-cta__badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; color: #8a4b00; font-size: 13px; font-weight: 600; }
.tsec-cm-cta__art { position: relative; height: 180px; }
.tsec-cm-cta__art span { position: absolute; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); animation: tsec-cm-float 6s ease-in-out infinite; }
.tsec-cm-cta__art span:nth-child(1) { width: 120px; height: 120px; left: 12%; top: 20%; background: #1d2a5b; }
.tsec-cm-cta__art span:nth-child(2) { width: 84px; height: 84px; left: 48%; top: 6%; background: #c9a227; animation-delay: -2s; }
.tsec-cm-cta__art span:nth-child(3) { width: 70px; height: 70px; left: 56%; top: 56%; background: #eee5d1; animation-delay: -4s; }
.tsec-cm-cta__art span:nth-child(4) { width: 46px; height: 46px; left: 30%; top: 70%; background: #c1878a; animation-delay: -1s; }
@keyframes tsec-cm-float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .tsec-cm-cta__art span, .tsec-cm__scan { animation: none; } }

@media (max-width: 999px) {
	.tsec-cm__tips { grid-template-columns: repeat(2, 1fr); }
	.tsec-cm__stage { grid-template-columns: 1fr; }
	.tsec-cm__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.tsec-cm__grid { grid-template-columns: 1fr; }
	.tsec-cm-cta { grid-template-columns: 1fr; text-align: center; }
	.tsec-cm-cta p { margin-inline: auto; }
	.tsec-cm-cta__art { display: none; }
	.tsec-cm__upload .button { flex: 1 1 100%; justify-content: center; }
}
