/* game_friendlist 頁面 */
.friendList-wrapper {
	max-width: 600px;
	margin: 1.5rem auto;
	padding: 0 1rem;
}

.friendList-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.friendList-header h2 {
	color:#1d4a77;
	margin: 0;
}

.addFriendBtnBox{
	width:100%;
	height:auto;
	margin-bottom:1rem;
}

.addFriendBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	/* border-radius: 0; */
	border: 2px solid #1d4a77;
	/* background: #e83d2f; */
	color: #1d4a77;
	font-size: 1.6rem;
	text-decoration: none;
	line-height: 1;
}

.addFriendBtn:hover {
	/* background: #c0392b; */
	border: 2px solid #c0392b;
	color: #c0392b;
}

.friendItem {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: .75rem;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.friendItem-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .75rem 1rem;
	cursor: pointer;
	user-select: none;
}

.friendItem-summary:hover {
	background: #f9f9f9;
}

.friendItem-name {
	font-weight: bold;
	font-size: 1rem;
}

.friendItem-type {
	color: #e83d2f;
	font-size: .9rem;
}

.friendItem-toggle {
	font-size: 1.2rem;
	color: #999;
	transition: transform .2s;
}

.friendItem-toggle.open {
	transform: rotate(180deg);
}

.friendItem-detail {
	display: none;
	border-top: 1px solid #eee;
	padding: .75rem 1rem;
	background: #fafafa;
	font-size: .9rem;
	line-height: 2;
}

.friendItem-detail table {
	width: 100%;
	border-collapse: collapse;
}

.friendItem-detail td {
	padding: .2rem .5rem;
}

.friendItem-detail td:first-child {
	color: #888;
	width: 6em;
	white-space: nowrap;
}

.friendItem-detail table + table {
	border-top: 1px dashed #ddd;
	margin-top: .5rem;
	padding-top: .5rem;
}

.emptyMsg {
	text-align: center;
	color: #8a8a8a;
	padding: 2rem 0;
}

.logoutBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .35rem .9rem;
	border-radius: 20px;
	background: #f0f0f0;
	color: #555;
	font-size: .85rem;
	text-decoration: none;
	border: 1px solid #ddd;
	line-height: 1.4;
}

.logoutBtn:hover {
	background: #e83d2f;
	color: #fff;
	border-color: #e83d2f;
}

/* 分享活動按鈕 */
.shareActivityBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .35rem .9rem;
	border-radius: 20px;
	background: #1d4a77;
	color: #fff;
	font-size: .85rem;
	text-decoration: none;
	border: 1px solid #1d4a77;
	line-height: 1.4;
}

.shareActivityBtn:hover {
	background: #e83d2f;
	border-color: #e83d2f;
	color: #fff;
}

/* 分享 Modal 遮罩 */
.shareModalWrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.5);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.shareModalContent {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 2rem 1.5rem 1.5rem;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	font-size: .95rem;
	line-height: 1.7;
}

.shareModalClose {
	position: absolute;
	top: .75rem;
	right: .75rem;
	background: #304973;
	padding: .35rem;
	border-radius: 50%;
	display: flex;
}

.shareModalClose img {
	width: 28px;
	height: 28px;
}

/* 分享按鈕列 */
.shareBtnRow {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin: 1rem 0;
	flex-direction: row;
}

.shareBtnRow a img {
	width: 150px;
	height: auto;
}

@media (max-width: 767px) { 
	.shareBtnRow {
		flex-direction: column;
		gap: .5rem;
	}
	
	.shareBtnRow a img {
		width: 90%;
		height: auto;
	}

}