@charset "utf-8";

/* 카드형 게시판 목록 스타일 */
.board-card-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.board-card {
	display: block;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.board-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
	border-color: #d1d5db;
}

.card-header {
	width: 100%;
	height: 180px;
	background: #f3f4f6;
	position: relative;
	overflow: hidden;
}

.card-thumbnail {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.card-thumbnail-empty {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-thumbnail-empty::before {
	content: '📷';
	font-size: 48px;
	opacity: 0.3;
}

.card-content {
	padding: 24px;
}

.card-badges {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
	min-height: 24px;
}

.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.badge-notice {
	background: #ef4444;
	color: #fff;
}

.badge-category {
	background: #e0f2fe;
	color: #0284c7;
}

.card-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px 0;
	line-height: 1.4;
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
}

.comment-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #cbc7ed;
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 10px;
	font-weight: 600;
}

.card-subtitle {
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 16px 0;
	line-height: 1.5;
	text-transform: uppercase;
}

.card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #9ca3af;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
}

.card-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.meta-author {
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
}

.empty-list {
	grid-column: 1 / -1;
	text-align: center;
	padding: 80px 20px;
}

.empty-list p {
	font-size: 16px;
	color: #9ca3af;
}

/* 게시글 보기 스타일 */
.board-view-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 40px;
	margin: 20px 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.view-header {
	padding-bottom: 24px;
	border-bottom: 2px solid #f3f4f6;
	margin-bottom: 30px;
}

.view-title-area {
	margin-bottom: 16px;
}

.view-title {
	font-size: 28px;
	font-weight: 700;
	color: #111827;
	margin: 12px 0 8px 0;
	line-height: 1.4;
	text-transform: uppercase;
}

.view-subtitle {
	font-size: 16px;
	color: #6b7280;
	margin: 8px 0 0 0;
	line-height: 1.5;
	text-transform: uppercase;
}

.view-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	color: #9ca3af;
}

.view-meta span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.view-meta .meta-author {
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
}

.view-files {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 30px;
}

.view-files h3 {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 12px 0;
	text-transform: uppercase;
}

.view-files ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.view-files li {
	padding: 12px 0;
	border-bottom: 1px solid #e5e7eb;
}

.view-files li:last-child {
	border-bottom: none;
}

.view-files a {
	text-decoration: none;
	color: #cbc7ed;
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
}

.view-files a:hover {
	color: #2563eb;
}

.file-size {
	color: #9ca3af;
	font-size: 13px;
}

.file-info {
	display: flex;
	gap: 12px;
	margin-top: 8px;
	font-size: 12px;
	color: #9ca3af;
}

.view-content {
	font-size: 16px;
	line-height: 1.8;
	color: #374151;
	margin: 30px 0;
	min-height: 200px;
}

.view-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
}

#bo_v_con {
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.view-buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
	margin-top: 40px;
}

.btn-group-left,
.btn-group-right {
	display: flex;
	gap: 8px;
}

/* 댓글 섹션 스타일 */
.comment-section {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 2px solid #f3f4f6;
}

.comment-title {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 24px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
}

.comment-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #cbc7ed;
	color: #fff;
	font-size: 14px;
	padding: 4px 12px;
	border-radius: 12px;
	font-weight: 600;
}

.comment-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.comment-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	transition: all 0.2s ease;
}

.comment-card:hover {
	border-color: #d1d5db;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-card.is-reply {
	background: #f9fafb;
	border-left: 3px solid #cbc7ed;
}

.comment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f3f4f6;
}

.comment-author-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.comment-author {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
}

.comment-date {
	font-size: 13px;
	color: #9ca3af;
}

.comment-actions {
	display: flex;
	gap: 8px;
}

.btn-comment-action {
	background: transparent;
	border: 1px solid #e5e7eb;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 12px;
	color: #6b7280;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	text-transform: uppercase;
}

.btn-comment-action:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
	color: #374151;
}

.comment-content {
	font-size: 15px;
	line-height: 1.6;
	color: #374151;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.badge-secret {
	display: inline-block;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
	margin-right: 8px;
	text-transform: uppercase;
}

.comment-empty {
	text-align: center;
	padding: 60px 20px;
	background: #f9fafb;
	border-radius: 12px;
	color: #9ca3af;
}

/* 댓글 작성 폼 스타일 */
.comment-write-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	margin-top: 24px;
}

.comment-write-title {
	font-size: 16px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 20px 0;
	text-transform: uppercase;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.form-row {
	display: flex;
	gap: 12px;
}

.form-group {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-group label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
}

.form-group .frm_input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.2s ease;
}

.form-group .frm_input:focus {
	outline: none;
	border-color: #cbc7ed;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-check {
	display: flex;
	align-items: center;
	gap: 8px;
}

.form-check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

.form-check label {
	font-size: 14px;
	color: #374151;
	cursor: pointer;
	text-transform: uppercase;
}

.captcha-row {
	flex-direction: column;
	gap: 8px;
}

.captcha-row label {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
}

.textarea-wrapper {
	position: relative;
	width: 100%;
}

.char-counter {
	position: absolute;
	top: 10px;
	right: 14px;
	font-size: 12px;
	color: #9ca3af;
	z-index: 1;
}

.comment-textarea {
	width: 100%;
	min-height: 120px;
	padding: 14px;
	padding-top: 40px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.6;
	resize: vertical;
	transition: all 0.2s ease;
	font-family: inherit;
}

.comment-textarea:focus {
	outline: none;
	border-color: #cbc7ed;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.comment-textarea::placeholder {
	color: #9ca3af;
}

.form-submit {
	justify-content: flex-end;
}

.form-submit .ui-btn {
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-transform: uppercase;
}

/* 반응형 */
@media (max-width: 768px) {
	.board-card-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.board-card {
		border-radius: 12px;
	}
	
	.card-header {
		height: 160px;
	}
	
	.card-content {
		padding: 20px;
	}
	
	.card-title {
		font-size: 16px;
	}
	
	.board-view-card {
		padding: 24px;
		margin: 10px 0;
	}
	
	.view-title {
		font-size: 22px;
	}
	
	.view-subtitle {
		font-size: 14px;
	}
	
	.view-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.view-buttons {
		flex-direction: column;
		gap: 12px;
	}
	
	.btn-group-left,
	.btn-group-right {
		width: 100%;
		justify-content: center;
	}
}