@charset "UTF-8";

/* --- 변수 및 기초 설정 --- */
:root {
	--accent: #328889;
	--accent-dark: #286d6e;
	--line: #e5e7eb;
	--bg-light: #F8F9FA;
	--tag-bg: #e9e9e9;
	--ink: #111827;
	--star-color: #FFD700;
}

/* --- 헤더 프로필 영역 --- */
.profile-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	padding: 0 0 35px;
}

.topLeft {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.detail-thumb {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--line);
	background: #f9fafb;
	flex: 0 0 auto;
	object-fit: cover;
	display: block;
}

.profile-main-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.coach-name-row {
	display: flex;
	align-items: center;
	gap: 15px;
}

.coach-name {
	font-weight: 800;
	color: var(--ink);
	font-size: 24px;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 640px;
}

.coach-title {
	font-weight: 500;
	color: #555555;
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 340px;
}

/* 오른쪽 액션 영역 */
.topRight {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.topIcons {
	display: flex;
	gap: 10px;
	margin-right: 30px;
}

.topRight .iconBtn {
	width: 30px;
	height: 30px;
	border: none;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.topRight .iconBtn img {
	width: 30px;
	height: 30px;
	border-radius: 0px !important;
}

.topRight .iconBtn:last-child img {
	width: 15px;
	height: 15px;
}

.header-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.btn-header {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	width: 170px; border-radius : 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .12s ease, background .12s ease, border-color .12s
		ease;
	white-space: nowrap;
	border-radius: 999px;
}

.btn-chat-outline {
	background: #FFFFFF;
	border-color: #328889;
	color: #328889;
}

.btn-match-solid {
	background: #328889;
	color: white;
}

.btn-header:disabled {
	background: #eee !important;
	color: #aaa !important;
	border-color: #ddd !important;
	cursor: default;
}

/* --- 탭 메뉴 (Sticky 적용) --- */

#detail, #reviews {
	scroll-margin-top: 140px;
	/* top(헤더)+탭 높이 합친 값으로 조절 */
}
.detail-tabs {
	position: sticky;
	top: 73px; /* ← 헤더 높이에 맞춰 조절 (ex 70~100px) */
	z-index: 50;
	background: #fff; /* 뒤에 내용 비치지 않게 */
	padding-top: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.tab {
	position: relative;
	padding: 13px 10px;
	font-weight: 400;
	font-size: 15px;
	text-decoration: none;
	color: #6b7280;
}

.tab.active {
	font-weight: 700;
	color: var(--ink);
}

.tab.active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0px;
	height: 2px;
	border-radius: 999px;
	background: var(--ink);
}

#content-info {
	margin-top: 18px !important;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
/* --- 섹션 공통 --- */
.detail-section {
	padding: 18px 18px;
}

.section-title {
	display: flex;
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	align-items: center;
}

.section-content {
	color: #374151;
	font-size: 15px;
	white-space: pre-line;
	margin-left: 20px;
}

.info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

/* --- 태그 및 영상 --- */
.tag-list {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.detail-tag {
	background: var(--tag-bg);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	color: inherit;
}

.video-placeholder {
	width: 100%;
	aspect-ratio: 16/9;
	background: #000;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.video-placeholder video {
	width: 100%;
	height: 100%;
}

/* --- 리뷰 카드 --- */
.review-summary {
	margin-bottom: 25px;
	font-size: 18px;
	font-weight: 600;
	display: block;
}

.review-summary b {
	color: var(--accent);
}

.review-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.review-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 20px;
}

.review-user {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 10px;
}

.review-user-img {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	overflow: hidden;
	background: #eee;
}

.review-user-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.review-user-info .name a {
	font-weight: 700;
	text-decoration: none;
	color: inherit;
}

.review-rating {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.rating-stars {
	color: var(--star-color);
}

.review-text {
	font-size: 14px;
	margin-bottom: 12px;
	line-height: 1.5;
	color: #4b5563;
}

.review-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.review-hash {
	background-color: #f3f4f6;
	padding: 4px 10px;
	border-radius: 15px;
	font-size: 0.82rem;
	color: #4b5563;
}

.allReviewBtn {
	color: #888888 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	margin-left: 15px !important;
}