/* ==========================================================================
   俱樂部頁 (club-page) 專用樣式
   原為 club-page.php 內的 <style> 區塊，改為獨立檔案，僅在 PAGE=club-page 載入
   注意：由 PHP 動態產生的樣式（如運動背景色、type 判斷）仍保留在 club-page.php
   ========================================================================== */

/* 貼文頂端點擊開新分頁 */
a.post-title-link {
	min-width: 50%;
	display: flex;
	align-items: center;
	text-decoration: none;
	cursor: pointer;
	border-radius: 8px;
	transition: background-color 0.2s ease;
}
a.post-title-link:hover {
	background-color: rgba(0,0,0,0.03);
}
a.post-title-link .media {
	align-items: center;
	display: flex;
}
a.post-title-link .user-img {
	width: 55px;
	height: 55px;
	margin-right: 16px;
	position: relative;
	border-radius: 100%;
}
a.post-title-link .media-body h5 {
	font-family: 'PingFang SC', sans-serif;
	color: #51595e;
	text-transform: capitalize;
	font-weight: 600;
	margin-bottom: 5px;
}
a.post-title-link .media-body h6 {
	text-transform: capitalize;
	color: #647589;
	font-weight: 500;
}

.post-panel .profile-box .profile-content .image-section .profile-img > div {
	background-size: 60% !important;
}

.post-panel .detail-box {
	padding-bottom: 0px !important;
}

.member-avatar-box {
	background-color: #ffffff;
	box-shadow: 0px 5px 20px 0px rgba(0, 0, 0, 0.02);
	border-radius: 5px;
	display: flex;
	justify-content: center;
}

.profile-about .about-content li .details {
	width: auto;
	text-align: justify;
}

.profile-about .about-content .details h6 {
	color: #647589;
	text-transform: capitalize;
	line-height: 24px;
	font-size: 14px;
}

.profile-box {
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-box .profile-content .image-section .profile-img {
	width: 80px;
	height: 80px;
	margin: 0 auto;
	border-radius: 100%;
	position: relative;
	z-index: 1;
}

.profile-box .profile-content .image-section .profile-img::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 90px;
	height: 90px;
	transform: translate(-50%, -50%);
	border-radius: 100%;
	background: #ffffff;
	z-index: -1;
}

.profile-box .profile-content .image-section .profile-img::after {
	content: none !important; /*清除背景邊線效果*/
}


#eventTab .profile-box .profile-content .image-section .profile-img > div {
	background-size: 80% !important;
}

.profile-box .profile-content .profile-detail .event-title {
	height: 40px;
	position: relative;
}

.profile-box .profile-content .profile-detail .event-title h4 {
	font-weight: 500;
	overflow: hidden;
	width: 100%;
	max-height: 40px;
	position: absolute;
	bottom: 0px;
	margin-bottom: 5px;
}

.event-box .event-wrapper .event-content {
	height: 188px;
	overflow: hidden;
}

.event-box .event-wrapper .no-image, #postEventModel .no-image {
	opacity: 0.3;
	background-size: 25% !important;
}

#postEventModel .no-image img {
	max-height: 300px;
	opacity: 0.0;
}

.gallery-list .portfolio-image, .post-list .portfolio-image {
	padding: 5px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	margin-bottom: 20px;
	position: relative;
}

.gallery-list .portfolio-image a, .post-list .portfolio-image a {
	border-radius: 5px;
}

#postEventModel .bg-size img {
	display: block !important;
}

#postEventModel .event-content {
	padding: 30px;
	position: relative;
}

#postEventModel .event-content h3 {
	text-transform: capitalize;
	font-weight: 700;
	color: #51595e;
	margin-bottom: 6px;
	margin-top: -2px;
}

#postEventModel .event-content h6 {
	text-transform: capitalize;
	color: #647589;
	margin-bottom: 6px;
}

#postEventModel .event-content p {
	color: rgba(100, 117, 137, 0.7);
	font-size: calc(13px + 1 * (100vw - 320px) / 1600);
	line-height: 22px;
}

.club-images-slide {
	width: 100vw;
}

.club-images-slide .slick-track {
	min-width: 100%;
}

.club-images-slide .slick-active {
	width: 100vw !important;
}

.club-images-slide .slick-slide {
	overflow: hidden;
}

.club-images-slide .slick-slide img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: contain;
	transform-origin: center center;
	transform: scale(1);
	transition: transform 0.15s ease-out;
	will-change: transform;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	cursor: zoom-in;
}

.club-images-slide .slick-slide img.zoomed {
	cursor: zoom-out;
}

.club-images-slide .img-overlay {
	position: absolute;
	top: 100%;
	width: calc(100% - 2px);
	text-align: center;
	background-color: #fff5;
	padding: 10px;
	border-radius: 5px;
}

.animation-emoji::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: #b7f240;
	z-index: -1;
	background: linear-gradient(to bottom, #b7f240 0%, rgba(183, 242, 64, 0.7) 100%);
}

.cover-btns .share-btn:hover {
	color: #666;
}

#postImageModel .modal-dialog {
    width: auto;
    max-width: 80vw;
    max-height: 80vh;
	justify-content: center;
	align-items: center;
}
#postImageModel .modal-content {
	width: auto;
}
#postImageModel .modal-body {
    padding: 0;
}
#postImageModel img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
}

.group-type-tab {
	margin-left: auto;
	border-radius: 3px;
	padding: 0px 3px;
	opacity: 0.7;
	z-index: 1;
}

.group-type-tab.group {
	border: 1px solid #0064ff;
	color: #0064ff;
}

.group-type-tab.club {
	border: 1px solid #0064ff;
	color: #0064ff;
}

#post-activities-slider {
	padding: 0px 40px;
}

.post-activities-slide-prev, .post-activities-slide-next,
.post-activities-slide-prev:focus, .post-activities-slide-next:focus {
	color: #658b17;
	transform: translate(0, -50%) scale(1, 2);
}

.post-activities-slide-prev {
	left: -50px;
}

.post-activities-slide-next {
	right: -50px;
}

.post-activities-slide-prev:hover, .post-activities-slide-next:hover {
	color: #b7f240;
	transform: translate(0, -50%) scale(1.1, 2.2);
}

.post-activities-slide-prev:before,
.post-activities-slide-next:before {
  content: '';
}

@media (min-width: 992px) {
    .profile-box .profile-content .image-section .profile-img.sm-icon {
        width: 60px;
        height: 60px;
    }

    .profile-box .profile-content .image-section .profile-img.sm-icon::before {
        width: 70px;
        height: 70px;
    }

    .club-event-card .club-event-cover.sm-icon {
        height: 100px;
    }
}

@media (max-width: 991px) {
	.comment-model .modal-dialog .modal-content .image-gallery .img-part {
		height: 100vh;
	}

	.comment-model .modal-dialog .modal-content .close-btn {
		background-color: transparent;
	}

	#post-activities-slider {
		padding: 0px;
	}

	.post-activities-slide-prev, .post-activities-slide-next {
		display: none !important;
	}
}

@media (max-width: 576px) {
	.page-cover .cover-content .social-btn ul li svg {
		display: block !important;
		height: 24px;
		width: 24px;
	}

	.page-cover .cover-content .social-btn ul li h6, .page-cover .cover-content .social-btn ul li .h6 {
		display: none !important;
	}

	.slick-slide > div {
		position: relative !important;
	}

	#postImageModel .modal-dialog {
		max-width: 100vw;
		max-height: 100vh;
	}

	.cover-btns-left {
		display: flex !important;
	}
}

/* ==========================================================================
   活動卡片（首頁輪播 / 活動分頁 共用）
   外觀與搜索頁活動卡片一致：頂部彩色 banner、左上等級標籤、右上活動標籤、
   運動圖示頭像、（狀態 / 人數 / 費用）、參加者頭像
   ========================================================================== */
.club-event-card {
	position: relative;
	overflow: hidden;
	padding: 0px;
	min-height: 400px;
	margin: 0px;
}

.club-event-card .club-event-cover {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 130px;
	overflow: hidden;
}

.club-event-card .club-event-cover .animation-emoji::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.club-event-card .club-event-cover .animation-emoji .circles li {
	width: 10%;
	z-index: 0;
}

.club-event-card .level-tag {
	left: 10px;
	z-index: 2;
}

.club-event-card .event-tag {
	z-index: 2;
}

.club-event-card .club-event-body {
	position: relative;
	z-index: 1;
	padding: 30px 20px;
}

.club-event-card .profile-img > div {
	background-size: 50% !important;
}

.club-event-card.past-event-card {
	opacity: 0.6;
}

/* 首頁輪播的空白卡片（活動不足時補位） */
.club-event-card-empty .club-event-cover {
	background-color: #fbfbfb;
}

.club-event-card-empty .club-event-body {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
