body {
	margin: 0;
	font-family: 'Segoe UI', Arial, sans-serif;
	background: #f7f8fa;
	color: #222;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.topbar {
	background: #2d3e50;
	color: #fff;
	padding: 18px 32px;
	font-size: 1.5rem;
	font-weight: bold;
	letter-spacing: 1px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.search-section {
	background: #fff;
	padding: 25px 0 25px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.search-box {
	width: 100%;
	max-width: 480px;
	display: flex;
}
.search-box input[type="text"] {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid #d0d4da;
	border-radius: 6px 0 0 6px;
	font-size: 1rem;
	outline: none;
}
.search-box button {
	padding: 12px 24px;
	border: none;
	background: #2d3e50;
	color: #fff;
	font-size: 1rem;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	transition: background 0.2s;
}
.search-box button:hover {
	background: #1a2533;
}
   .category-tabs {
	   display: flex;
	   flex-wrap: wrap;
	   justify-content: center;
	   gap: 8px;
	   background: #f0f2f5;
	   padding: 15px 20px;
	   border-bottom: 1px solid #e0e3e8;
   }
   .category-tab {
	   display: inline-block;
	   padding: 8px 16px;
	   border-radius: 20px;
	   background: #fff;
	   color: #2d3e50;
	   font-size: 0.9rem;
	   font-weight: 500;
	   border: 1px solid #d0d4da;
	   cursor: pointer;
	   transition: background 0.18s, color 0.18s, border 0.18s;
	   white-space: nowrap;
	   margin: 2px;
   }
   .category-tab.active, .category-tab:hover {
	   background: #2d3e50;
	   color: #fff;
	   border: 1px solid #2d3e50;
   }
   .sites-section {
	flex: 1;
	padding: 30px 0 5px 0;
	max-width: 800px;
	margin: 0 auto;
}
.site-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	margin-bottom: 24px;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: box-shadow 0.2s;
}
.site-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.site-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #2d3e50;
	margin-bottom: 2px;
}
.site-link {
	color: #1a73e8;
	text-decoration: none;
	font-size: 1rem;
}
.site-link:hover {
	text-decoration: underline;
}
.site-desc {
	color: #444;
	font-size: 0.98rem;
}
.footer {
	/* background: #2d3e50; */
	background: #a7a8aa;
	color: #f7f8fa;
	text-align: center;
	padding: 18px 0 12px 0;
	font-size: 1rem;
	margin-top: auto;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
	.topbar {
		padding: 15px 20px;
		font-size: 1.3rem;
	}
	
	.search-section {
		padding: 20px 15px;
	}
	
	.search-box {
		max-width: 100%;
	}
	
	.search-box input[type="text"] {
		font-size: 16px; /* iOS 줌 방지 */
	}
	
	.category-tabs {
		padding: 12px 15px;
		gap: 6px;
	}
	
	.category-tab {
		font-size: 0.85rem;
		padding: 6px 12px;
		margin: 1px;
	}
	
	.sites-section {
		padding: 20px 15px 5px 15px;
	}
	
	.site-card {
		padding: 20px;
		margin-bottom: 20px;
	}
	
	.site-title {
		font-size: 1.1rem;
	}
	
	.site-desc {
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.topbar {
		padding: 12px 15px;
		font-size: 1.2rem;
	}
	
	.category-tabs {
		padding: 10px 12px;
		gap: 4px;
	}
	
	.category-tab {
		font-size: 0.8rem;
		padding: 5px 10px;
	}
	
	.site-card {
		padding: 16px;
		margin-bottom: 16px;
	}
}

/* ===== 메뉴 시스템 스타일 ===== */

/* 탑바 메뉴 토글 버튼 - 기존 스타일과 통합 */

.topbar-logo {
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	font-size: 1.5rem;
	letter-spacing: 1px;
}

.topbar-menu-toggle {
	cursor: pointer;
	padding: 8px;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.topbar-menu-toggle:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

/* 3x3 햄버거 아이콘 */
.hamburger-icon {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 2px;
	width: 20px;
	height: 20px;
}

.hamburger-icon span {
	background-color: #fff;
	border-radius: 1px;
	transition: all 0.3s ease;
}

/* 메뉴 오버레이 */
.menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

.menu-container {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 500px;
	height: 100%;
	background: #fff;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}

.menu-overlay.active .menu-container {
	transform: translateX(0);
}

/* 메뉴 헤더 */
.menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: #4a545a;
	color: white;
}

.menu-logo a {
	color: white;
	text-decoration: none;
	font-size: 1.5rem;
	font-weight: bold;
}

.menu-close {
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	padding: 5px;
}

/* 메뉴 콘텐츠 */
.menu-content {
	padding: 20px;
}

.main-navigation {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.menu-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.menu-row {
	display: flex;
	gap: 10px;
}

.menu-row .menu-item {
	flex: 1;
}


/* 메뉴 아이템 */
.menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px;
	border-radius: 8px;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	/* background-color: #f8f9fa;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.menu-item:hover {
	border: 2px solid #8995bb;
	background-color: #f8f9fa;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item.active {
	background-color: #1e40af;
	color: white;
	border-color: #1e3a8a;
}

.menu-item.primary {
	font-size: 1.2rem;
	font-weight: 600;
}

.menu-item.secondary {
	font-size: 1rem;
	font-weight: 500;
}

.menu-item.tertiary {
	font-size: 0.9rem;
	font-weight: 400;
}

.menu-item.info {
	font-size: 1rem;
	font-weight: 500;
	/* background-color: #f3f4f6; */
}

.menu-icon {
	font-size: 1.5rem;
	width: 24px;
	text-align: center;
}

.menu-title {
	flex: 1;
}

/* 메뉴 푸터 */
.menu-footer {
	padding: 20px;
	text-align: center;
	color: #666;
	font-size: 0.9rem;
	border-top: 1px solid #e5e7eb;
	background-color: #f8f9fa;
}

/* 메뉴 열림시 body 스크롤 방지 */
body.menu-open {
	overflow: hidden;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.menu-container {
		max-width: 100%;
	}
	
	.menu-item {
		padding: 12px;
	}
	
	.menu-icon {
		font-size: 1.3rem;
	}
	
	.menu-item.primary {
		font-size: 1.1rem;
	}
	
	.menu-item.secondary {
		font-size: 0.95rem;
	}
	
	.menu-item.tertiary {
		font-size: 0.85rem;
	}
}



/*드롭다운 공유버튼*/
.dropup {
	position: fixed; 
  right: 15px; 
  /* bottom:125px; */
  bottom:73px;
  display: inline-block;
  z-index: 99;
  /*opacity: 0.8;*/
}
.dropbtn {
	background-color:rgba(255, 255, 255, 0);
	padding: 0px;
	border: none;
}
.dropup-content {
	display: none;
	position: absolute;
	background-color: none;
	bottom: 50px;
	z-index: 1;
}
.dropup-content a {
	color: none;
	padding: 0px 0px 5px 0px;
	text-decoration: none;
	display: block;
}
.dropup-content a:hover {
    background-color: none;
}
.dropup:hover .dropup-content {
  display: block;
}
.dropup:hover .dropbtn {
  background-color: none;
}

/*기타*/
.share {
  width: 50px; 
  height: auto;
  opacity: 0.9;
}
.pointer {
  cursor: pointer;
}

