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

:root {
  --bg-color: #f8f9fa;
  --container-bg: #ffffff;
  --text-color: #333333;
  --light-text: #666666;
  --primary-color: #e74c3c;
  --primary-hover: #c0392b;
  --primary-light: #ffeaea;
  --accent-color: #3498db;
  --accent-hover: #2980b9;
  --input-bg: #ffffff;
  --input-border: #ddd;
  --divider-color: #eee;
  --card-shadow: 0 2px 15px rgba(0,0,0,0.08);
  --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.12);
  --nav-bg: #ffffff;
  --nav-shadow: 0 2px 10px rgba(0,0,0,0.06);
  --tag-bg: #f0f0f0;
  --tag-color: #555;
  --sidebar-bg: #f8f9fa;
  --hero-gradient: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  --footer-bg: #2c3e50;
  --footer-text: #bdc3c7;
  --code-bg: #f5f5f5;
}

[data-theme="dark"] {
  --bg-color: #1a1a2e;
  --container-bg: #16213e;
  --text-color: #e0e0e0;
  --light-text: #a0a0a0;
  --primary-color: #ff6b6b;
  --primary-hover: #ff8787;
  --primary-light: #2d1f2f;
  --accent-color: #74b9ff;
  --accent-hover: #a8d8ff;
  --input-bg: #1a1a2e;
  --input-border: #333;
  --divider-color: #2a2a4a;
  --card-shadow: 0 2px 15px rgba(0,0,0,0.3);
  --card-hover-shadow: 0 8px 30px rgba(0,0,0,0.4);
  --nav-bg: #16213e;
  --nav-shadow: 0 2px 10px rgba(0,0,0,0.3);
  --tag-bg: #2a2a4a;
  --tag-color: #a0a0a0;
  --sidebar-bg: #1a1a2e;
  --hero-gradient: linear-gradient(135deg, #c0392b 0%, #8e2020 100%);
  --footer-bg: #0f0f23;
  --footer-text: #8888aa;
  --code-bg: #1a1a2e;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  transition: background-color 0.3s, color 0.3s;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

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

/* ===================== NAVIGATION ===================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  box-shadow: var(--nav-shadow);
  transition: background-color 0.3s;
}

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

.nav-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s;
  color: var(--text-color);
}

.theme-toggle:hover {
  background-color: var(--primary-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: transform 0.3s, opacity 0.3s;
}

/* ===================== HERO SECTION ===================== */
.hero {
  background: var(--hero-gradient);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===================== HERO RECOMMENDER ===================== */
.hero-recommender {
  background: var(--hero-gradient);
  color: white;
  padding: 50px 20px 60px;
  text-align: center;
}

.hero-recommender-inner {
  max-width: 750px;
  margin: 0 auto;
}

.hero-recommender h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.recommender-form {
  background: var(--container-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 6px;
}

.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background-color: var(--input-bg);
  color: var(--text-color);
}

.rc-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--hero-gradient);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 4px;
}

.rc-submit-btn:hover {
  opacity: 0.9;
}

.rc-submit-btn:active {
  transform: scale(0.98);
}

/* ===== RECOMMENDER RESULTS ===== */
.rc-results {
  background: var(--bg-color);
  padding: 50px 20px;
}

.rc-results.hidden {
  display: none;
}

.rc-results-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.rc-results-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-color);
  margin-bottom: 8px;
}

.rc-results-sub {
  color: var(--light-text);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.rc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
  text-align: left;
}

.rc-card {
  background: var(--container-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.rc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.rc-card-header {
  padding: 16px 20px;
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rc-card-header.budget-low { background: #27ae60; }
.rc-card-header.budget-mid { background: #2980b9; }
.rc-card-header.budget-high { background: #8e44ad; }
.rc-card-header.budget-premium { background: #c0392b; }
.rc-card-header.budget-luxury { background: #f39c12; color: #333; }

.rc-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rc-gift-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 6px;
}

.rc-gift-desc {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 14px;
}

.rc-gift-reason {
  background: var(--sidebar-bg);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.rc-gift-reason strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.rc-gift-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.rc-gift-link:hover {
  background: var(--primary-hover);
  color: white;
}

.rc-retry-btn {
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 700;
  background: var(--container-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.rc-retry-btn:hover {
  background: var(--primary-color);
  color: white;
}

.section-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-recommender h1 {
    font-size: 1.6rem;
  }
  .rc-results-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== MAIN LAYOUT ===================== */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.content-area {
  min-width: 0;
}

/* ===================== CATEGORY TABS ===================== */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.category-tab {
  padding: 8px 18px;
  border: 1px solid var(--input-border);
  border-radius: 20px;
  background: var(--container-bg);
  color: var(--text-color);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.category-tab:hover,
.category-tab.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ===================== ARTICLE CARDS ===================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--container-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}

.card-thumb {
  width: 100%;
  height: 180px;
  background: var(--hero-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card-body {
  padding: 20px;
}

.card-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text-color);
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary-color);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--light-text);
}

.card-tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-widget {
  background: var(--container-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 25px;
  box-shadow: var(--card-shadow);
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.popular-list {
  list-style: none;
}

.popular-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--divider-color);
}

.popular-list li:last-child {
  border-bottom: none;
}

.popular-list a {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.popular-list a:hover {
  color: var(--primary-color);
}

.popular-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
}

.tag-cloud a:hover {
  background: var(--primary-color);
  color: white;
}

/* ===================== ARTICLE DETAIL PAGE ===================== */
.article-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.article-content {
  background: var(--container-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--divider-color);
}

.article-category-tag {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 15px;
  color: var(--text-color);
}

.article-meta {
  display: flex;
  gap: 20px;
  color: var(--light-text);
  font-size: 0.88rem;
}

.article-body h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 35px 0 15px;
  padding-left: 14px;
  border-left: 4px solid var(--primary-color);
  color: var(--text-color);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-color);
}

.article-body p {
  margin-bottom: 18px;
  line-height: 1.9;
  color: var(--text-color);
}

.article-body ul,
.article-body ol {
  margin: 15px 0 20px 25px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body strong {
  color: var(--primary-color);
}

.article-body blockquote {
  margin: 20px 0;
  padding: 20px 25px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.info-box {
  background: var(--primary-light);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 20px 25px;
  margin: 25px 0;
}

.info-box h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1rem;
}

.product-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.product-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-color);
}

.product-card .price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.92rem;
  margin-bottom: 8px;
}

/* ===================== RELATED ARTICLES ===================== */
.related-articles {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--divider-color);
}

.related-articles h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.related-item {
  background: var(--sidebar-bg);
  padding: 16px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.related-item:hover {
  background: var(--primary-light);
}

.related-item a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
}

.related-item a:hover {
  color: var(--primary-color);
}

.related-item .related-date {
  font-size: 0.78rem;
  color: var(--light-text);
  margin-top: 5px;
}

/* ===================== TOOL SECTION (Valentine recommender) ===================== */
.tool-section {
  background-color: var(--primary-light);
  padding: 35px;
  border-radius: 16px;
  margin: 30px 0;
  text-align: center;
}

.tool-desc {
  color: var(--light-text);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.input-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

select {
  padding: 14px;
  font-size: 16px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background-color: var(--input-bg);
  color: var(--text-color);
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s;
  appearance: none;
  font-family: inherit;
}

select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.tool-section button {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 10px;
  transition: background-color 0.2s, transform 0.1s;
}

.tool-section button:hover {
  background-color: var(--primary-hover);
}

.tool-section button:active {
  transform: scale(0.98);
}

.error-msg {
  color: #d32f2f;
  background-color: #ffebee;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  font-weight: bold;
}
[data-theme="dark"] .error-msg {
  background-color: #4a191f;
  color: #ff859d;
}
.error-msg.hidden { display: none; }

.result-container {
  background-color: var(--container-bg);
  padding: 30px 20px;
  border-radius: 12px;
  margin-top: 30px;
  border: 2px solid var(--primary-color);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
}

.result-container.hidden {
  display: none;
}

.gift-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.result-label {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 5px;
}

#gift-name {
  color: var(--primary-color);
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.gift-description {
  font-size: 1.05rem;
  margin: 0 0 20px 0;
  font-weight: 500;
}

.reason-box {
  background-color: var(--bg-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 0.95rem;
}

.reason-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.reason-box p {
  margin: 0;
}

.buy-btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.buy-btn:hover {
  background-color: var(--primary-hover);
  color: white;
}

/* ===================== PAGES (About, Contact, etc.) ===================== */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content {
  background: var(--container-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.page-content h1 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 25px;
  color: var(--text-color);
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--text-color);
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--text-color);
}

.page-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin: 10px 0 18px 25px;
}

.page-content li {
  margin-bottom: 6px;
  line-height: 1.7;
}

/* ===================== CONTACT FORM ===================== */
.contact-form {
  margin-top: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  padding: 14px 40px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: var(--primary-hover);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-section h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
}

[data-theme="dark"] .footer-section h4 {
  color: #e0e0e0;
}

.footer-section p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

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

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

.footer-section ul a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-section ul a:hover {
  color: white;
}

[data-theme="dark"] .footer-section ul a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.82rem;
}

.footer-bottom .disclaimer {
  margin-top: 8px;
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ===================== COMMENTS ===================== */
.comments-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--divider-color);
}

.comments-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ===================== BREADCRUMB ===================== */
.breadcrumb {
  max-width: 1100px;
  margin: 0 auto;
  padding: 15px 20px;
  font-size: 0.85rem;
  color: var(--light-text);
}

.breadcrumb a {
  color: var(--light-text);
  text-decoration: none;
}

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

.breadcrumb span {
  margin: 0 6px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .content-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    gap: 5px;
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 25px 18px;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .page-content {
    padding: 25px 18px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== UTILITY ===================== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* ===================== TABLE OF CONTENTS ===================== */
.toc {
  background: var(--sidebar-bg);
  border: 1px solid var(--divider-color);
  border-radius: 10px;
  padding: 20px 25px;
  margin: 25px 0;
}

.toc h4 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-color);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.toc a {
  color: var(--text-color);
  text-decoration: none;
}

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