@charset "utf-8";

/* Page Hero */
.page-hero {
	margin-top: 80px;
	padding: 8rem 2rem;
	background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('img/main1.jpg') center/cover no-repeat;
	color: #333;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.page-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 107, 53, 0.03), rgba(247, 147, 30, 0.02));
	z-index: 0;
}

.page-hero > * {
	position: relative;
	z-index: 1;
}

.page-hero h1 {
	font-size: 3.5rem;
	font-weight: 800;
	margin-bottom: 2rem;
	color: #FF6B35;
	letter-spacing: -1px;
}

.page-hero p {
	font-size: 1.3rem;
	max-width: 700px;
	margin: 0 auto;
	color: #666;
	line-height: 1.8;
	font-weight: 400;
}

/* Gallery Section */
.gallery-section {
	max-width: 1400px;
	margin: 0 auto;
	margin-top: 80px;
	padding: 4rem 2rem;
}

/* Filter Bar */
.filter-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 3rem;
	gap: 1rem;
	flex-wrap: wrap;
}

.filter-tabs {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex-wrap: wrap;
}


.board-title {	
	position: relative;
	display: inline-block;
}

.board-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, #FF6B35, #FF9A6A);
	border-radius: 2px;
}

.board-desc {
	font-size: 14px;
	color: #888;
}

.filter-tab {
	padding: 0.7rem 1.5rem;
	border: 2px solid #e0e0e0;
	background: white;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.95rem;
	font-weight: 500;
	color: #666;
}

.filter-tab:hover {
	border-color: #FF6B35;
	color: #FF6B35;
}

.filter-tab.active {
	background: #FF6B35;
	color: white;
	border-color: #FF6B35;
	box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.search-box {
	display: flex;
	gap: 0.5rem;
}

.search-input {
	padding: 0.7rem 1.2rem;
	border: 2px solid #e0e0e0;
	border-radius: 25px;
	font-size: 0.95rem;
	width: 250px;
	transition: border-color 0.3s ease;
}

.search-input:focus {
	outline: none;
	border-color: #FF6B35;
}

.search-btn {
	padding: 0.7rem 1.5rem;
	background: #FF6B35;
	color: white;
	border: none;
	border-radius: 25px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.search-btn:hover {
	background: #F7931E;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

/* Gallery Grid */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 4rem;
}

.gallery-item {
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
	transition: all 0.4s ease;
	cursor: pointer;
}

.gallery-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 30px rgba(255, 107, 53, 0.12);
}

.gallery-image {
	width: 100%;
	height: 280px;
	overflow: hidden;
	position: relative;
}

.gallery-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-image img {
	transform: scale(1.1);
}

.gallery-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: linear-gradient(135deg, #FF6B35, #F7931E);
	color: white;
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
}

.gallery-content {
	padding: 1.5rem;
}

.gallery-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 0.8rem;
	line-height: 1.4;
}

.gallery-description {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.gallery-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1rem;
	border-top: 1px solid #f0f0f0;
}

.gallery-date {
	font-size: 0.9rem;
	color: #999;
}

.gallery-views {
	font-size: 0.9rem;
	color: #999;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 30px 0;
	list-style: none;
	padding: 0;
}

/* li 기본 스타일 제거 */
.pagination li {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 페이지 버튼 */
.pagination li a {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 14px;
	color: #333;
	background: #fff;
	text-decoration: none;
	cursor: pointer;
}

/* 활성 페이지 */
.pagination li.active a {
	background: #FF6B35;
	border-color: #DFA048;
	color: #fff;
	font-weight: 700;
}

/* 비활성 (이전/다음 없음) */
.pagination li.disabled a {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

/* hover */
.pagination li:not(.active):not(.disabled) a:hover {
	background: #f5f5f5;
}


.btn-action {
padding: 12px 28px;
background: #656565;
border: 1px solid #656565;
border-radius: 25px;
color: #FFF;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
}

.btn-action-rad {
	padding: 5px 12px;
	background: #656565;
	border: 1px solid #656565;
	border-radius: 25px;
	color: #FFF;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

/*
.btn-action:hover {
background: rgba(255, 215, 0, 0.15);
border-color: #ffd700;
color: #ffd700;
transform: translateY(-2px);
}
*/

.btn-action.primary {
background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
color: #0a1628;
border: none;
font-weight: 700;
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
}

.btn-action.primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(255, 215, 0, 0.55);
}


.list-btn-section {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	flex-wrap: wrap;
}

/* 글쓰기 버튼을 우측 끝으로 */
.list-btn-section a.btn-action {
	margin-left: auto;
}

.tack-check {
	position: relative;
	z-index: 20;
	margin:5px;
}

.tack-check input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #FF6B35;
}

@media (max-width: 768px) {
	.pagination li a {
		min-width: 30px;
		height: 30px;
		font-size: 12px;
	}

	.tack-check input[type="checkbox"] {
		width: 22px;
		height: 22px;
		transform: scale(1.3);
	}

	.list-btn-section {
		gap: 6px;
	}

	.btn-action {
		padding: 8px 14px;
		font-size: 12px;
		border-radius: 20px;
	}

	/* 아이콘만 남기고 텍스트 숨김 (선택) */
	.btn-action .hidden-xs {
		display: none;
	}

	.filter-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.board-title {
		font-size: 20px;
	}

	.board-title::before {
		height: 18px;
	}

	.board-desc {
		font-size: 13px;
	}

	.search-box {
		width: 100%;
	}


}

/* Responsive Design */

@media (max-width: 1024px) {	
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 1.5rem;
	}

	.page-hero {
		padding: 6rem 2rem;
	}

	.page-hero h1 {
		font-size: 3rem;
	}

	.page-hero p {
		font-size: 1.2rem;
	}
}

@media (max-width: 768px) {
	
	.page-hero {
		padding: 4rem 1.5rem;
	}

	.page-hero h1 {
		font-size: 2.2rem;
	}

	.page-hero p {
		font-size: 1.1rem;
	}

	.gallery-section {
		padding: 3rem 1.5rem;
	}

	.filter-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.filter-tabs {
		justify-content: center;
		gap: 0.7rem;
	}

	.filter-tab {
		padding: 0.6rem 1rem;
		font-size: 0.85rem;
	}

	.search-box {
		width: 100%;
	}

	.search-input {
		font-size: 0.9rem;
	}

	.search-btn {
		font-size: 0.9rem;
		padding: 0.7rem 1.2rem;
	}

	.search-input {
		flex: 1;
		width: auto;
	}

	.gallery-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}
	
}

@media (max-width: 480px) {
	
	.page-hero {
		padding: 3rem 1rem;
	}

	.page-hero h1 {
		font-size: 1.8rem;
	}

	.page-hero p {
		font-size: 1rem;
	}

	.gallery-section {
		padding: 2rem 1rem;
	}

	.filter-tabs {
		gap: 0.5rem;
	}

	.filter-tab {
		padding: 0.5rem 0.9rem;
		font-size: 0.8rem;
	}

	.search-input {
		font-size: 0.85rem;
		padding: 0.6rem 1rem;
	}

	.search-btn {
		font-size: 0.85rem;
		padding: 0.6rem 1rem;
	}

	.gallery-image {
		height: 220px;
	}

	.gallery-title {
		font-size: 1.1rem;
	}

	.gallery-description {
		font-size: 0.9rem;
	}

	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
}