/* 
 * board-styles.css
 * 필라코리아 2025 게시판용 스타일시트
 * 일자: 2023년
 */

/* =================== Common Board Styles =================== */
.board-container {
	background-color: #fff;
	border-radius: var(--border-radius, 10px); /* Slightly larger radius */
	padding: 1rem;
	/* Removed shadow from container, apply to table if needed */
}

/* Search Area Container - Reverted shadow removal based on user edit */
.search-container {
	background-color: #f8f9fa; /* Light background */
	border-radius: 50px; /* Pill shape */
	padding: 0.3rem; /* Inner padding */
	display: flex; /* Use flex to align items */
	border: 1px solid var(--border-color, #dee2e6);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.search-container:focus-within { /* Highlight container when input is focused */
	border-color: var(--primary-color);
	box-shadow: 0 3px 8px rgba(0, 120, 212, 0.1);
}

/* Remove default input-group styling inside container */
.search-container .input-group {
	border: none;
	padding: 0;
	margin: 0;
	width: 100%;
	display: flex;
}

/* Input field styling */
.search-container .form-control {
	background-color: transparent;
	border: none;
	box-shadow: none !important;
	padding-left: 1.2rem;
	padding-right: 0.5rem;
	font-size: 0.95rem;
	height: auto;
	flex-grow: 1;
	border-radius: 0;
	min-width: 0;
}
.search-container .form-control:focus {
	box-shadow: none !important;
}

/* Search button styling */
.search-container .btn-search {
	background-color: transparent;
	border: none;
	color: var(--primary-color);
	padding: 0.5rem 1rem;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
	margin-left: -1px;
	flex-shrink: 0;
	box-shadow: none !important;
}
.search-container .btn-search:hover {
	color: var(--secondary-color);
	background-color: transparent;
}

/* Clear Search Button Styling */
.search-container .btn-clear-search {
	background-color: transparent;
	border: none;
	color: #aaa; /* Lighter color for subtle appearance */
	padding: 0.5rem 0.8rem;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
	margin-left: -1px; /* Adjust as needed */
	flex-shrink: 0;
	box-shadow: none !important;
	position: absolute; /* Position inside the input group */
	right: 50px; /* Adjust based on search button width */
	top: 50%;
	transform: translateY(-50%);
	z-index: 3; /* Ensure it's above the input field */
}
.search-container .btn-clear-search:hover {
	color: #777;
}

/* Ensure input group doesn't interfere */
.search-form .input-group > .form-control,
.search-form .input-group > .btn-search {
	height: auto;
}

/* Remove old search styles if they exist */
.search-form .btn {
	/* Remove specific styles previously applied directly to .btn if any */
}

/* =================== List View Table Styles =================== */
.table {
	border-collapse: collapse; /* Standard collapse */
	width: 100%;
	margin-top: 1.5rem;
	/* Add subtle shadow to the table itself */
	/* box-shadow: 0 4px 15px rgba(0,0,0,0.04); */ 
	border-radius: var(--border-radius, 8px);
	overflow: hidden; /* Ensures radius applies to content */
	border: 1px solid var(--border-color, #dee2e6); /* Optional: outer border */
}
.table thead th {
	background-color: #f8f9fa; /* Light header background */
	border-bottom: 2px solid var(--border-color, #dee2e6);
	color: var(--text-color, #333);
	font-weight: 600;
	padding: 1rem 1rem; /* Consistent padding */
	vertical-align: middle;
	font-size: 0.9rem;
	text-align: center;
	white-space: nowrap; /* Prevent header text wrapping */
}
.table tbody td {
	padding: 1rem 1rem; /* Consistent padding */
	vertical-align: middle;
	border-top: 1px solid var(--border-color, #dee2e6); /* Row separator */
	color: var(--text-light, #555);
	font-size: 0.95rem;
	background-color: #fff; /* Ensure white background */
	transition: background-color 0.2s ease;
}
.table tbody tr:hover td {
	background-color: #f8f9fc; /* Subtle hover */
}
.table .title {
	text-overflow: ellipsis; 
	overflow: hidden; 
	white-space: nowrap;
	max-width: 0; 
	text-align: left; /* Align title left */
}
.table .title a {
	color: var(--text-color, #333);
	text-decoration: none;
	transition: color 0.2s ease;
	font-weight: 500;
}
.table .title a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}
.table .notice-flag {
	background-color: rgba(0, 120, 212, 0.1);
	color: var(--primary-color);
	font-weight: 600;
	padding: 0.25rem 0.6rem;
	border-radius: 4px;
	font-size: 0.8rem;
	display: inline-block;
}
.table .secret-icon {
	color: #ffc107;
	margin-left: 0.4rem;
	vertical-align: middle;
}
.table .new-icon {
	color: var(--accent-color, #E95383);
	font-size: 0.8em;
	margin-left: 0.4rem;
	font-weight: bold;
	vertical-align: text-bottom;
}
.table .reply-mark {
	color: var(--primary-color);
	opacity: 0.7;
	margin-right: 0.5rem;
	transform: rotate(180deg);
	display: inline-block;
}

/* =================== FAQ Filter Buttons =================== */
.faq-filter-group {
	margin-bottom: 2rem;
	display: flex; /* Use flex for better alignment */
	justify-content: center; /* Center buttons */
	flex-wrap: wrap; /* Allow wrapping */
	gap: 10px; /* Spacing between buttons */
}
.faq-filter-group .btn {
	border-radius: 30px; /* From .nav-btn */
	padding: 0.9rem 1.2rem; /* Match .nav-btn padding */
	font-weight: 500;
	font-size: 1.05rem; /* From .nav-btn */
	transition: var(--transition, all 0.3s ease); /* From .nav-btn */
	border: 1px solid var(--primary-color); /* From .nav-btn */
	background-color: white; /* Default background */
	color: var(--primary-color); /* Default text color */
	box-shadow: 0 3px 10px rgba(0,0,0,0.04); /* From .nav-btn */
	max-width: 200px; /* Increased max-width */
	min-width: 160px; /* Increased min-width */
	flex: 1; /* Add flex: 1 from .nav-btn */
	display: inline-flex; /* Add display flex */
	align-items: center; /* Align items center */
	justify-content: center; /* Justify content center */
	text-align: center; /* Keep text-align for fallback */
	margin: 0; /* Remove previous margin */
	/* Removed flex-basis and flex-shrink */
}

/* Active State */
.faq-filter-group .btn.active {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	border-color: transparent; /* Hide border when filled */
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,120,212,0.15);
}

/* Hover State for NON-ACTIVE buttons */
.faq-filter-group .btn:not(.active):hover,
.faq-filter-group .btn:not(.active):focus {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	border-color: transparent;
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,120,212,0.15);
}

/* =================== Detail View Styles =================== */
.detail-container {
    background-color: #fff;
    border-radius: var(--border-radius, 10px);
    padding: 2.5rem;
    margin-top: 1rem;
}

.detail-header {
    border-bottom: 1px solid var(--border-color, #dee2e6);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.detail-header h4.detail-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.meta-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-info span {
    margin-right: 1rem;
}

.meta-info i {
    margin-right: 0.4rem;
    color: #adb5bd;
}

.attachment-section {
	margin-bottom: 2rem;
	padding: 1.5rem;
	background-color: #f8f9fa;
	border-radius: var(--border-radius, 8px);
	border: 1px solid var(--border-color, #e9ecef);
}

.attachment-section h6 {
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-color);
}

.attachment-list .list-group-item {
    background-color: transparent;
}
.attachment-list .list-group-item a:hover {
	color: var(--primary-color);
}

.content-body {
    padding: 1rem 0;
    line-height: 1.8; /* Increased line-height for readability */
    font-size: 1.05rem;
    color: #495057;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius, 8px);
    margin: 1rem 0;
}

.button-group {
    border-top: 1px solid var(--border-color, #dee2e6);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.button-group .btn {
    margin: 0 0.3rem;
}

/* Q&A Password Prompt */
.password-prompt-card {
    max-width: 500px;
    margin: 3rem auto;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Diary Styles */
.diary-image-container img {
    margin-bottom: 1rem;
}

/* Reply/Comment Section */
.reply-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color, #dee2e6);
}

.reply-section h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
} 