/*
Theme Name: EduGame
Theme URI: https://example.com/edugame
Description: Tema ceria warna-warni untuk situs game edukasi. Dirancang berpasangan dengan plugin EduGame Engine: halaman depan menampilkan galeri game, kartu warna-warni, papan skor, dan halaman game yang menyenangkan untuk anak-anak.
Author: EduGame
Author URI: https://example.com
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: edugame
Tags: education, games, colorful, custom-menu, featured-images, two-columns
*/

/* ==================== DASAR ==================== */

:root {
	--eg-purple: #7c3aed;
	--eg-pink: #ec4899;
	--eg-orange: #f97316;
	--eg-green: #22c55e;
	--eg-blue: #3b82f6;
	--eg-yellow: #facc15;
	--eg-dark: #2b2344;
	--eg-muted: #64748b;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Comic Sans MS', 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
	color: var(--eg-dark);
	background: linear-gradient(160deg, #fdf2f8 0%, #ede9fe 45%, #ecfeff 100%);
	background-attachment: fixed;
	line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--eg-purple); }
a:hover { color: var(--eg-pink); }

code { background: #f1f5f9; border-radius: 6px; padding: 2px 7px; font-size: 0.92em; }

/* ==================== HEADER ==================== */

.eg-site-header {
	background: linear-gradient(120deg, #7c3aed 0%, #ec4899 55%, #f97316 100%);
	color: #fff;
	padding: 0 0 10px;
	box-shadow: 0 6px 24px rgba(124, 58, 237, 0.25);
}

.eg-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 22px 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.eg-logo {
	font-size: 30px;
	font-weight: 800;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	letter-spacing: 1px;
}

.eg-logo:hover { color: #fef9c3; }

.eg-logo .eg-logo-icon { margin-right: 8px; }

.eg-tagline { display: block; font-size: 13px; font-weight: 500; opacity: 0.9; letter-spacing: 2px; }

.eg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }

.eg-nav a {
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	padding: 8px 16px;
	border-radius: 999px;
	transition: background 0.15s;
}

.eg-nav a:hover { background: rgba(255, 255, 255, 0.22); }

/* ==================== LAYOUT ==================== */

.eg-main { max-width: 1100px; margin: 0 auto; padding: 30px 22px 60px; }

.eg-page-title { font-size: 30px; color: var(--eg-purple); margin: 0 0 18px; }

.eg-content-box {
	background: rgba(255, 255, 255, 0.92);
	border-radius: 24px;
	padding: 28px 30px;
	box-shadow: 0 10px 30px rgba(124, 58, 237, 0.10);
	margin-bottom: 24px;
}

.eg-content-box h2, .eg-content-box h3 { color: var(--eg-purple); line-height: 1.35; }

/* ==================== HERO ==================== */

.eg-hero {
	text-align: center;
	padding: 54px 20px 44px;
	background: linear-gradient(135deg, #7c3aed 0%, #ec4899 60%, #f97316 100%);
	border-radius: 0 0 42px 42px;
	color: #fff;
	box-shadow: 0 14px 40px rgba(124, 58, 237, 0.25);
}

.eg-hero h1 { font-size: 40px; margin: 0 0 10px; letter-spacing: 1px; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.2); }

.eg-hero p { font-size: 19px; max-width: 640px; margin: 0 auto 24px; opacity: 0.94; }

.eg-hero .eg-hero-emoji { font-size: 46px; display: block; margin-bottom: 6px; }

.eg-hero-btn {
	display: inline-block;
	background: #fff;
	color: var(--eg-purple);
	font-weight: 800;
	font-size: 17px;
	padding: 15px 38px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
	transition: transform 0.15s;
}

.eg-hero-btn:hover { transform: translateY(-3px); color: var(--eg-pink); }

/* ==================== KARTU GAME (tema) ==================== */

.eg-game-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
	margin: 20px 0 10px;
}

.eg-game-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 24px;
	padding: 26px 18px 22px;
	text-align: center;
	text-decoration: none !important;
	color: var(--eg-dark) !important;
	border: 3px solid transparent;
	box-shadow: 0 8px 26px rgba(124, 58, 237, 0.13);
	transition: transform 0.16s, box-shadow 0.16s;
}

.eg-game-card:nth-child(4n+1) { border-color: #fecdd3; }
.eg-game-card:nth-child(4n+2) { border-color: #fef08a; }
.eg-game-card:nth-child(4n+3) { border-color: #a7f3d0; }
.eg-game-card:nth-child(4n+4) { border-color: #bfdbfe; }

.eg-game-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(124, 58, 237, 0.22); }

.eg-game-card-icon { font-size: 46px; }
.eg-game-card-title { font-size: 17px; font-weight: 800; line-height: 1.35; }
.eg-game-card-type { font-size: 12px; color: var(--eg-purple); background: #ede9fe; padding: 3px 12px; border-radius: 999px; }

.eg-game-card-btn {
	margin-top: 4px;
	background: linear-gradient(135deg, var(--eg-purple), var(--eg-pink));
	color: #fff;
	padding: 9px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
}

/* ==================== HALAMAN GAME ==================== */

.eg-game-desc {
	font-size: 16px;
	color: #5b547a;
	background: #fff;
	border: 2px dashed #c4b5fd;
	border-radius: 16px;
	padding: 14px 20px;
	margin-bottom: 10px;
}

/* ==================== POS / HALAMAN ==================== */

.eg-post-list { display: grid; gap: 20px; }

.eg-post-card {
	background: rgba(255, 255, 255, 0.92);
	border-radius: 20px;
	padding: 24px 26px;
	box-shadow: 0 8px 24px rgba(124, 58, 237, 0.10);
}

.eg-post-card h2, .eg-post-card h3 { margin: 0 0 8px; }

.eg-post-card h2 a, .eg-post-card h3 a { text-decoration: none; color: var(--eg-dark); }
.eg-post-card h2 a:hover, .eg-post-card h3 a:hover { color: var(--eg-pink); }

.eg-meta { font-size: 13px; color: var(--eg-muted); margin-bottom: 10px; }

.eg-thumb img { border-radius: 16px; margin-bottom: 12px; }

.eg-readmore {
	display: inline-block;
	margin-top: 10px;
	background: #ede9fe;
	color: var(--eg-purple);
	font-weight: 700;
	font-size: 14px;
	padding: 8px 20px;
	border-radius: 999px;
	text-decoration: none;
}

.eg-readmore:hover { background: var(--eg-purple); color: #fff; }

.eg-entry-content h2, .eg-entry-content h3 { color: var(--eg-purple); }

.eg-entry-content blockquote {
	border-left: 5px solid var(--eg-pink);
	background: #fdf2f8;
	margin: 16px 0;
	padding: 12px 18px;
	border-radius: 0 14px 14px 0;
}

.eg-pagination { text-align: center; margin: 26px 0; font-weight: 700; }
.eg-pagination .page-numbers { display: inline-block; background: #fff; padding: 8px 14px; margin: 0 3px; border-radius: 10px; text-decoration: none; }
.eg-pagination .page-numbers.current { background: var(--eg-purple); color: #fff; }

/* ==================== SIDEBAR & FOOTER ==================== */

.eg-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 26px; }

@media (max-width: 860px) {
	.eg-with-sidebar { grid-template-columns: 1fr; }
}

.eg-widget {
	background: #fff;
	border-radius: 18px;
	padding: 18px 20px;
	box-shadow: 0 6px 20px rgba(124, 58, 237, 0.10);
	margin-bottom: 18px;
}

.eg-widget-title { color: var(--eg-purple); font-size: 17px; margin: 0 0 12px; }

.eg-widget ul { list-style: none; margin: 0; padding: 0; }
.eg-widget li { padding: 6px 0; border-bottom: 1px dashed #e9d5ff; }

.eg-site-footer {
	background: var(--eg-dark);
	color: #cdd3f8;
	padding: 34px 22px;
	margin-top: 40px;
}

.eg-footer-inner { max-width: 1100px; margin: 0 auto; }

.eg-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

@media (max-width: 760px) {
	.eg-footer-cols { grid-template-columns: 1fr; }
}

.eg-footer-cols .eg-widget { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.eg-footer-cols .eg-widget-title { color: #f0abfc; }
.eg-footer-cols .eg-widget li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.eg-footer-cols a { color: #e9d5ff; }

.eg-footer-bottom { text-align: center; margin-top: 26px; font-size: 13px; opacity: 0.75; }

/* ==================== UTILITAS ==================== */

.eg-plugin-missing {
	background: #fff7ed;
	border: 2px solid #fdba74;
	border-radius: 16px;
	padding: 20px 24px;
	color: #9a3412;
	font-size: 16px;
}

.eg-section-title { font-size: 24px; color: var(--eg-purple); margin: 34px 0 8px; text-align: center; }
.eg-section-sub { text-align: center; color: var(--eg-muted); margin: 0 0 18px; }
