/* Profile Page - Sidebar Layout */
/* Стиль в едином дизайне с header.css */

.profile-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	padding: 24px 0;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.profile-sidebar {
	--ps-bg: #1a1a1a;
	--ps-bg-hover: rgba(255, 255, 255, 0.08);
	--ps-border: rgba(255, 255, 255, 0.08);
	--ps-text: #ffffff;
	--ps-text-muted: #a0a0a0;
	--ps-accent: #e34449;
	--ps-radius: 8px;
	--ps-transition: 0.2s ease;

	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ----- User Header ----- */
.profile-sidebar__header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px;
	background: var(--ps-bg);
	border-radius: var(--ps-radius);
}

.profile-sidebar__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #2a2a2a;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.profile-sidebar__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-sidebar__avatar .icon {
	width: 24px;
	height: 24px;
	fill: #666;
}

.profile-sidebar__info {
	flex: 1;
	min-width: 0;
}

.profile-sidebar__name {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--ps-text);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.profile-sidebar__email {
	margin-top: 2px;
	font-size: 12px;
	color: var(--ps-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ----- Quick Actions (Edit, Password, Email) ----- */
.profile-sidebar__actions {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.profile-sidebar__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 8px;
	font-size: 11px;
	font-weight: 500;
	color: var(--ps-text-muted);
	background: var(--ps-bg);
	border-radius: var(--ps-radius);
	text-decoration: none;
	transition: background-color var(--ps-transition), color var(--ps-transition);
}

.profile-sidebar__action:hover {
	background: var(--ps-bg-hover);
	color: var(--ps-text);
}

.profile-sidebar__action .icon {
	width: 20px;
	height: 20px;
	color: var(--ps-text);
}

/* ----- Navigation ----- */
.profile-nav {
	display: flex;
	flex-direction: column;
	background: var(--ps-bg);
	border-radius: var(--ps-radius);
	overflow: hidden;
}

.profile-nav__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ps-text-muted);
	text-decoration: none;
	transition: background-color var(--ps-transition), color var(--ps-transition);
}

.profile-nav__item:hover {
	background: var(--ps-bg-hover);
	color: var(--ps-text);
}

.profile-nav__item--active {
	color: var(--ps-text);
	background: var(--ps-accent);
}

.profile-nav__item--active:hover {
	background: var(--ps-accent);
}

.profile-nav__item .icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex-shrink: 0;
}

.profile-nav__item span {
	flex: 1;
}

.profile-nav__count {
	font-size: 12px;
	font-weight: 600;
	color: var(--ps-text-muted);
	background: #252525;
	padding: 2px 8px;
	border-radius: 10px;
}

.profile-nav__item--active .profile-nav__count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.profile-nav__divider {
	height: 1px;
	background: var(--ps-border);
	margin: 4px 0;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.profile-content {
	min-width: 0;
}

.profile-content__title {
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 20px 0;
}

/* =====================================================
   RESPONSIVE - TABLET (768px - 1023px)
   ===================================================== */
@media (max-width: 1023px) {
	.profile-layout {
		grid-template-columns: 240px 1fr;
		gap: 20px;
	}

	.profile-sidebar__header {
		flex-direction: column;
		text-align: center;
		padding: 20px 16px;
	}

	.profile-sidebar__info {
		width: 100%;
	}
}

/* =====================================================
   RESPONSIVE - MOBILE (< 768px)
   ===================================================== */
@media (max-width: 767px) {
	.profile-layout {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 16px 0;
	}

	.profile-sidebar {
		gap: 10px;
	}

	.profile-sidebar__header {
		flex-direction: row;
		text-align: left;
		padding: 14px;
	}

	.profile-sidebar__avatar {
		width: 48px;
		height: 48px;
	}

	.profile-sidebar__name {
		font-size: 15px;
	}

	.profile-sidebar__action {
		padding: 12px 6px;
	}

	.profile-sidebar__action .icon {
		width: 18px;
		height: 18px;
	}

	.profile-nav__item {
		padding: 12px 14px;
		font-size: 13px;
	}

	.profile-nav__divider {
		display: none;
	}
}

/* =====================================================
   RESPONSIVE - SMALL MOBILE (< 480px)
   ===================================================== */
@media (max-width: 479px) {
	.profile-sidebar__header {
		padding: 12px;
	}

	.profile-sidebar__avatar {
		width: 40px;
		height: 40px;
	}

	.profile-sidebar__actions {
		gap: 6px;
	}

	.profile-sidebar__action {
		padding: 10px 4px;
		gap: 4px;
		font-size: 10px;
	}

	.profile-sidebar__action .icon {
		width: 16px;
		height: 16px;
	}
}
