/* ========================================================================= */
/* ⚡ ÖZEL FONTLAR - BU BLOĞU TAMAMEN SİLERSENİZ SİTE ESKİ HALİNE DÖNER ⚡ */
/* ========================================================================= */
@font-face { font-family: 'SF Pro Display Medium'; src: url('fonts/SFProDisplay-Medium.woff2') format('woff2'); }
@font-face { font-family: 'SF Pro Display Bold'; src: url('fonts/SFProDisplay-Bold.woff2') format('woff2'); }
@font-face { font-family: 'SF Pro Rounded Bold'; src: url('fonts/SFProRounded-Bold.woff2') format('woff2'); }
@font-face { font-family: 'SF Pro Display Black'; src: url('fonts/SFProDisplay-Black.woff2') format('woff2'); }

:root {
	--font-main: 'SF Pro Display Medium', system-ui, sans-serif;
	--font-bold: 'SF Pro Display Bold', system-ui, sans-serif;
	--font-black: 'SF Pro Display Black', system-ui, sans-serif;
	--font-rounded: 'SF Pro Rounded Bold', system-ui, sans-serif;
}

body, input, textarea, select, button { font-family: var(--font-main, system-ui, -apple-system, sans-serif) !important; }
h1, h2, h3, .user-meta h2, .display-name, .t-name, .btn-main, .btn-login, .matchs-title, .prompt-q { font-family: var(--font-bold, system-ui, sans-serif) !important; }
.login-title { font-family: var(--font-black, system-ui, sans-serif) !important; }
.pill-btn, .interest-tag, .info-badge, .stat-group .count, .stat-unit b { font-family: var(--font-rounded, system-ui, sans-serif) !important; }
/* ========================================================================= */

* {
	/* user-select: none; */
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	/* font-family: -apple-system, system-ui, sans-serif; */
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	background-color: #fff;
	color: #0f1419;
}

.minimal-header {
	height: 53px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-bottom: 1px solid #eff3f4;
	background: #fff;
}

.logo {
	color: #1d9bf0;
	font-size: 26px;
}

.center-wrapper {
	display: flex;
	justify-content: center;
	padding: 0;
}

.hidden {
	display: none !important;
}

/* Butonlar */
.btn-main {
	background-color: #1d9bf0;
	color: white;
	border: none;
	padding: 12px 32px;
	border-radius: 99px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	margin-top: 100px;
}

.btn-outline {
	background: #fff;
	border: 1px solid #cfd9de;
	padding: 8px 16px;
	border-radius: 99px;
	font-weight: 700;
	cursor: pointer;
}

/* Profil Yapısı */
.profile-card {
	width: 100%;
	/* max-width: 600px; */
}

/* .profile-header-area is intentionally empty or removed */

.cover-box {
	background: #cfd9de;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 3/1;
	border-radius: 10px 10px 0px 0;
}

/* Resim yüklenene kadar (src boşsa) gizle ve sadece gri arka planı göster */
img[src=""],
img:not([src]) {
	display: none;
}

.cover-img {
	border-radius: 10px 10px 0px 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.profile-content {
	padding: 12px 16px;
	position: relative;
}

.avatar-line {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: -55px;
	/* Kapağın üstüne çıkarma */
	margin-bottom: 12px;
}

.avatar-img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 4px solid #fff;
	background: #fff;
}

.user-meta h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.user-meta p {
	margin: 0;
	color: #536471;
	font-size: 15px;
}

.detail-item {
	color: #536471;
	font-size: 15px;
	margin: 10px 0;
}

.stats-row {
	display: flex;
	gap: 15px;
	margin-top: 10px;
}

.stat-group {
	font-size: 15px;
}

.stat-group .count {
	font-weight: 700;
	color: #0f1419;
}

.stat-group .label {
	color: #536471;
}

.extra-stats {
	display: flex;
	gap: 15px;
	padding-top: 10px;
	border-top: 1px solid #eff3f4;
	color: #536471;
	font-size: 14px;
}

:root {
	--bg-color: #ffffff;
	--text-color: #0f1419;
	--border-color: #eff3f4;
	--secondary-text: #536471;
	--theme-color: #1d9bf0;
	/* This will be overridden by JS */
	--accent-color: var(--theme-color);
	--card-bg: #ffffff;
}

[data-theme="dark"] {
	--bg-color: #000000;
	--text-color: #e7e9ea;
	--border-color: #2f3336;
	--secondary-text: #71767b;
	--accent-color: var(--theme-color);
	/* Overridden by JS, defaults to blue */
	--card-bg: #000000;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	transition: background 0.3s, color 0.3s;
}

/* Mevcut Tasarımına Uyumlu Güncellemeler */
.minimal-header {
	height: 53px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
	background: var(--bg-color);
}

.profile-card {
	border: 1px solid var(--border-color);
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.user-meta h2 {
	color: var(--text-color);
}

.user-meta p,
.detail-item,
.stat-group .label {
	color: var(--secondary-text);
}

.stat-group .count {
	color: var(--text-color);
}

/* Bottom Nav Tasarımı */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 55px;
	background: var(--bg-color, #fff);
	display: flex;
	justify-content: space-around;
	align-items: center;
	border-top: 1px solid #eff3f4;
	z-index: 1000;
}

.nav-item {
	color: #536471;
	font-size: 22px;
	text-decoration: none;
	padding: 10px 20px;
	transition: color 0.2s;
}

.nav-item:active {
	background-color: rgba(29, 155, 240, 0.1);
	/* border-radius: 50%; */
}

/* Aktif sayfa ikonu rengi */
.nav-item.active {
	color: var(--theme-color);
}

/* İçerik alanı bottom-nav kadar boşluk bırakmalı ki içerik altta kalmasın */
#app-content {
	padding-bottom: 60px;
	width: 100%;
}

/* Likes Matchs */

.likes-page-container {
	padding: 0 15px !important;
	padding-bottom: 80px;
	width: 100%;
	max-width: 600px;
	/* Nav bar payı */
}

.matchs-title {
	color: var(--text-color);
	margin-left: 0px;
	margin-top: 15px;
	margin-bottom: 15px;
	font-size: 20px;
	font-weight: 700;
}

.likes-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	/* Aralarında hafif boşluk olsun ki kartların gölgesi birbirine girmesin */
}

.like-card {
	background: var(--bg-color, #fff);
	border: 1px solid rgba(19, 125, 196, 0.159);
	/* Çok hafif dış çizgi */
	border-radius: 8px;
	/* Köşeleri hafif yuvarlat */
	padding: 12px 15px;
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: left;
	box-shadow: 0px 0px 10px rgba(19, 125, 196, 0.105);
	/* Çok hafif bir gölge */
	width: 100%;
	box-sizing: border-box;
}

.like-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 0;
	margin-right: 12px;
	flex-shrink: 0;
}

.like-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.btn-msg {
	background-color: var(--accent-color) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	margin-left: auto;
	flex-shrink: 0;
	background-color: var(--text-color);
	color: var(--bg-color);
	border-radius: 99px;
	padding: 6px 16px;
	font-size: 14px;
	font-weight: 600;
}

.like-name {
	font-weight: 700;
	font-size: 15px;
	color: var(--text-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.like-handle {
	font-size: 14px;
	color: var(--secondary-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- TIMELINE (Eşleşme) STİLLERİ --- */
.timeline-container {
	height: calc(100vh - 120px);
	width: 100%;
	/* DÜZELTME: Flex içinde genişliğin 0 olmaması için */
	/* Header ve Nav payı */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	padding: 10px;
}

.t-card-stack {
	width: 100%;
	max-width: 400px;
	/* Kartlar çok geniş olmasın */
	height: 100%;
	position: relative;
}

/* Tekil Kart Tasarımı */
.t-card {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #fff;
	border-radius: 20px;
	border: 1px solid #eff3f4;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, opacity 0.3s ease;
	touch-action: pan-y;
	/* Dikey kaydırmaya izin ver, yatayı JS ile yakala */
	user-select: none;
	/* Metin seçimini engelle */
}

/* Swipe Indicators (evettt / hayırrr) */
.swipe-indicator {
	position: absolute;
	padding: 5px 15px;
	font-weight: 900;
	font-size: 36px;
	border: 4px solid;
	border-radius: 10px;
	opacity: 0;
	z-index: 10;
	pointer-events: none;
	text-transform: uppercase;
	letter-spacing: 2px;
	transition: opacity 0.1s;
}

.indicator-like {
	color: #00ea90;
	border-color: #00ea90;
	top: 50px;
	left: 30px;
	transform: rotate(-15deg);
}

.indicator-pass {
	color: #f64964;
	border-color: #f64964;
	top: 50px;
	right: 30px;
	transform: rotate(15deg);
}

/* Kartın Görseli */
.t-cover {
	height: 60%;
	/* Kartın %60'ı resim */
	width: 100%;
	object-fit: cover;
	background: #cfd9de;
}

/* Kartın Alt Bilgisi */
.t-info {
	padding: 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.t-name {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 5px;
}

.t-handle {
	color: #536471;
	font-size: 16px;
	margin-bottom: 10px;
}

.t-bio {
	font-size: 15px;
	color: #0f1419;
	line-height: 1.4;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

.t-badges {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.t-badge {
	background: #eff3f4;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #536471;
}

/* Küçük DM butonu */

/* Loading Spinner */
.loading-spinner {
	width: 30px;
	height: 30px;
	border: 3px solid rgba(29, 155, 240, 0.3);
	border-radius: 50%;
	border-top-color: #1d9bf0;
	/* Twitter Blue */
	animation: spin 1s ease-in-out infinite;
	margin: 20px auto;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Kart Bittiğinde Çıkan Ekran */
.no-more-profiles {
	text-align: center;
	padding: 40px;
	color: #536471;
}

/* --- LOGIN PAGE --- */
.login-wrapper {
	min-height: calc(100vh - 120px);
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.login-container {
	text-align: center;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.avatar-stack {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 10px;
}

.stack-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: 3px solid var(--bg-color, #fff);
	margin-left: -15px;
	object-fit: cover;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s;
}

.stack-avatar:first-child {
	margin-left: 0;
}

.stack-avatar:hover {
	transform: translateY(-4px);
	z-index: 10;
}

.login-title {
	font-size: 44px;
	letter-spacing: -2px;
	font-weight: 800;
	color: var(--accent-color, #1d9bf0);
	margin: 0;
}

.login-subtitle {
	font-size: 17px;
	color: var(--secondary-text);
	margin-top: 8px;
	margin-bottom: 30px;
	font-weight: 500;
}

.btn-login {
	background: #1d9bf0;
	color: #fff;
	border: none;
	padding: 14px 28px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 17px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
	box-shadow: 0 4px 0 #137ec4;
	margin-bottom: 15px;
}

.btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 0 #137ec4;
}

.btn-login:active {
	transform: translateY(4px);
	box-shadow: 0 0px 0 #137ec4;
}

.btn-login i {
	font-size: 20px;
	color: #fff;
}

.btn-coffee {
	background: #ffdd00;
	color: #000;
	box-shadow: 0 4px 0 #d4b800;
	margin-bottom: 0px;
}

.btn-coffee:hover {
	box-shadow: 0 6px 0 #d4b800;
}

.btn-coffee:active {
	box-shadow: 0 0px 0 #d4b800;
}

.btn-coffee i {
	color: #000;
}

/* Floating Hearts Background */
.floating-hearts-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 0;
	/* Keep behind content */
	pointer-events: none;
}

.heart-particle {
	position: absolute;
	color: #f64964;
	opacity: 0;
	font-size: 20px;
	bottom: -10%;
	/* Başlangıç noktası sabit, transform GPU ile yükseltilecek */
	animation: floatHeart linear infinite;
	/* drop-shadow iptal edildi (Yoğun parçacık sayısında GPU'yu ekstra yoruyordu) */
	will-change: transform, opacity;
	/* Performans optimizasyonu */
}


@keyframes floatHeart {
	0% {
		opacity: 0;
		transform: translate3d(0, 0, 0) scale(0.8) rotate(0deg);
	}

	20% {
		opacity: 0.3;
	}

	50% {
		transform: translate3d(20px, -60vh, 0) scale(1) rotate(15deg);
	}

	80% {
		opacity: 0.1;
	}

	100% {
		opacity: 0;
		transform: translate3d(-20px, -120vh, 0) scale(0.8) rotate(-15deg);
	}
}

.login-container {
	/* Keep this component above the background */
	z-index: 1;
	position: relative;
}