:root {
	--bg-color: #ffffff;
	--text-color: #0f1419;
	--border-color: #eff3f4;
	--secondary-text: #536471;
	--accent-color: #1d9bf0;
	--input-bg: #ffffff;
}

[data-theme="dark"] {
	--bg-color: #000000;
	--text-color: #e7e9ea;
	--border-color: #2f3336;
	--secondary-text: #71767b;
	--accent-color: #1d9bf0;
	--input-bg: #000000;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	line-height: 1.3;
}

/* Header */
.minimal-header {
	height: 53px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: sticky;
	top: 0;
	background: var(--bg-color);
	z-index: 100;
	border-bottom: 1px solid var(--border-color);
	/* Added border for better separation */
}

.logo {
	color: var(--accent-color);
	font-size: 26px;
}

/* Container */
.setup-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px 16px;
	/* Added horizontal padding for mobile */
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	/* justify-content: center;  Removed to allow natural flow */
	min-height: calc(100vh - 53px);
	/* Full height minus header */
}

h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 32px;
	color: var(--text-color);
}

/* Form Styles */
.form-group {
	margin-bottom: 22px;
	display: flex;
	flex-direction: column;
}

label {
	font-size: 15px;
	color: var(--secondary-text);
	/* Use secondary text color for labels */
	margin-bottom: 8px;
	font-weight: 500;
}

input,
select,
textarea {
	width: 100%;
	padding: 10px;
	/* Larger padding for touch targets */
	background: var(--input-bg);
	border: 2px solid var(--border-color);
	color: var(--text-color);
	border-radius: 4px;
	/* Twitter uses slightly rounded corners, but 4px is safe */
	font-size: 15px;
	/* Prevent zoom on iOS */
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s;
	font-family: inherit;
	resize: none;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 1px var(--accent-color);
	/* Focus ring */
}

/* Specific adjustments */
textarea {
	height: 120px;
}

/* Button */
.btn-main {
	background-color: var(--text-color);
	/* Black button (or white in dark mode) like new Twitter design mostly, or strictly blue */
	/* Let's stick to the blue accent for now as per previous design, but modernize it */
	background-color: var(--accent-color);
	/* Keep it blue for consistency */

	color: white;
	border: none;
	padding: 16px;
	/* Larger touch target */
	border-radius: 9999px;
	/* Fully rounded */
	font-weight: 700;
	font-size: 17px;
	cursor: pointer;
	width: 100%;
	margin-top: auto;
	/* Push to bottom if container has height */
	margin-bottom: 20px;
	transition: background-color 0.2s;
}

.btn-main:active {
	opacity: 0.9;
	transform: scale(0.99);
}

.hidden {
	display: none !important;
}

.tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}

.interest-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
	margin-bottom: 24px;
}

.category-wrapper {
	margin-bottom: 32px;
}

.category-title {
	font-size: 17px;
	font-weight: 700;
	margin-top: 10px;
	margin-bottom: 12px;
	color: var(--text-color);
}


.interest-item {
	padding: 6px;
	text-align: center;
	border: 2px solid #27a8ff;
	border-radius: 99px;
	cursor: pointer;
	font-size: 13.5px;
	transition: all 0.2s;
	background: var(--bg-color);
	color: var(--text-color);
	user-select: none;
}

/* Seçili haldeki stil */
.interest-item.selected {
	background-color: var(--accent-color);
	color: white;
	border-color: var(--accent-color);
}

/* Prompt Cards Custom Stili */
.prompt-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

.prompt-card {
	border: 2px solid var(--border-color);
	border-radius: 12px;
	padding: 16px;
	background: var(--bg-color);
	cursor: pointer;
	transition: all 0.2s ease;
}

.prompt-card:hover {
	border-color: #cfd9de;
	/* Biraz daha koyu gri */
}

.prompt-card.active {
	border-color: var(--accent-color);
	background: rgba(29, 155, 240, 0.03);
	/* Çok hafif mavi arkaplan */
}

.prompt-text {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-color);
}

.prompt-input-area {
	margin-top: 12px;
}

.prompt-input-area.hidden {
	display: none;
}

.prompt-answer {
	width: 100%;
	height: 80px;
	padding: 12px;
	background: var(--input-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 15px;
	color: var(--text-color);
	resize: none;
	outline: none;
	box-sizing: border-box;
	margin-bottom: 4px;
}

.prompt-answer:focus {
	border-color: var(--accent-color);
}

.char-count {
	text-align: right;
	font-size: 12px;
	color: var(--secondary-text);
	font-weight: 500;
}

/* Mobile Optimizations specifically */
@media (max-width: 600px) {
	.setup-container {
		padding-top: 12px;
	}

	h3 {
		font-size: 20px;
		/* Slightly smaller title on mobile */
	}
}

/* Progress Bar */
.setup-progress-wrapper {
	width: 100%;
	height: 8px;
	background: var(--border-color);
	border-radius: 4px;
	margin-bottom: 8px;
	overflow: hidden;
}

.setup-progress-bar {
	height: 100%;
	background: var(--accent-color);
	border-radius: 4px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.setup-progress-text {
	font-size: 13px;
	color: var(--secondary-text);
	text-align: right;
	margin-bottom: 0px;
	font-weight: 600;
}

/* Step Animations */
.setup-step {
	display: none;
}

.setup-step.active {
	display: block;
	animation: fadeSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeSlideUp {
	from {
		opacity: 0;
		transform: translateY(15px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Pill Buttons */
.pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pill-group.grid-pills {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

.pill-btn {
	padding: 10px 16px;
	border: 2px solid var(--border-color);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-color);
	background: var(--bg-color);
	cursor: pointer;
	text-align: center;
	transition: all 0.2s ease;
	user-select: none;
}

.pill-btn:hover {
	border-color: #cfd9de;
}

[data-theme="dark"] .pill-btn:hover {
	border-color: #3f4448;
}

.pill-btn.selected {
	background: rgba(29, 155, 240, 0.1);
	border-color: var(--accent-color);
	color: var(--accent-color);
	font-weight: 600;
}

/* Custom Range Slider */
.custom-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	background: var(--border-color);
	border-radius: 3px;
	outline: none;
	padding: 0;
	margin: 15px 0;
}

.custom-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--text-color);
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	transition: transform 0.1s;
}

.custom-slider::-webkit-slider-thumb:active {
	transform: scale(1.15);
}

.custom-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--text-color);
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	border: none;
}

.custom-slider::-moz-range-thumb:active {
	transform: scale(1.15);
}

/* Step Description */
.step-desc {
	color: var(--secondary-text);
	margin-bottom: 15px;
	font-size: 15px;
	font-weight: 600;
}

/* Form Select specific */
.form-select {
	cursor: pointer;
}
