@charset "utf-8";

/* 모바일 목록 */
@media all and (max-width:767px) {
	.responsive #bo_list .float-left.float-md-none { margin-right:0.75rem; }
	.responsive #bo_list .na-title { margin-bottom:0.14rem; }
}

/* 카테고리 탭 스타일 */
.category-tabs { display: flex; gap: 10px; margin-bottom: 30px; overflow-x: auto; padding: 5px 0; }
.category-tabs::-webkit-scrollbar { height: 6px; }
.category-tabs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.category-tab { flex-shrink: 0; padding: 12px 24px; background: #f5f5f5; border: none; border-radius: 25px; font-size: 15px; font-weight: 500; color: #666; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
.category-tab:hover { background: #e8e8e8; color: #333; }
.category-tab.active { background: linear-gradient(135deg, #e63946, #d62839); color: #fff; box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3); }

/* 링크모음 버튼 */
.link-collection-btn { position: absolute; top: 20px; right: 20px; padding: 10px 20px; background: #333; color: #fff; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.3s; }
.link-collection-btn:hover { background: #000; color: #fff; text-decoration: none; transform: translateY(-2px); }

/* 카테고리 제목 */
.category-section-title { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; color: #333; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 3px solid #f0f0f0; }
.category-section-title .icon { font-size: 28px; }

/* gallery - 카드 스타일로 변경 */
#bo_gallery { padding: 0; border: none; }
#bo_gallery ul { margin: 0 -10px; }
#bo_gallery li { padding: 0 10px 20px; opacity: 0; animation: fadeInUp 0.6s ease-out forwards; }
#bo_gallery li:nth-child(1) { animation-delay: 0.1s; }
#bo_gallery li:nth-child(2) { animation-delay: 0.15s; }
#bo_gallery li:nth-child(3) { animation-delay: 0.2s; }
#bo_gallery li:nth-child(4) { animation-delay: 0.25s; }
#bo_gallery li:nth-child(5) { animation-delay: 0.3s; }
#bo_gallery li:nth-child(6) { animation-delay: 0.35s; }
#bo_gallery li:nth-child(7) { animation-delay: 0.4s; }
#bo_gallery li:nth-child(8) { animation-delay: 0.45s; }
#bo_gallery li:nth-child(9) { animation-delay: 0.5s; }
#bo_gallery li:nth-child(10) { animation-delay: 0.55s; }
#bo_gallery .card-wrapper { background: #fff; border-radius: 12px; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 8px rgba(0,0,0,0.08); height: 100%; display: flex; flex-direction: column; position: relative; }
#bo_gallery .card-wrapper::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(139, 92, 246, 0.1)); opacity: 0; transition: opacity 0.4s; z-index: 1; pointer-events: none; }
#bo_gallery .card-wrapper:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 12px 24px rgba(45, 212, 191, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.1); }
#bo_gallery .card-wrapper:hover::before { opacity: 1; }
#bo_gallery .img-wrap { padding-bottom: 0; height: 180px; margin: 0; border-radius: 0; position: relative; overflow: hidden; }
#bo_gallery .img-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#bo_gallery .img-item img { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); filter: brightness(1); }
#bo_gallery .card-wrapper:hover .img-item img { transform: scale(1.1); filter: brightness(1.1); }
#bo_gallery .card-content { padding: 0; flex-grow: 1; display: flex; flex-direction: column; position: relative; z-index: 2; background: linear-gradient(135deg, #f8f9fa, #e9ecef); }
#bo_gallery .na-title { margin: 0; padding: 15px; border-top: 1px solid #f0f0f0; transition: all 0.3s; }
#bo_gallery .card-wrapper:hover .na-title { background: linear-gradient(135deg, rgba(45, 212, 191, 0.05), rgba(139, 92, 246, 0.05)); }
#bo_gallery .na-subject { font-size: 20px; font-weight: 600; color: #333; display: block; text-align: center; transition: all 0.3s; }
#bo_gallery .card-wrapper:hover .na-subject { color: #8b5cf6; transform: translateY(-2px); }
#bo_gallery .card-meta { display: none; }
#bo_gallery .chk-box { position: absolute; top: 10px; right: 10px; z-index: 3; }
#bo_gallery .wr-now { position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0,0,0,0.75); z-index: 1; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* 순위 뱃지 */
.rank-badge { position: absolute; top: 5px; left: 5px; display: flex; align-items: center; justify-content: center; z-index: 3; transition: all 0.3s; cursor: pointer; }
.rank-badge:hover { animation: shake 0.5s ease-in-out; }
.rank-badge.rank-1 { width: 50px; height: 50px; font-size: 50px; animation: pulse1 2s infinite, rotate1 3s infinite; }
.rank-badge.rank-1::after { content: '🥇'; filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5)); }
.rank-badge.rank-1:hover { animation: shake 0.5s ease-in-out, pulse1 2s infinite; }
.rank-badge.rank-2 { width: 46px; height: 46px; font-size: 46px; animation: pulse2 2.5s infinite; }
.rank-badge.rank-2::after { content: '🥈'; filter: drop-shadow(0 2px 6px rgba(192, 192, 192, 0.5)); }
.rank-badge.rank-2:hover { animation: shake 0.5s ease-in-out, pulse2 2.5s infinite; }
.rank-badge.rank-3 { width: 42px; height: 42px; font-size: 42px; animation: pulse3 3s infinite; }
.rank-badge.rank-3::after { content: '🥉'; filter: drop-shadow(0 2px 6px rgba(205, 127, 50, 0.5)); }
.rank-badge.rank-3:hover { animation: shake 0.5s ease-in-out, pulse3 3s infinite; }
.rank-badge.normal { background: linear-gradient(135deg, #06b6d4, #9333ea); font-size: 13px; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.rank-badge.normal:hover { animation: shake 0.5s ease-in-out; transform: scale(1.15); }
@keyframes pulse1 { 0%, 100% { filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5)); } 50% { filter: drop-shadow(0 4px 16px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6)); } }
@keyframes pulse2 { 0%, 100% { filter: drop-shadow(0 2px 6px rgba(192, 192, 192, 0.5)); } 50% { filter: drop-shadow(0 4px 12px rgba(192, 192, 192, 0.8)) drop-shadow(0 0 16px rgba(192, 192, 192, 0.6)); } }
@keyframes pulse3 { 0%, 100% { filter: drop-shadow(0 2px 6px rgba(205, 127, 50, 0.5)); } 50% { filter: drop-shadow(0 4px 10px rgba(205, 127, 50, 0.8)) drop-shadow(0 0 12px rgba(205, 127, 50, 0.6)); } }
@keyframes rotate1 { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes shake { 0%, 100% { transform: rotate(0deg); } 10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); } 20%, 40%, 60%, 80% { transform: rotate(10deg); } }

/* 라벨 캡션 */
.label-cap { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; z-index: 2; animation: fadeInRight 0.5s ease-out; }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* 게시판 읽기 */
#bo_v_title { font-size: 23px; font-weight: bold; line-height: 1.4; letter-spacing: -1px; }
#bo_v_con { min-height: 200px; word-break: break-all; overflow: hidden; }
@media all and (max-width:575px) {
	.responsive #bo_v_title { font-size: 20px; line-height: 1.5; }
	.responsive #bo_v_con { min-height: 140px; }
}
#bo_v_con img { max-width: 100%; height: auto; }
#bo_v_img { width: 100%; text-align: center; overflow: hidden; zoom: 1; }
#bo_v_img:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_v_img a.view_image { display: block; }
#bo_v_img img { margin-bottom: 1.0rem; }

/* 게시판 읽기 : SNS 공유 */
#bo_v_sns_icon { margin: -5px auto; }
#bo_v_sns_icon img { width: 40px; border-radius: 50%; margin: 5px; }

/* 게시판 댓글 : 내용 */
.cmt-reply { top: 0; left: -16px; }
.by-writer { background: #fbefef !important; border-top: 1px solid #f6cece !important; }
.cmt-content { word-break: break-all; overflow: hidden; }
.cmt-content img { max-width: 100%; height: auto; }

/* 게시판 댓글 : 대댓글, 수정, 삭제 */
.cmt-btn ul { list-style: none; margin: 0; }
.cmt-btn ul > li { float: left; font-size: 12px; padding: 0 10px; }
.cmt-btn ul > li::before { float: left; color: #ccc; content: "|"; margin-left: -12px; }
.cmt-btn ul > li:last-child { padding-right: 0; }
.cmt-btn ul > li:first-child::before, .cmt-btn ul > li.no-bar::before { content: ""; margin-left: 0; }
.cmt-btn ul > li > a { float: left; color: #888; white-space: nowrap; }

/* 게시판 댓글 : 쓰기폼 */
#fviewcomment #wr_content { resize: none; }
@media all and (max-width:575px) {
	.responsive .cmt-box { border-right: 0 !important; }
	.responsive #bo_vc_w .cmt-box { border-left: 0 !important; border-radius: 0 !important; }
	.responsive #bo_vc_login { border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; }
}

/* 게시판 댓글 : SNS 등록 */
#bo_vc_opt ol { margin: 0; padding: 0; list-style: none; zoom: 1; background: #ccc; border-radius: 3px; }
#bo_vc_opt ol:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_vc_opt ol li { float: left; margin: 0; }
#bo_vc_send_sns ul { margin: 0; padding: 0; list-style: none; zoom: 1; }
#bo_vc_send_sns ul:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_vc_send_sns ul li { float: left; margin: 0 1.0rem 0 0; }
#bo_vc_send_sns input { margin: 0 0 0 0.5rem; }

/* 게시판 쓰기 */
#bo_w .list-group-item { padding-left: 0; padding-right: 0; border-left: 0; border-right: 0; }
#bo_w #wr_content { margin-bottom: 1.0rem !important; }

.na-title .na-item{justify-content: center;}
@media all and (max-width:575px) {
	#bo_w .list-group-item { padding-left: 1.0rem; padding-right: 1.0rem; }
	.responsive #bo_w #wr_content { max-height: 160px !important; }
}

/* 반응형 */
@media all and (max-width:767px) {
	.category-section-title { font-size: 20px; }
	.link-collection-btn { position: static; display: block; width: 100%; text-align: center; margin-bottom: 20px; }
}

/* 반응형 - 모바일에서 더 작게 */
@media all and (max-width:767px) {
	.category-section-title { font-size: 18px; }
	.link-collection-btn { position: static; display: block; width: 100%; text-align: center; margin-bottom: 15px; }
	#bo_gallery ul { margin: 0 -5px; }
	#bo_gallery li { padding: 0 5px 12px; }
	#bo_gallery .card-wrapper { border-radius: 10px; }
	#bo_gallery .img-wrap { height: 110px; }
	#bo_gallery .img-item img { padding: 12px; }
	#bo_gallery .na-title { padding: 10px; }
	#bo_gallery .na-subject { font-size: 14px; font-weight: 600; }
	.rank-badge.rank-1 { width: 35px; height: 35px; font-size: 35px; top: 3px; left: 3px; }
	.rank-badge.rank-2 { width: 32px; height: 32px; font-size: 32px; top: 3px; left: 3px; }
	.rank-badge.rank-3 { width: 28px; height: 28px; font-size: 28px; top: 3px; left: 3px; }
	.rank-badge.normal { width: 24px; height: 24px; font-size: 10px; top: 3px; left: 3px; }
	.category-tabs { gap: 6px; padding: 3px 0; }
	.category-tab { padding: 8px 14px; font-size: 13px; }
}

@media all and (max-width:575px) {
	#bo_gallery ul { margin: 0 -4px; }
	#bo_gallery li { padding: 0 4px 10px; }
	#bo_gallery .card-wrapper { border-radius: 8px; }
	#bo_gallery .img-wrap { height: 60px; }
	#bo_gallery .img-item img { padding: 10px; }
	#bo_gallery .na-title { padding: 4px; }
	#bo_gallery .na-subject { font-size: 13px; font-weight: 600; }
	.rank-badge.rank-1 { width: 22px; height: 22px; font-size: 19px; top: 2px; left: 2px; }
	.rank-badge.rank-2 { width: 22px; height: 22px; font-size: 19px; top: 2px; left: 2px; }
	.rank-badge.rank-3 { width: 22px; height: 22px; font-size: 19px; top: 2px; left: 2px; }
	.rank-badge.normal { width: 20px; height: 20px; font-size: 9px; top: 2px; left: 2px; }
	.category-tabs { gap: 5px; }
	.category-tab { padding: 7px 12px; font-size: 12px; }
	.category-section-title { font-size: 16px; }
}