/* CentralCN — Public Site Stylesheet
   Served from: assets.central-country.com/css/style.css */

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a3a4a;
  --primary-light: #2c5f7c;
  --accent: #e8784a;
  --accent-light: #f5a27a;
  --bg: #f8f6f3;
  --bg-card: #ffffff;
  --bg-dark: #0f242f;
  --text: #2d2d2d;
  --text-light: #6b6b6b;
  --text-lighter: #999;
  --border: #e8e4df;
  --border-light: #f0ede8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1120px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* =============================================
   TOP NAV
   ============================================= */
.top-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.top-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.25rem; font-weight: 700; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--text); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.lang-switcher {
  display: flex; gap: 4px; align-items: center;
}
.lang-switcher a {
  padding: 4px 8px; border-radius: 4px; font-size: 0.78rem;
  color: var(--text-light); font-weight: 500;
}
.lang-switcher a.active { background: var(--primary); color: #fff; }
.lang-switcher a:hover { background: var(--border); }

/* =============================================
   HERO (Homepage)
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5c78 50%, var(--primary-light) 100%);
  color: #fff; padding: 72px 24px 64px; text-align: center;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: 0.85; max-width: 640px; margin: 0 auto 32px; }
.hero-search {
  max-width: 560px; margin: 0 auto; display: flex; gap: 0;
}
.hero-search input {
  flex: 1; padding: 14px 20px; border: none; border-radius: var(--radius) 0 0 var(--radius);
  font-size: 1rem; outline: none;
}
.hero-search button {
  padding: 14px 28px; border: none; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent); color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.hero-search button:hover { background: #d46940; }

/* =============================================
   STATS BAR (Homepage)
   ============================================= */
.stats-bar {
  max-width: var(--max-w); margin: 48px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* =============================================
   DOMAIN NAVIGATION (Homepage)
   ============================================= */
.domain-grid {
  max-width: var(--max-w); margin: -32px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; position: relative; z-index: 10;
}
.domain-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: var(--text);
}
.domain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.domain-card .icon { font-size: 2rem; margin-bottom: 8px; }
.domain-card .name { font-weight: 600; font-size: 0.95rem; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 32px 24px; }

.page-header {
  margin-bottom: 40px; padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
}
.page-header h1 { font-size: 2rem; font-weight: 800; color: var(--primary); }
.page-header p { color: var(--text-light); margin-top: 8px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-lighter);
  margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { color: var(--text-lighter); }

/* =============================================
   CITY CARD GRID (Channel pages)
   ============================================= */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.city-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: var(--text); display: block;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.city-card-image {
  height: 160px; background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 50%, #c5dde8 100%);
  display: flex; align-items: center; justify-content: center;
}
.city-card-image span { font-size: 3.5rem; }
.city-card:hover .city-card-image span { transform: scale(1.15); transition: transform 0.3s; }
.city-card-body { padding: 16px 20px 20px; }
.city-card-body h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--primary); }
.city-card-body p { font-size: 0.85rem; color: var(--text-light); }

/* =============================================
   CONTENT BLOCKS
   ============================================= */
.content-block { margin-bottom: 48px; }
.content-block h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--primary);
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
  display: flex; align-items: center; gap: 12px;
}
.content-block h2 .count {
  font-size: 0.85rem; font-weight: 400; color: var(--text-light);
  background: var(--border); padding: 2px 10px; border-radius: 20px;
}

/* =============================================
   QA ITEMS
   ============================================= */
.qa-list { display: flex; flex-direction: column; gap: 16px; }
.qa-item {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  border-left: 4px solid transparent;
  transition: border-color 0.2s;
}
.qa-item:hover { border-left-color: var(--accent); }
.qa-item .question {
  font-size: 1.1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 12px; line-height: 1.5;
  display: flex; gap: 10px; align-items: flex-start;
}
.qa-item .question .q-icon { color: var(--accent); flex-shrink: 0; font-size: 1.3rem; }
.qa-item .answer {
  color: var(--text); font-size: 0.95rem; line-height: 1.8;
  padding-left: 28px;
}
.qa-item .answer p { margin-bottom: 12px; }
.qa-item .answer p:last-child { margin-bottom: 0; }

/* =============================================
   SUMMARY & GUIDE ITEMS
   ============================================= */
.summary-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  line-height: 1.8; font-size: 0.95rem;
}
.summary-card p { margin-bottom: 12px; }
.summary-card p:last-child { margin-bottom: 0; }

/* =============================================
   TAG BADGES
   ============================================= */
.tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px;
}
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 500;
  background: var(--border-light); color: var(--text-light);
}

/* =============================================
   RELATED SECTION (bottom of pages)
   ============================================= */
.related-section {
  margin-top: 56px; padding-top: 32px;
  border-top: 2px solid var(--border);
}
.related-section h3 { font-size: 1.2rem; margin-bottom: 16px; color: var(--primary); }
.related-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px; list-style: none;
}
.related-links a {
  display: block; padding: 12px 16px; background: var(--bg-card);
  border-radius: var(--radius-sm); font-size: 0.9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.related-links a:hover { background: var(--border-light); }

/* =============================================
   SEARCH (embedded in pages)
   ============================================= */
.inline-search {
  margin: 16px 0 32px;
}
.inline-search .search-box {
  display: flex; max-width: 500px;
}
.inline-search input {
  flex: 1; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 0.95rem; outline: none; font-family: var(--font);
}
.inline-search input:focus { border-color: var(--primary-light); }
.inline-search button {
  padding: 12px 24px; border: none; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--primary); color: #fff; font-weight: 600; cursor: pointer;
}
#central-results {
  margin-top: 8px; background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
#central-results a {
  display: block; padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  color: var(--text); font-size: 0.9rem;
}
#central-results a:hover { background: var(--bg); }
#central-results p { padding: 12px 16px; color: var(--text-lighter); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px; margin-top: 64px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); font-size: 0.85rem; padding: 3px 0; }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; font-size: 0.8rem; text-align: center;
}
.footer-langs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-langs a { color: rgba(255,255,255,0.5); font-size: 0.8rem; padding: 2px 6px; }
.footer-langs a:hover { color: #fff; }

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .hero { padding: 48px 16px 40px; }
  .hero-search { flex-direction: column; gap: 8px; }
  .hero-search input, .hero-search button { border-radius: var(--radius); }
  .domain-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .domain-card { padding: 14px 8px; }
  .domain-card .icon { font-size: 1.5rem; }
  .domain-card .name { font-size: 0.8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .container { padding: 20px 16px; }
  .page-header h1 { font-size: 1.5rem; }
  .qa-item { padding: 16px; }
}

@media (max-width: 480px) {
  .domain-grid { grid-template-columns: repeat(3, 1fr); }
}
