.toggle-switch {
	background: none;
	border: none;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}

.toggle-switch:hover {
	background-color: var(--nav-hover-bg);
}

.toggle-switch svg {
	width: 28px;
	height: 28px;
	color: var(--highlight);
	transition: color 0.3s;
}

/* ¶óÀÌÆ® ¸ðµåÀÏ ¶§ ½ºÅ¸ÀÏ ¿À¹ö¶óÀÌµå */
body.light-mode {
	--bg-color: #f9f9f9;
	--text-color: #111;
	--highlight: #fd8c00;
	--header-bg: rgba(255, 255, 255, 0.86);
	--nav-bg: rgba(255, 255, 255, 0.80);
	--nav-hover-bg: rgba(0, 0, 0, 0.08);
	--content-bg: rgba(255, 255, 255, 0.7);
	--border-color: #dadada;
	--input-bg: #fff;
	--footer-bg: #f0f0f0;
	--item-bg: #fff;
	--item-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
	--button-hover: #fdad26;
}

body.light-mode .ad-box {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

:root {
	--bg-color: #0d0d0d;
	--text-color: #f0f0f0;
	--highlight: #ffb300;
	--header-bg: rgba(25, 25, 25, 0.8);
	--nav-bg: rgba(30, 30, 30, 0.8);
	--nav-hover-bg: rgba(255, 255, 255, 0.08);
	--content-bg: rgba(40, 40, 40, 0.6);
	--border-color: #444;
	--input-bg: rgba(60, 60, 60, 0.7);
	--footer-bg: rgba(20, 20, 20, 0.9);
	--card-radius: 16px;
	--shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	--backdrop-blur: blur(10px);

	/* Ãß°¡ »ö»ó º¯¼ö */
	--button-hover: #ffa000;
	--item-bg: rgba(60, 60, 60, 0.8);
	--item-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Noto Sans KR', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	margin: 0;
	line-height: 1.7;
}

button {
	font-family: 'Noto Sans KR', sans-serif;
}

header {
	background-color: var(--header-bg);
	padding: 24px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
	backdrop-filter: var(--backdrop-blur);
}

header .header-left {
	font-size: 32px;
	font-weight: bold;
	color: var(--highlight);
	text-decoration: none;
}

.container {
	display: flex;
	flex-wrap: wrap;
	padding: 20px;
	max-width: 1300px;
	margin: auto;
	gap: 15px;
}

.sidebar {
	width: 200px;
	background-color: transparent !important;
	box-shadow: none !important;
}

/* ===== Ãß°¡: ¿À¸¥ÂÊ »çÀÌµå¹Ù ===== */
.sidebar-r {
	width: 200px;
	background-color: transparent !important;
	box-shadow: none !important;
}
/* ================================ */

/* ±âÁ¸ .ad-box Á¤ÀÇ´Â ±×´ë·Î µÎµÇ, ¾Æ·¡¿Í °°ÀÌ º¸¿ÏÇÕ´Ï´Ù */
.ad-box {
	background-image: url("/images/ad-background.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative; /* ÀÚ½Ä ¿ä¼ÒÀÇ position Á¶Á¤À» À§ÇØ ÇÊ¿äÇÕ´Ï´Ù */
	box-shadow: none !important;
	height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 1. .ad-box¿¡ ±âº» ¹è°æ ÀÌ¹ÌÁö¸¦ ÁöÁ¤ */
.ad-box {
	position: relative;
	width: 200px;
	height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;

	background-image: url("https://flashback.pe.kr/link/image/ad-background.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* 2. ±¤°í ½½·Ô(ins.adsbygoogle)ÀÇ Å©±â¿Í Åõ¸í Ã³¸® */
.ad-box .adsbygoogle {
	display: inline-block;
	width: 200px;
	height: 600px;
	background: transparent !important;
}

/* 3. ±¤°í ½½·Ô ³»ºÎ¿¡ iframeÀÌ »ðÀÔµÇ¸é Áï½Ã ¹è°æ ÀÌ¹ÌÁö¸¦ Á¦°Å */
.ad-box:has(.adsbygoogle iframe) {
	background-image: none;
}


.main-content {
	flex: 1;
}

/* ¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡ */
/* .game-list¿Í .game-itemÀ» ±×¸®µå ·¹ÀÌ¾Æ¿ôÀ¸·Î ¼öÁ¤ÇÏ¿© ¹ÝÀÀÇü Ã³¸® */
/* ¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡ */
.game-list {
	display: grid;
	/* È­¸é Å©±â¿¡ ¸ÂÃß¾î ÃÖ¼Ò 200px, ÃÖ´ë 1fr·Î ¾ÆÀÌÅÛ ³Êºñ Á¶Á¤ */
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	padding: 0 0 0 5px;
	margin: 0;
}

.game-item {
	background-color: var(--item-bg);
	border-radius: 12px;
	box-shadow: var(--item-shadow);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	/* ±×¸®µå ¾ÆÀÌÅÛ ³Êºñ´Â minmax(200px, 1fr)¿¡ ÀÇÇØ °áÁ¤ */
	display: flex;
	flex-direction: column;
	cursor: pointer;
}

.game-item:hover {
	transform: translateY(var(--hover-elevation, -6px)) scale(1.02);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.game-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	background: #555;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
	background-size: cover;
	background-position: center;
}

.game-item span {
	display: block;
	padding: 12px;
	text-align: center;
	color: var(--text-color);
	font-weight: bold;
	font-size: 16px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡¦¡ */

.search-bar {
	display: flex;
	flex-wrap: nowrap;
	margin-bottom: 40px;
	gap: 12px;
}

.search-bar input[type="text"] {
	flex: 1;
	padding: 14px 16px;
	border-radius: 10px;
	border: 1px solid var(--border-color);
	background: var(--input-bg);
	color: var(--text-color);
	font-size: 16px;
	min-width: 0;
}

.search-bar button {
	padding: 14px 24px;
	background-color: var(--highlight);
	color: #000;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	font-weight: bold;
	transition: background-color 0.2s;
}

/* hover ½Ã ¿òÁ÷ÀÓ Á¦°Å */
.search-bar button:hover {
	background-color: var(--button-hover);
}

.section h2 {
	font-size: 24px;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--highlight);
	padding-bottom: 6px;
}

.section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 24px;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--highlight);
	padding: 16px 0;
	min-height: 60px;
}

.section-title > span {
}

.section-title .write-button {
	background-color: var(--highlight);
	border: none;
	border-radius: 4px;
	padding: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}

.section-title .write-button:hover {
	background-color: var(--button-hover);
}

.section-title .write-button svg {
	fill: #000;
	width: 18px;
	height: 18px;
}

.ad-bottom {
	display: none;
	text-align: center;
	/*
	background-color: var(--content-bg);
	padding: 18px;
	color: #aaa;
	font-size: 15px;
	border-radius: var(--card-radius);
	box-shadow: var(--shadow);
	margin: 20px;
	*/
	background-color: transparent !important;
	box-shadow: none !important;
}

.pagination {
	margin-top: 20px;
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.pagination button {
	padding: 8px 14px;
	border: 1px solid var(--border-color);
	background-color: var(--content-bg);
	color: var(--text-color);
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.pagination button:hover {
	background-color: var(--button-hover);
}

.pagination button.active {
	background-color: var(--highlight);
	color: #000;
	border-color: var(--highlight);
}

.pagination span {
	padding: 8px 14px;
	color: #aaa;
}

footer {
	text-align: center;
	padding: 24px;
	background-color: var(--footer-bg);
	border-top: 1px solid var(--border-color);
	color: #999;
	font-size: 15px;
	margin-top: 60px;
}

@media (max-width: 768px) {
	.container {
		padding: 0 30px;
		padding-left: 30;
	}
	.sidebar {
		display: none !important;
		width: 0 !important;
	}
	/* ===== Ãß°¡: ¸ð¹ÙÀÏ¿¡¼­ ¿À¸¥ÂÊ »çÀÌµå¹Ù ¼û±è ===== */
	.sidebar-r {
		display: none !important;
		width: 0 !important;
	}
	/* ============================================= */
	.main-content {
		flex: 1 1 100% !important;
		padding-left: 0 !important;
	}
	.ad-bottom {
		display: block;
	}
	/* ¸ð¹ÙÀÏ¿¡¼­ ±×¸®µå ¿­ ÃÖ¼Ò ³Êºñ Á¶Á¤ */
	.game-list {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 12px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 15px;
		padding-left: 15;
	}
	/* ¾ÆÁÖ ÀÛÀº È­¸é¿¡¼­ 1¿­·Î Ç¥½Ã */
	.game-list {
		grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
		gap: 8px;
	}
}
