/* Görsel Stüdyo */
.studio-page {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.studio-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}
.studio-quota {
	padding: 0.875rem 1rem;
	min-width: 10rem;
	border-radius: 1rem;
}
.studio-quota-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}
.studio-quota-num {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--demo-text);
	line-height: 1;
}
.studio-quota-bar {
	margin-top: 0.5rem;
	height: 0.35rem;
	border-radius: 9999px;
	background: var(--demo-surface-2);
	overflow: hidden;
}
.studio-quota-fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #a855f7, #155ee8);
	transition: width 0.4s ease;
}

.studio-limit-banner {
	padding: 1.25rem 1.5rem;
	border-left: 4px solid #f59e0b;
}

.studio-grid {
	display: grid;
	gap: 1rem;
}
@media (min-width: 1024px) {
	.studio-grid {
		grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
		align-items: start;
	}
}

.studio-panel,
.studio-preview {
	padding: 1.25rem 1.5rem;
	border-radius: 1.25rem;
}
.studio-panel-title {
	font-size: 0.9375rem;
	font-weight: 800;
	color: var(--demo-text);
}
.studio-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--demo-muted);
}
.studio-textarea {
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.875rem 1rem;
	border-radius: 0.875rem;
	border: 1px solid var(--demo-border);
	background: var(--demo-surface-2);
	color: var(--demo-text);
	font-size: 0.875rem;
	line-height: 1.55;
	resize: vertical;
	min-height: 6.5rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.studio-textarea:focus {
	outline: none;
	border-color: rgba(21, 94, 232, 0.45);
	box-shadow: 0 0 0 3px rgba(21, 94, 232, 0.12);
}
.studio-textarea:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.studio-hint {
	margin-top: 0.35rem;
	font-size: 0.6875rem;
	color: var(--demo-muted);
	text-align: right;
}

.studio-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.5rem;
}
.studio-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	border: 1px solid var(--demo-border);
	background: var(--demo-surface-2);
	color: var(--demo-muted);
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.studio-chip:hover:not(:disabled) {
	color: var(--demo-text);
}
.studio-chip.is-active {
	background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(21, 94, 232, 0.1));
	border-color: rgba(21, 94, 232, 0.35);
	color: var(--demo-accent-text);
}
.studio-chip:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.studio-ratio-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	margin-top: 0.5rem;
}
.studio-ratio {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 0.65rem 0.5rem;
	border-radius: 0.75rem;
	border: 1px solid var(--demo-border);
	background: var(--demo-surface-2);
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
}
.studio-ratio:hover:not(:disabled) {
	border-color: rgba(21, 94, 232, 0.3);
}
.studio-ratio.is-active {
	border-color: rgba(21, 94, 232, 0.45);
	background: var(--demo-accent-soft);
}
.studio-ratio:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.studio-ratio-shape {
	display: block;
	border: 2px solid var(--demo-muted);
	border-radius: 0.25rem;
	background: var(--demo-surface);
}
.studio-ratio-shape--1x1 { width: 1.75rem; height: 1.75rem; }
.studio-ratio-shape--4x5 { width: 1.4rem; height: 1.75rem; }
.studio-ratio-shape--9x16 { width: 1rem; height: 1.75rem; }
.studio-ratio-shape--16x9 { width: 2rem; height: 1.125rem; }
.studio-ratio-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--demo-text);
}
.studio-ratio-hint {
	font-size: 0.625rem;
	color: var(--demo-muted);
}

.studio-generate-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	margin-top: 1.25rem;
	padding: 0.75rem 1rem;
	border: none;
	border-radius: 0.875rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, #9333ea, #155ee8);
	box-shadow: 0 8px 24px rgba(21, 94, 232, 0.28);
	transition: filter 0.15s ease, transform 0.12s ease;
}
.studio-generate-btn:hover:not(:disabled) {
	filter: brightness(1.05);
	transform: translateY(-1px);
}
.studio-generate-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}
.studio-generate-btn.is-loading {
	pointer-events: none;
	opacity: 0.8;
}

.studio-preview-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}
.studio-status {
	font-size: 0.6875rem;
	font-weight: 600;
}
.studio-status.is-busy {
	color: var(--demo-accent-text);
}
.studio-status.is-error {
	color: #dc2626;
}
html.dark .studio-status.is-error { color: #fca5a5; }

.studio-canvas {
	position: relative;
	min-height: 18rem;
	border-radius: 1rem;
	border: 1px dashed var(--demo-border);
	background:
		radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.06), transparent 45%),
		radial-gradient(circle at 80% 80%, rgba(21, 94, 232, 0.06), transparent 45%),
		var(--demo-surface-2);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.studio-placeholder {
	text-align: center;
	padding: 2rem 1.5rem;
}
.studio-placeholder-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 1rem;
	background: var(--demo-surface);
	border: 1px solid var(--demo-border);
	color: var(--demo-muted);
}
.studio-result-img {
	max-width: 100%;
	max-height: 28rem;
	border-radius: 0.75rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.studio-result-meta {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--demo-border);
}
.studio-action-link {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--demo-accent-text);
	text-decoration: none;
}
.studio-action-link--btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.studio-gallery-section {
	margin-top: 0.5rem;
}
.studio-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}
@media (min-width: 640px) {
	.studio-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.studio-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.studio-gallery-item {
	position: relative;
	aspect-ratio: 1;
	border-radius: 0.875rem;
	overflow: hidden;
	border: 1px solid var(--demo-border);
	padding: 0;
	cursor: pointer;
	background: var(--demo-surface-2);
}
.studio-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}
.studio-gallery-item:hover img {
	transform: scale(1.04);
}
.studio-gallery-overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: 0.5rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
	color: #fff;
	opacity: 0;
	transition: opacity 0.15s ease;
}
.studio-gallery-item:hover .studio-gallery-overlay {
	opacity: 1;
}

.studio-gallery-item-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.studio-gallery-schedule {
	display: block;
	text-align: center;
	font-size: 0.6875rem;
	font-weight: 700;
	padding: 0.35rem 0.5rem;
	border-radius: 0.5rem;
	background: rgba(21, 94, 232, 0.08);
	color: #155ee8;
	text-decoration: none;
	transition: background 0.15s;
}

.studio-gallery-schedule:hover {
	background: rgba(21, 94, 232, 0.15);
}

.studio-canvas.is-generating::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(2px);
}
html.dark .studio-canvas.is-generating::after {
	background: rgba(0, 0, 0, 0.35);
}
