/* 모달 배경 (오버레이) */
#modalOverlay {
	display: none; 
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.6);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

/* 모달 컨텐츠 박스 (모바일 대응) */
.modal-content {
	background: #fff;
	width: 90%; /* 모바일에서 좌우 여백 확보 */
	max-width: 400px; /* PC 등 큰 화면에서의 최대 너비 */
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0,0,0,0.3);
	animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* 1. 상단 헤더 */
.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}
.modal-header h2 { margin: 0; color: #333; }
.btn-close { 
	background: none; border: none; font-size: 24px; cursor: pointer; color: #999; 
	line-height: 1; padding: 0;
}

/* 2. 중앙 소셜 버튼 영역 (4개 아이콘) */
.modal-body {
    padding: 25px 15px;
    display: flex;
    gap: 10px;
    justify-content: space-evenly;
}
.share-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #444;
	cursor: pointer;
}
.icon {
	width: 50px; height: 50px;
	border-radius: 50%;
	margin-bottom: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 20px;
	font-weight: bold;
}
/* 브랜드별 색상 */
.kakao { background: #FEE500; color: #3c1e1e; }
.facebook { background: #1877F2; }
.twitter { background: #000; }
.telegram { background: #0088cc; }

/* 3. 하단 URL 복사 영역 */
.modal-footer {
	padding: 20px;
	background: #f8f9fa;
	display: flex;
	flex-direction: column; /* 모바일에서 입력을 위로, 버튼을 아래로 할 수 있도록 설정 */
	gap: 10px;
}
.copy-wrapper {
	display: flex;
	width: 100%;
	gap: 8px;
}
.url-input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	color: #666;
	outline: none;
	background-color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
}
.btn-copy {
	background: #333; color: #fff; border: none;
	padding: 0 15px; border-radius: 6px; cursor: pointer;
	font-weight: bold; white-space: nowrap;
}
.btn-copy:active { background: #000; }



/* 복사 완료 안내 문구 스타일 */
.copy-success-msg {
	display: none; /* 기본은 숨김 */
	color: #2ecc71;
	font-size: 13px;
	margin-top: 5px;
	text-align: center;
	font-weight: bold;
}

/* 공유 버튼 호버 효과 추가 */
.share-item:hover .icon {
	transform: scale(1.05);
	transition: transform 0.2s;
}
