/* ----------------------------- Profile Header -------------------------------- */

.profile-header {
	background: linear-gradient(135deg, #d8f7e7 0%, #338aed 100%);
	color: white;
	padding: 110px 20px;
}

.profile-header-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: center;
	flex-wrap: wrap;
}

.profile-avatar-large {
	width: 250px;
	height: 250px;
	border-radius: 10%;
	border: 5px solid white;
	object-fit: cover;
	background: white;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	flex-shrink: 0;
}

.profile-info {
	flex: 1;
	min-width: 250px;
}

.profile-info h1 {
	font-size: 32px;
	margin: 0 0 10px 0;
	font-weight: 700;
}

.profile-info p {
	margin: 0 0 10px 0;
	opacity: 0.9;
	font-size: 15px;
}
.header-location {
	opacity: 0.9;
	font-size: 14px;
}

/* Profile Stats */
.profile-stats {
	display: flex;
	gap: 30px;
	margin-top: 20px;
}

.stat-box {
	text-align: center;
}

.stat-number {
	font-size: 24px;
	font-weight: 700;
	display: block;
	color:white;
}

.stat-number-index {
	font-size: 24px;
	font-weight: 700;
	display: block;
	color:#6366f1;
}

.stat-label {
	font-size: 14px;
	opacity: 0.9;
	display: block;
	color: white;
}

/* Profile Actions */
.profile-actions {
	margin-top: 20px;
}

.btn-edit,
.btn-follow {
	background: white;
	color: #64b5f7;
	padding: 10px 24px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s;
}

.btn-edit:hover {
	background: #64b5f7;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-follow:hover {
	background: rgba(255, 255, 255, 0.35);
	transform: translateY(-1px);
}

/* -----------------------------Tabs Navigation -------------------------------- */
.profile-tabs {
	background: white;
	border-bottom: 2px solid #e0e0e0;
	position: sticky;
	top: 60px;
	z-index: 50;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.tabs-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	position: relative;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tabs-container::-webkit-scrollbar {
	display: none;
}

.tab-btn {
	flex: 1;
	min-width: 120px;
	padding: 20px 15px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-size: 15px;
	color: #64748B;
	font-weight: 600;
	transition: all 0.3s ease;
	white-space: nowrap;
	position: relative;
	text-align: center;
}

.tab-btn:hover {
	color: #64b5f7;
	background: rgba(2, 136, 209, 0.05);
}

.tab-btn.active {
	color: #64b5f7;
}
/* Sliding indicator */

.tab-indicator {
	position: absolute;
	bottom: 0;
	height: 3px;
	background: #64b5f7;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 3px 3px 0 0;
}

/* ----------------------------- Tab Content -------------------------------- */
.profile-content {
	max-width: 800px; /* Немного сузил для лучшей фокусировки */
	margin: 20px auto;
	/* padding: 0 15px; */
	position: relative;
}

.tab-content {
	display: none;
	animation: slideIn 0.4s ease-out;
}

.tab-content.active {
	display: block !important;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.profile-section-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 25px 0;
}

/* Content Cards */
.content-card {
	background: white;
	padding: 25px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
	margin-bottom: 20px;
}

/* Route Cards */
.routes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	margin-top: 20px;
}

.route-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s;
	text-decoration: none;
	color: inherit;
	display: block;
	margin-top: 30px;
}

.route-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Базовый стиль для блока с картинкой/фоном */
.route-card-image, .venue-card-image {
  width: 100%;
  height: 180px;
  position: relative; /* Чтобы контент внутри не улетал */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  overflow: hidden; /* Чтобы картинка не выходила за края */
}

.route-card-image {
  background: linear-gradient(135deg, #64b5f7, #06b6d4);
}

.venue-card-image {
  background: linear-gradient(135deg, #9683EC, #6366f1);
}

/* ДОБАВЬ ЭТО: Если внутри блока есть картинка <img>, она должна растягиваться правильно */
.route-card-image img, .venue-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Картинка заполнит блок без искажений */
  z-index: 1;
}

/* Если поверх картинки есть текст (как на скрине "京都"), он должен быть выше картинки */
.route-card-image span, .venue-card-image span {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Чтобы текст лучше читался на фото */
}

.route-card-content {
	padding: 20px;
}

.route-card-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #333;
}

.route-card-desc {
	font-size: 14px;
	color: #64748B;
	line-height: 1.5;
	margin-bottom: 15px;
}

.route-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	color: #999;
}

.route-card-tags {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.tag-badge {
	background: #e3f2fd;
	color: #1976d2;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

/* Review Card */
.review-card {
	background: white;
	border-radius: 12px;
	/* padding: 20px; */
	max-width: 800px;
	padding: 20 15px;
  position: relative;
	margin: 20px auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.review-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.review-venue {
	font-weight: 600;
	color: #333;
	text-decoration: none;
	font-size: 16px;
}

.review-venue:hover {
	color: #0288d1;
}

.review-rating {
	color: #f59e0b;
	font-weight: 600;
}

.review-text {
	color: #64748B;
	line-height: 1.6;
	margin-bottom: 10px;
}

.review-date {
	color: #999;
	font-size: 12px;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 80px 20px;
	color: #999;
}

.empty-state-icon {
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.5;
}

.empty-state-text {
	font-size: 16px;
}

/* Like Button */
.like-btn {
	background: #f44336;
	color: white;
	border: none;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s;
}

.like-btn:hover {
	background: #d32f2f;
	transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
	.profile-header-content {
		flex-direction: column;
		text-align: center;
	}

	.profile-stats {
		justify-content: center;
	}

	.tabs-container {
		padding: 0 10px;
	}

	.tab-btn {
		font-size: 13px;
		padding: 15px 10px;
		min-width: 100px;
	}

	.routes-grid {
		grid-template-columns: 1fr;
	}
}

/* ----------------------------- Edit Profile Page -------------------------------- */
.edit-profile-container {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 20px;
}

.edit-profile-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 30px 0;
	color: #333;
}

.edit-section {
	background: white;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.section-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 25px 0;
	color: #333;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Avatar Upload */
.avatar-upload-section {
	display: flex;
	align-items: center;
	gap: 30px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.current-avatar {
	width: 120px;
	height: 120px;
	border-radius: 10%;
	object-fit: cover;
	border: 3px solid #e0e0e0;
	flex-shrink: 0;
}

.avatar-upload-controls {
	flex: 1;
	min-width: 200px;
}

.file-input-wrapper {
	position: relative;
	overflow: hidden;
	display: inline-block;
}

.file-input-btn {
	background: #0288d1;
	color: white;
	padding: 12px 24px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.3s ease;
}

.file-input-btn:hover {
	background: #0277bd;
}

.file-input-wrapper input[type='file'] {
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

.file-hint {
	margin-top: 10px;
	font-size: 13px;
	color: #64748B;
	line-height: 1.5;
}

.remove-avatar-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 15px;
	color: #f44336;
	cursor: pointer;
}

/* Form Elements */
.form-group {
	margin-bottom: 25px;
}

.form-label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
	font-size: 14px;
}

.form-input,
.form-textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	transition: border-color 0.3s ease;
	font-family: inherit;
	box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
	outline: none;
	border-color: #0288d1;
	box-shadow: 0 0 0 3px rgba(2, 136, 209, 0.1);
}

.form-textarea {
	resize: vertical;
	min-height: 120px;
}

.char-count {
	text-align: right;
	font-size: 13px;
	color: #999;
	margin-top: 5px;
}

/* Form Actions */
.form-actions {
	flex-direction: row-reverse;
	padding: 10px 300px;
	display: flex;
	gap: 15px;
	margin-top: 30px;
}

.btn-cancel {
	background: #f5f5f5;
	color: #64748B;
}

/* ----------------------------- Responsive Design -------------------------------- */
@media (max-width: 768px) {
	.profile-header {
		padding: 30px 20px;
		border-radius: 0;
	}

	.profile-header-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.profile-info h1 {
		font-size: 24px;
	}

	.profile-stats {
		justify-content: center;
	}

	.profile-actions {
		justify-content: center;
		width: 100%;
	}

	.btn-edit,
	.btn-follow {
		flex: 1;
		justify-content: center;
	}

	.tabs-container {
		gap: 20px;
		padding: 0 15px;
	}

	.tab-btn {
		font-size: 14px;
		padding: 12px 5px;
	}

	.avatar-upload-section {
		flex-direction: column;
		text-align: center;
	}

	.content-card {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.profile-avatar-large {
		width: 100px;
		height: 100px;
	}

	.profile-info h1 {
		font-size: 20px;
	}

	

	.profile-stats {
		gap: 20px;
	}

	.edit-profile-container {
		margin: 20px auto;
	}

	.edit-section {
		padding: 20px;
	}
}
