/* 173Games - whiteout-survival */
/* ===== Whiteout Survival Theme ===== */
:root {
  --bg: #f0f7ff;
  --bg-card: #ffffff;
  --bg-hover: #e3f2fd;
  --bg-sidebar: #eef7ff;
  --accent: #29B6F6;
  --accent-hover: #4FC3F7;
  --text: #0d1b2a;
  --text-secondary: #455a64;
  --text-muted: #78909c;
  --border: #c5e4f7;
  --shadow: rgba(79,195,247,.12);
}
body { background: linear-gradient(180deg, #f0f7ff 0%, #f5faff 100%); }

/* ===== 173Games Design System ===== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; line-height: 1.3; margin-bottom: .6rem; }
h2 { font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 700; line-height: 1.35; margin-top: 2rem; margin-bottom: .5rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 700; margin-top: 1.5rem; margin-bottom: .4rem; }
h4 { font-size: 1.05rem; font-weight: 600; margin-top: 1rem; margin-bottom: .3rem; }
p { margin-bottom: .8rem; }
ul, ol { margin-bottom: .8rem; padding-left: 1.4rem; }
li { margin-bottom: .3rem; }
code { font-family: 'SF Mono', Monaco, Consolas, monospace; background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; font-size: .88em; }
pre { background: var(--bg-hover); padding: 14px; border-radius: 8px; overflow-x: auto; margin-bottom: 1rem; font-size: .85rem; }
pre code { background: none; padding: 0; }
blockquote { border-left: 3px solid var(--accent); padding: .6rem 1rem; margin: 1rem 0; background: var(--bg-hover); border-radius: 0 8px 8px 0; color: var(--text-secondary); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: .92rem; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg-hover); font-weight: 700; color: var(--text); }
tr:hover { background: var(--bg-hover); }

/* Layout */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 40px;
  flex: 1;
  width: 100%;
}

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--bg-sidebar); border-bottom: 1px solid var(--border); box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.navbar-container { max-width: 1000px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 52px; }
.navbar-logo { font-size: 1.15rem; font-weight: 800; color: var(--text); text-decoration: none; }
.navbar-logo .logo-accent { color: var(--accent); }
.navbar-nav { display: flex; align-items: center; gap: 4px; list-style: none; }
.navbar-nav a { color: var(--text-secondary); font-size: .85rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; transition: all .2s; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--accent); background: var(--bg-hover); }
.navbar-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }

/* Breadcrumb */
.breadcrumb { max-width: 1000px; margin: 0 auto; padding: 6px 16px; font-size: .78rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }

/* Cards */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 1.5rem 0; }
.guide-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--text); transition: all .2s; }
.guide-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px var(--shadow); transform: translateY(-1px); color: var(--text); }
.guide-card-icon { font-size: 1.6rem; flex-shrink: 0; }
.guide-card h3 { font-size: .98rem; color: var(--accent); margin: 0 0 2px; }
.guide-card p { font-size: .82rem; color: var(--text-secondary); margin: 0; }

/* Buttons */
.btn { display: inline-block; padding: 8px 20px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .2s; text-decoration: none; }
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Tags/Badges */
.tag { display: inline-block; padding: 2px 10px; background: var(--bg-hover); border: 1px solid var(--border); border-radius: 4px; font-size: .75rem; color: var(--text-secondary); }

/* Tips */
.tip-box { background: var(--bg-hover); border-left: 3px solid var(--accent); padding: .6rem 1rem; margin: 1rem 0; border-radius: 0 8px 8px 0; }
.tip-box-title { font-weight: 700; color: var(--accent); margin-bottom: 2px; font-size: .9rem; }

/* TOC */
.toc { background: var(--bg-hover); border: 1px solid var(--border); border-radius: 10px; padding: 14px 20px; margin-bottom: 1.5rem; }
.toc-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--accent); }
.toc ul { list-style: none; padding: 0; }
.toc a { color: var(--text-secondary); font-size: .88rem; }

/* Lang switcher */
.lang-switcher { position: relative; display: inline-block; }
.lang-switcher-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: .72rem; font-weight: 600; }
.lang-switcher-btn:hover { border-color: var(--accent); }
.lang-switcher-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; min-width: 120px; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 100; }
.lang-switcher-dropdown.show { display: block; }
.lang-switcher-dropdown a { display: block; padding: 6px 12px; color: var(--text); font-size: .78rem; }
.lang-switcher-dropdown a:hover { background: var(--bg-hover); }

/* Share buttons */
.share-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 1.5rem 0; }
.share-bar a { padding: 6px 14px; border-radius: 6px; color: #fff; font-size: .8rem; font-weight: 600; transition: transform .2s; }
.share-bar a:hover { transform: translateY(-1px); }
.share-twitter { background: #1da1f2; }
.share-facebook { background: #1877f2; }
.share-reddit { background: #ff4500; }

/* Footer */
.footer { background: var(--bg-sidebar); border-top: 1px solid var(--border); padding: 24px 16px; margin-top: auto; }
.footer-container { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.footer-section h4 { color: var(--accent); font-size: .85rem; margin-bottom: 6px; }
.footer-section ul { list-style: none; padding: 0; }
.footer-section a { color: var(--text-secondary); font-size: .82rem; }
.footer-section a:hover { color: var(--accent); }
.footer-bottom { max-width: 1000px; margin: 16px auto 0; padding-top: 12px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: .78rem; }

/* Back to top */
.back-to-top { position: fixed; bottom: 16px; right: 16px; width: 40px; height: 40px; background: var(--accent); color: #fff; border: none; border-radius: 50%; font-size: 1.1rem; cursor: pointer; opacity: 0; transition: opacity .3s; z-index: 999; }
.back-to-top.show { opacity: 1; }
.back-to-top:hover { background: var(--accent-hover); }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .navbar-toggle { display: block; }
  .navbar-nav { display: none; position: absolute; top: 52px; left: 0; right: 0; background: var(--bg-sidebar); flex-direction: column; padding: 8px; gap: 0; border-bottom: 1px solid var(--border); }
  .navbar-nav.show { display: flex; }
  .navbar-nav a { display: block; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .88rem; }
  .page-container { padding: 0 12px 30px; }
  .guide-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .page-container { padding: 0 10px 20px; }
  .footer-container { grid-template-columns: 1fr; }
}

