@charset "utf-8";

/* Base Variables */
:root {
	/* Light Theme */
	--background-color-light: #ffffff;
	--text-color-light: #333333;
	--text-color-secondary-light: #666666;
	--border-color-light: #e0e0e0;
	--card-bg-light: #f8f9fa;
	--nav-bg-light: rgba(255, 255, 255, 0.9);
	--list-tag-light: #e0e0e0;

	/* Dark Theme */
	--background-color-dark: #121212;
	--text-color-dark: #ffffff;
	--text-color-secondary-dark: #999;
	--border-color-dark: #333333;
	--card-bg-dark: #1e1e1e;
	--nav-bg-dark: rgba(18, 18, 18, 0.9);
	--list-tag-dark: #444444;
	
	/* Common Colors */
	--primary-color: #6366f1;
	--accent-color: #f6375a;
}

/* Theme Settings */
html[data-theme='light'] {
	--background-color: var(--background-color-light);
	--text-color: var(--text-color-light);
	--text-color-secondary: var(--text-color-secondary-light);
	--border-color: var(--border-color-light);
	--card-bg: var(--card-bg-light);
	--nav-bg: var(--nav-bg-light);
	--list-tag: var(--list-tag-light);
}

html[data-theme='dark'] {
	--background-color: var(--background-color-dark);
	--text-color: var(--text-color-dark);
	--text-color-secondary: var(--text-color-secondary-dark);
	--border-color: var(--border-color-dark);
	--card-bg: var(--card-bg-dark);
	--nav-bg: var(--nav-bg-dark);
	--list-tag: var(--list-tag-dark);
}

/* Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Noto Sans KR", sans-serif !important;
	background-color: var(--background-color);
	color: var(--text-color);
	line-height: 1.6;
	transition: background-color 0.3s, color 0.3s;
	padding-bottom: 70px;
}
 
 ul, dl {
	 list-style:none;
 }

a {
	text-decoration:none;
	color: var(--text-color);
}		

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: var(--nav-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
	transition: transform 0.3s;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--text-color);
	font-weight: 900;
	font-size: 1.5rem;
}

.logo img {
	width: 33px;
	height: 33px;
	border-radius: 17px;
}

.header-icons {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.header-icons a {
	color: var(--text-color);
	font-size: 1.25rem;
	text-decoration: none;
}

/* Theme Switch */
.theme-switch {
	position: relative;
	width: 56px;
	height: 28px;
	margin-left: 1rem;
}

.theme-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.theme-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--card-bg);
	border: 2px solid var(--border-color);
	transition: .4s;
	border-radius: 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 7px 0 5px;
}

.theme-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 2px;
	bottom: 2px;
	background-color: var(--accent-color);
	transition: .4s;
	border-radius: 50%;
}

.theme-switch input:checked + .theme-slider:before {
	transform: translateX(28px);
}

.theme-icons {
	color: var(--text-color);
	font-size: 14px;
	z-index: 1;
}

/* Main Content */
.main-content {
	max-width: 1200px;
	margin: 80px auto 0;
	padding: 0 1rem;
}

/* Search Section 스타일 수정 */
.search-section {
	background-color: var(--card-bg);
	padding: 0.75rem;
	border-radius: 15px;
	margin-bottom: 2rem;
	border: 1px solid var(--border-color);
}

.search-container {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.search-main {
	display: flex;
	gap: 0.5rem;
	position: relative;
}

.search-input-wrapper {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
}

.search-input-wrapper input {
	width: 100%;
	padding: 0.75rem;
	border: none;
	background: transparent;
	color: var(--text-color);
	font-size: 0.95rem;
	outline: none;
}

.search-type-select {
	position: relative;
	min-width: 120px;
}

.search-type-btn {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background-color: var(--background-color);
	color: var(--text-color);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.95rem;
}

.search-type-options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 0.5rem;
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 0.5rem;
	display: none;
	z-index: 100;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-type-option {
	padding: 0.75rem;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.2s;
}

.search-type-option:hover {
	background-color: var(--background-color);
}

.search-buttons {
	display: flex;
	gap: 0.5rem;
}

.search-btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.95rem;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.search-btn.primary {
	background-color: var(--accent-color);
	color: white;
}

.search-btn.primary:hover {
	background-color: #d92c4c;
}

.search-btn.secondary {
	background-color: var(--background-color);
	color: var(--text-color);
	border: 1px solid var(--border-color);
}

.search-btn.secondary:hover {
	background-color: var(--card-bg);
}

/* 고급 검색 패널 */
.advanced-search {
	display: none;
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1rem;
	margin-top: 1rem;
}

.advanced-search.active {
	display: block;
}

.advanced-search-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.advanced-search-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.advanced-search-item label {
	font-size: 0.9rem;
	color: var(--text-color);
}

.advanced-search-item select,
.advanced-search-item input {
	padding: 0.5rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background-color: var(--background-color);
	color: var(--text-color);
}

.sound_only {
	display:none !important;
}

/* 반응형 수정 */
@media (max-width: 768px) {
	.search-main {
		flex-direction: column;
	}

	.search-type-select {
		min-width: 100%;
	}

	.search-input-wrapper {
		width: 100%;
	}

	.search-buttons {
		width: 100%;
	}

	.search-btn {
		flex: 1;
		justify-content: center;
	}

	.advanced-search-grid {
		grid-template-columns: 1fr;
	}
}
/* Character Tags */
.character-tags {
	display: flex;
	gap: 0.5rem;
	margin: 1rem 0;
	overflow-x: auto;
	padding: 0.5rem 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.character-tags.grabbing {
	cursor: grabbing;
}

.character-tags::-webkit-scrollbar {
	display: none;
}

.tag {
	padding: 0.5rem 1rem;
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	color: var(--text-color);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s;
	font-size: 0.9rem;
}

.tag.active {
	background-color: var(--accent-color);
	color: white;
	border-color: var(--accent-color);
}
		
/* 태그 모달 버튼 */
.tag-modal-btn {
	padding: 8px 16px;
	background-color: var(--accent-color);
	border: none;
	border-radius: 20px;
	color: white;
	cursor: pointer;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.3s;
	white-space: nowrap;
}

.tag-modal-btn:hover {
	background-color: #d92c4c;
}

/* 태그 모달 */
.tag-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1001;
	backdrop-filter: blur(5px);
}

.tag-modal-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: var(--card-bg);
	border-radius: 15px;
	padding: 20px;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
	border: 1px solid var(--border-color);
}

.tag-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--border-color);
}

.tag-modal-header h3 {
	font-size: 1.2rem;
	color: var(--text-color);
	margin: 0;
}

.tag-modal-close {
	background: none;
	border: none;
	color: var(--text-color);
	font-size: 1.2rem;
	cursor: pointer;
	padding: 5px;
}

.tag-modal-body {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tag-modal-body .tag {
	margin: 0;
}

/* Slider Section */
.slider-section {
	margin: 2rem 0;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding: 0 0.5rem;
}

.section-title {
	font-size: 1.25rem;
	color: var(--text-color);
	font-weight: bold;
}

.see-more {
	color: var(--accent-color);
	text-decoration: none;
	font-size: 0.9rem;
}

/* Swiper Styles */
.swiper {
	overflow: hidden !important;
	padding: 1rem 0.5rem;
	margin: 0 -0.5rem;
}

.swiper-wrapper {
	display: flex;
	flex-wrap: nowrap;
}

.swiper-slide {
	width: 200px;
	background-color: var(--card-bg);
	border-radius: 15px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition: transform 0.3s;
	flex-shrink: 0;
	height: 300px;
}

.character-card {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.card-image-container {
	position: relative;
	width: 100%;
	height: 65%;
	/* overflow: hidden;*/
	/* background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.95) 100%); */
}

.card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	background-color: var(--card-bg);
}

.character-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50%;
   /*  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.9)); */
	pointer-events: none;
}

.card-overlay {
	position: absolute;
	bottom: -100px;
	left: 0;
	right: 0;
	padding: 0.5rem;
	color: var(--text-color);
	overflow:hidden;
	z-index: 2;
	background: none;
}

.card-title {
	font-size: 0.9rem;
	margin-bottom: 0.25rem;
	color: var(--text-color);
	/* text-shadow: 0 1px 2px rgba(0,0,0,0.5); */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

.card-desc {
	font-size: 0.7rem;
	margin-bottom: 0.25rem;
	color: var(--text-color);
	/* text-shadow: 0 1px 2px rgba(0,0,0,0.5); */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
}

.card-tags {
	font-size: 0.7rem;
	margin-bottom: 0.25rem;
	color: var(--text-color);
	/* text-shadow: 0 1px 2px rgba(0,0,0,0.5); */
	white-space: nowrap;
	width: 100%;
}		

.card-tags .list_tag {
	padding:0.15rem;
	border-radius:0.15rem;
	background-color:var(--list-tag);
}


.card-meta {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--text-color);
}

.card-badge,
.card-stats {
	position: absolute;
	top: 0.75rem;
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.8rem;
	z-index: 2;
	background: rgba(0,0,0,0.6);
	color: white;
	backdrop-filter: blur(4px);
}

.card-badge {
	left: 0.75rem;
	background-color:#ff0000;
	font-weight:bold;
}

.card-stats {
	right: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.character-slider {
	position:relative;
	z-index:1;
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 10;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
}

.slider-nav:hover {
	background-color: var(--accent-color);
	color: white;
}

.slider-prev {
    left:0px; /* 10px에서 -20px로 수정 */
}

.slider-next {
    right: 0px; /* 오른쪽도 동일하게 수정 */
}

.modern-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.modern-tabs a {
    padding: 10px 20px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.modern-tabs a.active {
    background: var(--accent-color);
    color: white;
}

/* Bottom Navigation */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--nav-bg);
	backdrop-filter: blur(10px);
	padding: 0.75rem;
	border-top: 1px solid var(--border-color);
	z-index: 1000;
	transition: transform 0.3s;
}

.nav-items {
	display: flex;
	justify-content: space-around;
	max-width: 600px;
	margin: 0 auto;
}

.nav-item {
	width:20%;
	color: var(--text-color);
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 0.8rem;
	opacity: 0.7;
	transition: opacity 0.3s;
}

.nav-item i {
	font-size: 1.25rem;
	margin-bottom: 0.25rem;
}

.nav-item.active {
	color: var(--accent-color);
	opacity: 1;
}

/* R-19 토글 스타일 수정 */
.block-wrap.right.r-19 {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 15px 0;
}

.block-wrap.right.r-19 strong {
	color: var(--text-color);
	font-size: 0.9rem;
	line-height: 28px; /* theme-switch 높이와 동일하게 설정 */
}

.block-wrap.right.r-19 .theme-switch {
	margin: 0; /* 기존 마진 제거 */
}
		
/* Footer Styles */
.footer-section {
	margin-top: 60px;
	padding: 40px 0;
	border-top: 1px solid var(--border-color);
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 20px;
}

.footer-logo img {
	width: 27px;
	height: 27px;
	border-radius: 14px;
}

.footer-logo span {
	font-family: 'Poppins', sans-serif;
	font-weight: 900;
	font-size: 1.2rem;
	color: var(--text-color);
}

.footer-social {
	margin-bottom: 20px;
	width: auto;
	float: right;
	position: relative;
	top: -52px;
}

.footer-social a {
	color: var(--text-color);
	font-size: 1.2rem;
	margin-right: 10px;
	opacity: 0.7;
	transition: opacity 0.3s;
}

.footer-social a:hover {
	opacity: 1;
}

.footer-info {
	color: var(--text-color);
	opacity: 0.7;
	font-size: 0.9rem;
	line-height: 1.6;
}

.footer-info strong {
	color: var(--text-color);
	opacity: 0.9;
}

.footer-links {
	margin: 20px 0;
}

.footer-links a {
	color: var(--text-color);
	opacity: 0.7;
	text-decoration: none;
	margin-right: 15px;
}

.footer-links a:hover {
	opacity: 1;
}

/* 로딩 인디케이터 스타일 */
.loading-indicator {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(3px);
	z-index: 9999;
}

.loading-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 2rem;
}

#autosave_pop ul {
	width:100%;
	height:200px;
	overflow:auto;
	border-radius:10px;
    scrollbar-width: thin;
}

/* Responsive Design */
@media (max-width: 768px) {
	.header-container {
		padding: 0.75rem 1rem;
	}

	.swiper-slide {
		width: 180px;
		height: 270px;
	}

	.card-image-container {
		height: 62.7%;
	}

	.card-title {
		font-size: 0.85rem;
	}

	.card-meta {
		font-size: 0.75rem;
	}

	.slider-nav {
		width: 32px;
		height: 32px;
	}

	.theme-switch {
		width: 48px;
		height: 24px;
	}
	
	.theme-slider:before {
		height: 16px;
		width: 16px;
	}

	.theme-switch input:checked + .theme-slider:before {
		transform: translateX(24px);
	}
	.theme-icons {
		font-size:11px;
	}
	
    .modern-tabs {
        flex-wrap: wrap;
    }
    
    .modern-tabs a {
        flex: 1 1 calc(50% - 10px);
        text-align: center;
    }
	
	.footer-section {
		margin-top: 40px;
		padding: 30px 0;
	}
}

/* 자동등록방지(CAPTCHA) 스타일 */
#captcha {
    margin: 0 auto;
    margin-top: 10px;
	width:350px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 4px;
	text-align:center;
}

#captcha legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#captcha #captcha_img {
    width: 115px;
    height: 40px;
	float:left;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #fff;
}

#captcha #captcha_mp3 {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    background: url('/plugin/kcaptcha/img/sound.gif') no-repeat center;
    border-radius: 3px;
}

#captcha #captcha_reload {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    background: url('/plugin/kcaptcha/img/reload.gif') no-repeat center;
    border-radius: 3px;
}

#captcha #captcha_key {
    width: calc(100% - 199px);
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    padding: 0 5px;
    margin-left: 5px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

#captcha #captcha_info {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-color-secondary);
    line-height: 1.4;
	clear:both;
}

/* 자동등록방지 모바일 대응 */
@media (max-width: 768px) {
    #captcha #captcha_key {
        width: calc(100% - 75px);
    }
    
    #captcha #captcha_img {
        height: 35px;
    }
    
    #captcha #captcha_mp3,
    #captcha #captcha_reload {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    #captcha {
        padding: 10px;
    }
    
    #captcha #captcha_key {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    
    #captcha #captcha_img {
        height: 30px;
    }
}

/* 최근게시물 */
.notice h2 {
	padding-bottom:10px;
	font-size:1.3rem;
	border-bottom:2px var(--border-color) solid;
	margin-bottom:10px;
}

.notice ul li {
	border-bottom:1px var(--border-color) solid;
	padding:5px;
}

.notice ul li .cnt_cmt {
	background:var(--border-color);
	padding:1px 3px;
	border-radius:2px;
	font-size:0.75rem;
	margin-left:5px;
}

.latest_div {
	width:100%;
	padding:20px;
	border-radius:10px;
	background:var(--card-bg);
}

.latest_div div.left {
	width:calc(50% - 10px);
	float:left;
}

.latest_div div.right {
	width:calc(50% - 10px);
	float:right;
}

@media (max-width: 768px) {
	.latest_div div.left {
		width:100%;
		margin-bottom:20px;
	}

	.latest_div div.right {
		width:100%;
	}
}

#notifications {
	width:calc(100% - 20px);
    position: fixed;
    background-color: rgba(51,51,51,0.9); /* 어두운 배경색 */
    border: 1px solid #444; /* 어두운 테두리 색 */
    max-width: 400px;
    top: 50px;
    right: 10px;
	text-align:center;
    color: #fff; /* 밝은 텍스트 색 */
    padding: 30px 10px 30px 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* 어두운 그림자 효과 */
    z-index: 999999999;
    cursor: pointer;
	overflow:hidden;
}

#notifications .progress {
	height:5px;
	width:calc(100% + 20px);
	background-color:#ff0000;
	position:relative;
    top: 30px;
    left: -10px;
}


.cke_sc { display:none; } 


.new_icon {
    display: inline-block;
    padding: 0 3px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    color: var(--text-color);
    background-color:var(--border-color);
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}

button.hidden {
	display:none;
}

/*
=========================================================================
[250317] CSS 추가
=========================================================================
*/
/* Base Variables */
:root {	
	/* Light Theme */
	--theme-toggle-light: #fff;	
	--list-tag-pink-light: #f6f3ff;
	--list-tag-text-light: #7d6ffa;
	--text-color-thrid-light: #888;
	--chat-user-light:#eeebffe3;
	--chat-info-light:#f5f3ff;
	--nav-home-light:url(img/navtab/nav_home_light.png) no-repeat center / 95%;
	--nav-character-light:url(img/navtab/nav_character_light.png) no-repeat center / 95%;
	--nav-plus-light:url(img/navtab//nav_plus_light.png) no-repeat center / 95%;
	--nav-chat-light:url(img/navtab/nav_chat_light.png) no-repeat center / 95%;
	--nav-mypage-light:url(img/navtab/nav_mypage_light.png) no-repeat center / 95%;
	--nav-login-light:url(img/navtab/nav_login_light.png) no-repeat center / 95%;
	--nav-join-light:url(img/navtab/nav_join_light.png) no-repeat center / 95%;

	/* Dark Theme */
	--theme-toggle-dark: #999;
	--list-tag-pink-dark: #333;
	--list-tag-text-dark: #e0ddff;	
	--text-color-thrid-dark: #aaa;
	--chat-user-dark:#7d6ffaae;
	--chat-info-dark:#292538;
	--nav-home-dark:url(img/navtab/nav_home_dark.png) no-repeat center / 95%;
	--nav-character-dark:url(img/navtab/nav_character_dark.png) no-repeat center / 95%;
	--nav-plus-dark:url(img/navtab//nav_plus_dark.png) no-repeat center / 95%;
	--nav-chat-dark:url(img/navtab/nav_chat_dark.png) no-repeat center / 95%;
	--nav-mypage-dark:url(img/navtab/nav_mypage_dark.png) no-repeat center / 95%;
	--nav-login-dark:url(img/navtab/nav_login_dark.png) no-repeat center / 95%;
	--nav-join-dark:url(img/navtab/nav_join_dark.png) no-repeat center / 95%;

	/* Common Colors */
	--primary-color: #7d6ffa;
	--accent-color: #7d6ffa !important;
}
/* Theme Settings */
html[data-theme='light'] {
	--theme-toggle: var(--theme-toggle-light);
	--list-tag-text:var(--list-tag-text-light);
	--text-color-thrid: var(--text-color-thrid-light);
	--list-tag-pink:var(--list-tag-pink-light);
	--chat-user:var(--chat-user-light);
	--chat-info:var(--chat-info-light);
	--nav-home:var(--nav-home-light);
	--nav-character:var(--nav-character-light);
	--nav-plus:var(--nav-plus-light);
	--nav-chat:var(--nav-chat-light);
	--nav-mypage:var(--nav-mypage-light);
	--nav-login:var(--nav-login-light);
	--nav-join:var(--nav-join-light);
}

html[data-theme='dark'] {
	--theme-toggle: var(--theme-toggle-dark);
	--list-tag-text:var(--list-tag-text-dark);
	--text-color-thrid: var(--text-color-thrid-dark);
	--list-tag-pink:var(--list-tag-pink-dark);
	--chat-user:var(--chat-user-dark);
	--chat-info:var(--chat-info-dark);
	--nav-home:var(--nav-home-dark);
	--nav-character:var(--nav-character-dark);
	--nav-plus:var(--nav-plus-dark);
	--nav-chat:var(--nav-chat-dark);
	--nav-mypage:var(--nav-mypage-dark);
	--nav-login:var(--nav-login-dark);
	--nav-join:var(--nav-join-dark);
}
/* 공통 */
.fa{font-size: .8em;}
textarea{font-family: "Noto Sans KR", sans-serif !important; resize:none;}
.action-button{font-size: .9em !important;}
.action-button.red{background: var(--accent-color) !important;}
.logo:hover{color: var(--text-color);}
.fa-chevron-left{font-size: 1em;}
@media (max-width: 768px) {
	.logo{font-size: 1.3em;}
}

/* 메인-태그선택 */
.tag-modal-btn{background: var(--text-color);  color: var(--background-color);}
.tag-modal-btn:hover{background: var(--text-color);}
@media (max-width: 768px) {
	.character-tags .tag, .tag-modal-btn{font-size: .8em;}
}

/* 메인-검색 */
.section-header{padding: 0;}
.search-section{padding: 0; background: none; border: none; margin-bottom: 1.2em;}
.search-main{padding: 0.7rem 0.9rem; background: none; border: none; border: 2px solid var(--text-color); border-radius: 0.8rem; margin-top: 1.2rem;}
.advanced-search{margin-top: 0.1rem;}
.search-input-wrapper{border: none;}
.search-type-btn{border: none; padding: 0.5rem; background-color: transparent;}
.search-input-wrapper input{padding: 0.5rem; background-color: transparent;}
.search-btn{padding: 0.5rem 1.1rem;  font-size: .9em;}
.search-btn>.fas{font-size: .9em; transform: translateY(1px);}

@media (max-width: 768px) {
	.search-input-wrapper{background: var(--card-bg);}
	.search-input-wrapper input{padding: 1rem 0.5rem;}
}

/* 메인-리스트 */
.section-header{margin-bottom: 0.5rem;}
.swiper-slide:has(.character-card){border: none; padding: 0; background-color: transparent; border-radius: 0; height: auto;}
.card-overlay{padding: 0; position: static; padding-top: 10px; overflow: inherit;}
.card-image-container{display: flex; flex-direction: column; height: auto;}
.card-image-container>img{border-radius: 0.8rem; width: 100%; aspect-ratio: 1/1;}
.card-tags .list_tag{padding: 0.15rem 0.3rem; color: var(--list-tag-text); background: var(--list-tag-pink);}
.card-desc{margin-bottom: 0.5rem;}
.card-tags{margin-bottom: 0.5rem;}
.card-title .fa-users::before{content: "\f6d1" !important; border: 1px solid var(--border-color); border-radius: 50%; width: 20px; height: 20px; display: inline-block; text-align: center; line-height: 20px; font-size: .75em; transform: translateY(-2px); color: var(--text-color-thrid);}
.character-tags{margin: 0;}

/* 테마 전환 버튼 */
.theme-switch{height: 33px; width: 56px;}
@media (max-width: 768px) {
	.theme-switch{height: 31px; width: 52px;}
}

.theme-slider{background: #999; border: 1px solid var(--text-color-thrid);}
.theme-slider>i{position: absolute; top:50%; transform: translateY(-50%); color: #fff;}
.theme-slider>i:first-of-type{right: 7px;}
.theme-slider>i:last-of-type{left: 7px;}
.theme-slider:before{background: #fff; box-shadow: 2px 1px 5px rgba(0, 0, 0, 0.5); bottom:3px; width: 25px; height: 25px;}

@media (max-width: 768px) {
	.theme-slider:before{bottom:2px;}
	.theme-slider>i:first-of-type{right: 6px;}
	.theme-slider>i:last-of-type{left: 6px;}
	.header-icons{gap:0.6rem;}
}

.theme-switch input:checked + .theme-slider:before {transform: translateX(25px);}

@media (max-width: 768px) {
	.theme-switch input:checked + .theme-slider:before {transform: translateX(20px);}
}

html[data-theme='dark'] .theme-slider{border-color:  #fff; background: transparent;}

/* 탭 */
.modern-tabs{padding-bottom: 0; font-size: 1.08em;}
.modern-tabs a{position: relative; background: transparent; padding: .5rem 1rem 1rem;}
.modern-tabs a.active{background: transparent; color: inherit; font-weight: 600;}
.modern-tabs a.active::after{content: ''; width: 100%; height: 5px; background: var(--accent-color); position: absolute; bottom:0; left: 0;}
.modern-tabs a>i{font-size: .8em; color: var(--text-color-thrid); transform: translateY(-2px); margin-right: 5px;}
.modern-tabs a.active>i{color: var(--accent-color);}
.modern-tabs a>i.fa-users::before{content: "\f6d1" !important;}
.modern-tabs i{display: none;}
.modern-tabs .active{color: var(--accent-color) !important;}

@media (max-width: 768px) {
	.modern-tabs{font-size: .9em; flex-wrap:nowrap; flex-direction: row; gap: 0;}
	.modern-tabs a{padding: .1rem .1rem 1rem;}
	.character-tags{gap:0.3rem}
}
@media (max-width: 350px) {
	.modern-tabs{font-size: .85em;}
}

/* 메인-공지 */
.latest_div{margin-top: 50px;}
.notice ul li .cnt_cmt{width: 17px; height: 17px; border-radius: 50%; display: inline-block; text-align: center; line-height: 15px; border-bottom-left-radius: 0; font-size: .6em; transform: translateY(-2px); margin-left: 8px;}
.notice ul li{font-size: .95em;}
.notice h2{border-bottom: none; padding-bottom: 0; font-size: 1.2em;}

.notice>ul>li:last-of-type{border-bottom: 0;}

@media (max-width: 768px) {
	.notice h2{font-size: 1.15em;}
	.notice ul li{font-size: .9em;}
}

/* 설치버튼 */
.installButton{margin-bottom: 5px;}

/* 하단 탭 아이콘 수정 */
.bottom-nav .nav-item i{display: block; width: 28px; height: 28px; margin-bottom: 0;}
.bottom-nav .nav-item i::before{display: none;}
.bottom-nav .nav-item.nav_home>i{background: var(--nav-home);}
.bottom-nav .nav-item.nav_character>i{background: var(--nav-character);}
.bottom-nav .nav-item.nav_plus>i{background: var(--nav-plus);}
.bottom-nav .nav-item.nav_chat>i{background: var(--nav-chat);}
.bottom-nav .nav-item.nav_mypage>i{background: var(--nav-mypage);}
.bottom-nav .nav-item.nav_login>i{background: var(--nav-login);}
.bottom-nav .nav-item.nav_join>i{background: var(--nav-join);}
.bottom-nav .nav-item.nav_home.active>i{background: url(img/navtab/nav_home_active.png) no-repeat center / 95% !important;}

.footer-links a{font-size: .9em; margin-right: 5px;}

/*
=========================================================================
[250328] CSS 추가
=========================================================================
*/
/* select 박스 화살표 수정 */
select {
    -webkit-appearance: none;  /* 크롬 화살표 없애기 */
    -moz-appearance: none; /* 파이어폭스 화살표 없애기 */
    appearance: none;  /* 화살표 없애기 */
	background:url('img/newicon/icon_select.png') no-repeat center right 10px / 11px auto !important;
	min-width: 100px;
	min-height: 35px;
    /* 다크모드 호환성을 위한 추가 스타일 */
    background-color: inherit;
    color: inherit;
}

select option {
    background-color: var(--background-color);
    color: var(--text-color);
}

input{min-height: 35px;}

/* hover 색상 수정 */
.chat-btn.primary:hover{background-color: #564ac5 !important;}
.search-btn.primary:hover{background-color: #564ac5;}
.btn_submit:hover{background-color: #564ac5 !important;}
.guide-button:hover{background-color: #564ac5 !important;}
.submit_btn:hover{background-color: #564ac5 !important;}
.gift_btn:hover{background-color: #564ac5 !important;}

/* 로고 수정 */
.logo{font-size: 0; background: url(img/newicon/logo.png) no-repeat center/contain; width: 170px; height: 35px;}
html[data-theme='dark'] .logo{background: url(img/newicon/logo_w.png) no-repeat center/contain;}
.logo img{display: none;}

.footer-logo{background: url(img/newicon/logo.png) no-repeat center/contain; width: 130px; height: 25px; opacity: 0.7;}
html[data-theme='dark'] .footer-logo{background: url(img/newicon/logo_w.png) no-repeat center/contain;}
.footer-logo img{display: none;}
.footer-logo span{font-size: 0; }

@media (max-width: 768px) {
	.logo{width: 150px; height: 30px;}
}
@media (max-width: 600px) {
	.logo{width: 130px; height: 25px;}
}

/* 버튼 높이 수정 */
.write_div>a, .write_div>button{height: 48px;}

/* 말풍선/R-19 수정 */
.card-stats{padding: 0.2rem 0.5rem; top:0.6rem; right: 0.5rem;}
.card-stats i{background: url(img/newicon/icon_chat.png) no-repeat center / 90%; width: 14px; height: 10px;}
.card-stats i::before{display: none;}

.card-badge{padding: 0.2rem 0.5rem; top:0.6rem; left: 0.5rem; font-size: .8em;} 

/* 리스트 아이콘 수정 */
.card-meta i{background: url(img/newicon/icon_user.png) no-repeat center / 90%; width: 12px; height: 12px; transform: translateY(1px);}
.card-meta i::before{display: none;}

/* 토글 아이콘 수정 */
.theme-slider .fa-sun{background: url(img/newicon/icon_light.png) no-repeat center / contain; width: 16px; height: 16px;}
.theme-slider .fa-moon{background: url(img/newicon/icon_dark.png) no-repeat center / contain; width: 16px; height: 16px;}
.theme-slider .fa-eye-slash{background: url(img/newicon/icon_eye_none.png) no-repeat center / contain; width: 16px; height: 16px;}
.theme-slider .fa-eye{background: url(img/newicon/icon_eye.png) no-repeat center / contain; width: 16px; height: 16px;}

.theme-slider .fas::before{display: none;}

/* 게시판 수정 */
#bo_v header{border-bottom: none !important; margin-bottom: 0 !important; padding-bottom: 15px !important;}
#bo_v_info{display: flex; justify-content: space-between; align-items: center;}
.bo_writer_info{display: flex; color: var(--text-color-thrid); font-size: .9em; flex-wrap: wrap;}
.bo_writer_info>li{display: flex; align-items: center; flex-wrap: wrap;}
.bo_writer_info>li::after{content: ''; width: 1px; height: 12px; background: var(--text-color-thrid); display: inline-block; margin: 0 10px; transform: translateY(1px);}
.bo_writer_info>li:last-of-type::after{display: none;}
.bo_writer_info .b_name{font-weight: 600;}
.bo_writer_info .b_num span{margin-left: 3px;}
#bo_v_top{margin-top: 0 !important;}

@media (max-width: 768px) {
	#bo_v_info{flex-wrap: wrap;}
	.bo_writer_info{font-size: .8em;}
	.bo_writer_info>li::after{height: 10px; margin: 0 7px;}
}

/* 댓글 없을때 폰트 크기 수정 */
.empty_comment{font-size: .9em !important;}

/* 후원 버튼 수정 */
.write_form_footer{margin-top: 5px !important;}
.write_option{align-items: center;}
.gift_btn{line-height: 1 !important; padding: .6rem .8rem !important; gap: 3px !important;}
.gift_btn>i{margin-right: 5px !important;}
.write_option .checkbox_wrap{font-size: .9em !important; display: flex !important;}
.action_btn{padding: .6rem .8rem !important;}

/* 캐릭터 상세 프로필 아이콘 수정 */
.profile-stats i{width: 13px; height: 13px; transform: translateY(1px);}
.profile-stats .fa-comment{background: url(img/newicon/icon_chat_g.png) no-repeat center / 90%;}
.profile-stats .fa-user{background: url(img/newicon/icon_user.png) no-repeat center / contain;}  
.profile-stats i::before{display: none;}

.chat-btn .fa-comment{width: 15px; height: 15px; background: url(img/newicon/icon_chat_w.png) no-repeat center / 90%; transform: translateY(1px);}
.chat-btn .fa-comment::before{display: none;}

/* 채팅리스트 폰트 조정 */
@media (max-width: 768px) {
	.chat-item-message{font-size: .8rem !important;}
}

/* 태그 수정 */
.character-tags.mainTag .tag{height: 37px; line-height: 1.2;}
.tag-modal-btn{gap: 0.2rem; padding: 0.5rem 1rem; height: 37px;}
.character-tags.mainTag .tag{height: 37px; line-height: 1.2;}
.tag-modal-btn{gap: 0.2rem; padding: 0.5rem 1rem; height: 37px;}
html[data-theme='light'] .tag-modal-btn .fa-th{width: 17px; height: 17px; background: url(img/newicon/icon_tag_w.png) no-repeat center / 90%; transform: translateY(.3px);}
html[data-theme='dark'] .tag-modal-btn .fa-th{width: 17px; height: 17px; background: url(img/newicon/icon_tag.png) no-repeat center / 90%; transform: translateY(.3px);}
.tag-modal-btn .fa-th:before{display: none;}
.tag-modal-btn .fa-th:before{display: none;}
@charset "utf-8";
/* Base Variables */

/* 공통 스타일 */

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color:var(--text-color);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

.sound_only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    border-radius: 4px;
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color:var(--text-color);
    outline: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn_submit {
    background-color:var(--accent-color);
    color: white;
    border: none;
}

.btn_submit:hover {
    opacity: 0.9;
}

.btn_cancel {
    background-color: var(--border-color);
    color: var(--text-color);
    border: none;
}

.btn_cancel:hover {
    opacity: 0.9;
}

.btn_b01 {
    background-color:var(--border-color);
    color: var(--text-color);
    border: none;
}

.btn_b01:hover {
    opacity: 0.9;
}

.btn_admin {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
}

.fa {
    margin-right: 5px;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

/* 체크박스 스타일링 */
.chk_box {
    position: relative;
}

.selec_chk {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.chk_box input[type="checkbox"] + label {
    position: relative;
    padding-left: 24px;
    color: var(--text-color);
    cursor: pointer;
}

.chk_box input[type="checkbox"] + label span {
    position: absolute;
    top: 2px;
    left: 0;
    width: 16px;
    height: 16px;
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}

.chk_box input[type="checkbox"]:checked + label span {
    background: var(--primary-color);
    border-color:var(--text-color);
}

.chk_box input[type="checkbox"]:checked + label span::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 5px;
    width: 3px;
    height: 6px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 더보기 옵션 드롭다운 공통 스타일 */
.btn_more_opt {
    position: relative;
}

.more_opt {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 120px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.more_opt li {
    border-bottom: 1px solid var(--border-color);
}

.more_opt li:last-child {
    border-bottom: none;
}

.more_opt li a,
.more_opt li button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text-color);
    background: transparent;
    border: none;
}

.more_opt li a:hover,
.more_opt li button:hover {
    background-color: var(--list-tag);
}

/* ============================================
   목록 스킨 (list.skin.php) 스타일
============================================ */
#bo_list {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

/* 카테고리 네비게이션 */
#bo_cate {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

#bo_cate h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color-secondary);
}

#bo_cate_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#bo_cate_ul li a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-color-secondary);
}

#bo_cate_ul li a:hover,
#bo_cate_ul li a.bo_cate_on {
    background-color:var(--text-color);
    color: #fff;
    border-color:var(--text-color);
}

/* 게시판 상단 정보 */
#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#bo_list_total {
    font-size: 14px;
    color: var(--text-color-secondary);
}

#bo_list_total span {
    color:var(--text-color);
    font-weight: bold;
    margin-right: 5px;
}

.btn_bo_user {
    display: flex;
    gap: 5px;
}

.btn_bo_user li {
    position: relative;
}

/* 테이블 스타일 */
.tbl_head01 {
    width: 100%;
    margin-bottom: 20px;
}

.tbl_wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

caption {
    font-size: 0;
    height: 0;
    overflow: hidden;
}

thead th {
    padding: 12px;
    border-top: 2px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-weight: bold;
    text-align: center;
    font-size: 14px;
}

tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}

.td_num2 {
    width: 80px;
}

.td_subject {
    text-align: left;
    width: auto;
}

.td_name {
    width: 100px;
}

.td_num {
    width: 70px;
}

.td_datetime {
    width: 100px;
}

/* 테이블 행 스타일링 */
.bo_notice {
    background-color: var(--nav-bg);
}

.even {
}

.bo_current {
    color:var(--text-color);
    font-weight: bold;
}

.notice_icon {
    display: inline-block;
    padding: 2px 5px;
    background-color:var(--border-color);
    color: var(--text-color);
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
}

/* 제목 스타일링 */
.bo_tit {
    font-weight: 500;
}

.bo_cate_link {
    display: inline-block;
    padding: 2px 6px;
    background-color: var(--list-tag);
    border-radius: 3px;
    font-size: 12px;
    color: var(--text-color-secondary);
    margin-right: 5px;
}

.new_icon {
    display: inline-block;
    padding: 0 3px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    color: #fff;
    background-color: var(--accent-color);
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.cnt_cmt {
    display: inline-block;
    padding: 0 3px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    color: var(--text-color);
    background-color:var(--border-color);
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.new_icon {
    display: inline-block;
    padding: 0 3px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
    color: var(--text-color);
    background-color:var(--border-color);
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

/* 페이지네이션 */
.pg_wrap {
    margin-top: 20px;
    text-align: center;
}

.pg_page, .pg_current {
    display: inline-block;
    padding: 0 10px;
    height: 30px;
    line-height: 27px;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--border-color);
    margin: 0 2px;
    border-radius: 3px;
    vertical-align: middle;
}

.pg_current {
    background-color:var(--accent-color);
    color: #fff;
}

.pg_page:hover {
    background-color: var(--list-tag);
}

/* 검색 박스 */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    max-width: 90%;
    background-color: var(--card-bg);
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
}

.bo_sch h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.bo_sch select, .bo_sch input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.sch_bar {
    position: relative;
}

.sch_input {
    width: 100%;
    padding-right: 40px !important;
}

.sch_btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background-color:var(--text-color);
    color: #fff;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
}

.bo_sch_cls {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    color: var(--text-color-secondary);
}

.bo_sch_bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* 빈 테이블 메시지 */
.empty_table {
    text-align: center;
    padding: 50px 0;
    color: var(--text-color-secondary);
}

/* ============================================
   게시글 보기 (view.skin.php) 스타일
============================================ */
#bo_v {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

/* 게시글 제목 영역 */
#bo_v header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

#bo_v_title {
    margin: 0;
    font-size: 24px;
    color: var(--text-color);
    word-break: break-all;
}

.bo_v_cate {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--list-tag);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-color-secondary);
    margin-right: 10px;
    font-weight: normal;
}

.bo_v_tit {
    display: block;
    margin-top: 10px;
    font-size: 22px;
}

/* 게시글 정보 영역 */
#bo_v_info {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

#bo_v_info h2 {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.profile_info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pf_img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.pf_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile_info_ct {
    flex: 1;
}

.profile_info_ct strong {
    display: inline-block;
    margin-right: 15px;
    color: var(--text-color);
}

.profile_info_ct .if_date {
    color: var(--text-color-secondary);
}

/* 게시물 상단 버튼 */
#bo_v_top {
    margin-top: 10px;
}

.bo_v_com {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

/* 본문 영역 */
#bo_v_atc {
    min-height: 200px;
    margin-bottom: 20px;
}

#bo_v_atc_title {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

#bo_v_share {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#bo_v_img {
    margin-bottom: 20px;
}

#bo_v_img img {
    max-width: 100%;
    height: auto;
    display: block;
}

#bo_v_con {
    line-height: 1.7;
    word-break: break-all;
    overflow: hidden;
    color: var(--text-color);
    margin-bottom: 20px;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
}

/* 추천/비추천 */
#bo_v_act {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.bo_v_act_gng {
    position: relative;
}

.bo_v_good,
.bo_v_nogood {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 4px;
    background-color: var(--list-tag);
    color: var(--text-color);
    transition: all 0.2s;
}

.bo_v_good:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color:var(--text-color);
}

.bo_v_nogood:hover {
    background-color: rgba(246, 55, 90, 0.1);
    color: var(--accent-color);
}

.bo_v_good i,
.bo_v_nogood i {
    font-size: 20px;
    margin-bottom: 5px;
}

.bo_v_good strong,
.bo_v_nogood strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

/* 첨부파일 */
#bo_v_file,
#bo_v_link {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    background-color: var(--list-tag);
}

#bo_v_file h2,
#bo_v_link h2 {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-color);
}

#bo_v_file li,
#bo_v_link li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

#bo_v_file li:last-child,
#bo_v_link li:last-child {
    border-bottom: none;
}

.view_file_download {
    display: inline-block;
    margin-bottom: 5px;
}

.bo_v_file_cnt,
.bo_v_link_cnt {
    font-size: 12px;
    color: var(--text-color-secondary);
}

/* 이전글/다음글 */
.bo_v_nb {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
}

.bo_v_nb li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nb_tit {
    display: inline-block;
    width: 80px;
    color: var(--text-color-secondary);
}

.nb_date {
    margin-left: 10px;
    color: var(--text-color-secondary);
    font-size: 12px;
}

/* ============================================
   게시글 작성 폼 (write.skin.php) 스타일
============================================ */
#bo_w {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.bo_w_info {
    margin-bottom: 20px;
}

.write_div {
    margin-bottom: 20px;
}

/* 카테고리 선택 */
.bo_w_select {
    margin-bottom: 20px;
}

.bo_w_select select {
    width: 100%;
    height: 40px;
}

/* 제목 입력 */
.bo_w_tit input {
    width: 100%;
    height: 40px;
}

/* 옵션 선택 */
.bo_v_option {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

/* 입력 필드 스타일 */
.frm_input {
    height: 40px;
    width: 100%;
}

.half_input {
    width: 49%;
}

.required {
    background-color: var(--card-bg) !important;
}

/* 임시 저장 기능 */
#autosave_wrapper {
    position: relative;
}

#btn_autosave {
    position: absolute;
    right: 0;
    top: 0;
    background-color: var(--list-tag);
    color: var(--text-color);
    border: none;
    padding: 0 10px;
    height: 40px;
    border-radius: 0 4px 4px 0;
    font-size: 12px;
}

#autosave_pop {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 300px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 15px;
}

#autosave_pop strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

#autosave_pop ul {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

#autosave_pop li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.autosave_close {
    display: block;
    width: 100%;
    padding: 8px 0;
    background-color: var(--list-tag);
    border: none;
    border-radius: 4px;
    color: var(--text-color);
}

/* 에디터 영역 */
.wr_content {
    margin-bottom: 20px;
}

#char_count_desc {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-color-secondary);
}

#char_count_wrap {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-color-secondary);
}

/* 링크 입력 */
.bo_w_link {
    position: relative;
}

.bo_w_link label {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 38px;
    height: 38px;
    line-height: 38px;
    background-color: var(--list-tag);
    border-radius: 4px 0 0 4px;
    text-align: center;
}

.bo_w_link input {
    padding-left: 45px;
}

/* 파일 첨부 */
.bo_w_flie {
    position: relative;
    margin-bottom: 10px;
}

.file_wr {
    position: relative;
    margin-bottom: 10px;
}

.lb_icon {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 38px;
    height: 38px;
    line-height: 38px;
    background-color: var(--list-tag);
    border-radius: 4px 0 0 4px;
    text-align: center;
}

.file_del {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: var(--text-color-secondary);
}

/* 버튼 영역 */
.btn_confirm {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.btn_confirm .btn {
    min-width: 100px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    /* 목록 */
    #bo_btn_top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #bo_list_total {
        margin-bottom: 10px;
    }
    
    .td_num,
    .td_num2 {
        display: none;
    }
    
    
    .td_subject {
        width: auto;
    }
    
    thead th:nth-child(3),
    tbody td:nth-child(3) {
        width: 100%;
        text-align: left;
    }
    
    .bo_tit {
        font-size: 14px;
    }
    
    /* 보기 */
    .profile_info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pf_img {
        margin-bottom: 10px;
    }
    
    .bo_v_com {
        justify-content: flex-start;
    }
    
    /* 작성 */
    .half_input {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .bo_sch {
        width: 300px;
    }
    
    .btn_confirm .btn {
        min-width: 80px;
        padding: 8px 12px;
    }
}

/*
=========================================================================
[250311] CSS 추가
=========================================================================
*/
#bo_v{background: transparent; box-shadow: none; padding: 1.5rem 0;}
