@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --bg-color: #f4f7f6;
  --card-bg: #ffffff;
  --text-main: #2d3436;
  --text-muted: #636e72;
  --border-color: #dfe6e9;
  --nav-bg: #ffffff;
  --footer-bg: #2d3436;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  background-color: var(--nav-bg);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 70px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -1px;
}

.nav-menu {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s;
  padding: 10px 5px;
  position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

/* Main Layout */
main {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.container {
  background-color: var(--card-bg);
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  max-width: 900px;
  width: 90%;
  margin-bottom: 40px;
}

/* Typography for Content Richness */
h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  letter-spacing: -1.5px;
  color: #1e272e;
}

h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1e272e;
  border-left: 5px solid var(--primary-color);
  padding-left: 15px;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* Tool Sections */
.tool-box {
  background-color: #f9f9f9;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}

/* AdSense Info Sections */
article.content-rich {
  text-align: left;
}

article.content-rich p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #444;
}

article.content-rich blockquote {
  border-left: 4px solid #ced4da;
  margin: 30px 0;
  padding: 10px 25px;
  font-style: italic;
  color: var(--text-muted);
  background-color: #f8f9fa;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 18px 45px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Footer (Portal Style) */
footer {
  background-color: var(--footer-bg);
  color: #ecf0f1;
  padding: 60px 0 30px;
  width: 100%;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 0 20px;
}

.footer-section h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 30px 20px 0;
  border-top: 1px solid #444;
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Dark Mode Adjustment */
body.dark-mode {
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --text-main: #e0e0e0;
  --text-muted: #95a5a6;
  --nav-bg: #1e1e1e;
  --border-color: #333;
}

body.dark-mode h1, body.dark-mode h2 { color: #ffffff; }
body.dark-mode .tool-box { background-color: #2c2c2c; }
body.dark-mode article.content-rich p { color: #ccc; }
body.dark-mode article.content-rich blockquote { background-color: #252525; border-left-color: #444; }

/* Existing Spinner/Bars stay mostly same but match palette */
.progress-bar { background-color: var(--primary-color); }
.number { background-color: #f1c40f; color: #2d3436; }
