/* FreeAppTips.com — Main Stylesheet */

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

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dark:   #0f172a;
  --dark-2: #1e293b;
  --blue:   #2563eb;
  --blue-h: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-mid:   #dbeafe;
  --text:       #1f2937;
  --text-soft:  #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --white:  #ffffff;
  --bg:     #f8fafc;
  --r:  10px;
  --rl: 16px;
}

body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.75; font-size: 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ─────────────────────────────────────────────────── */
.site-nav {
  background: var(--dark);
  height: 56px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-nav .brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.site-nav .brand em { color: #60a5fa; font-style: normal; }
.nav-links { display: flex; gap: 1.25rem; }
.nav-links a { color: #94a3b8; font-size: .875rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
@media (max-width: 520px) { .nav-links { gap: .75rem; } .nav-links a { font-size: .8rem; } }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 55%, #1d4ed8 100%);
  color: #fff;
  padding: 2.75rem 1.5rem 2.25rem;
}
.page-header-inner { max-width: 860px; margin: 0 auto; }

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 12px 3px 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.game-tag.cc    { background: rgba(236,72,153,.18); border: 1px solid rgba(236,72,153,.35); color: #f9a8d4; }
.game-tag.mgo   { background: rgba(249,115,22,.18); border: 1px solid rgba(249,115,22,.35); color: #fdba74; }
.game-tag.roblox{ background: rgba(34,197,94,.18);  border: 1px solid rgba(34,197,94,.35);  color: #86efac; }
.game-tag.general{ background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.8); }

.page-header h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: .6rem;
  max-width: 680px;
}
.page-header .lead {
  font-size: 1rem;
  opacity: .82;
  max-width: 560px;
  margin-bottom: 1rem;
  line-height: 1.65;
}
.breadcrumb-nav {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: .78rem;
  opacity: .65;
  flex-wrap: wrap;
}
.breadcrumb-nav a { color: #93c5fd; }
.breadcrumb-nav .sep { opacity: .6; }

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.page-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 248px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 740px) {
  .page-wrap { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
}

/* ── ARTICLE ─────────────────────────────────────────────── */
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.25rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--blue-mid);
}
.article-body h3 {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--dark-2);
  margin: 1.5rem 0 .4rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.4rem; }
.article-body li { margin-bottom: .35rem; }
.article-body strong { color: var(--dark); }

/* ── TIP BOXES ───────────────────────────────────────────── */
.tip-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r) var(--r) 0;
  padding: .9rem 1.15rem;
  margin: 1.4rem 0;
  font-size: .93rem;
  color: #1e40af;
}
.tip-box strong { color: #1e3a8a; }
.warn-box {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 0 var(--r) var(--r) 0;
  padding: .9rem 1.15rem;
  margin: 1.4rem 0;
  font-size: .93rem;
  color: #7c2d12;
}
.good-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 0 var(--r) var(--r) 0;
  padding: .9rem 1.15rem;
  margin: 1.4rem 0;
  font-size: .93rem;
  color: #14532d;
}

/* ── DATA TABLE ──────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
}
.data-table th {
  background: var(--dark-2);
  color: #e2e8f0;
  padding: .65rem .9rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.data-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #f8fafc; }
.data-table tr:hover td { background: var(--blue-light); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section { margin-top: 2.5rem; }
.faq-section > h2 { margin-top: 0; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem 1.25rem;
  margin-bottom: .65rem;
  transition: border-color .15s;
}
.faq-item:hover { border-color: #93c5fd; }
.faq-item h3 {
  font-size: .97rem;
  font-weight: 600;
  color: #1d4ed8;
  margin: 0 0 .4rem;
}
.faq-item p { margin: 0; font-size: .91rem; color: var(--text-soft); line-height: 1.65; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.page-sidebar { position: sticky; top: 68px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.2rem;
  margin-bottom: 1.1rem;
}
.sidebar-card h3 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-card a {
  display: block;
  padding: .38rem .5rem;
  border-radius: 6px;
  font-size: .86rem;
  color: var(--text);
  margin-bottom: 1px;
  transition: background .1s, color .1s;
}
.sidebar-card a:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }
.sidebar-card a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

/* ── RELATED GUIDES ──────────────────────────────────────── */
.related-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related-section h2 { font-size: 1.1rem; margin-bottom: 1rem; border-bottom: none; padding-bottom: 0; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.guide-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .9rem 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.guide-card:hover { border-color: var(--blue); box-shadow: 0 2px 10px rgba(37,99,235,.1); text-decoration: none; }
.guide-card h4 { font-size: .88rem; color: var(--text); line-height: 1.4; margin-bottom: .25rem; }
.guide-card .arrow { font-size: .8rem; color: var(--blue); font-weight: 600; }

/* ── HUB PAGE ────────────────────────────────────────────── */
.hub-wrap { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.hub-intro { margin-bottom: 2rem; }
.hub-intro p { color: var(--text-soft); max-width: 640px; }
.hub-section { margin-bottom: 2.5rem; }
.hub-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--dark); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .875rem; }
.hub-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 1.25rem;
  transition: border-color .15s, box-shadow .15s;
}
.hub-card:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(37,99,235,.1); text-decoration: none; }
.hub-card h3 { font-size: .97rem; font-weight: 700; color: var(--dark); margin-bottom: .3rem; line-height: 1.35; }
.hub-card p { font-size: .85rem; color: var(--text-soft); margin-bottom: .6rem; line-height: 1.55; }
.hub-card .cta { font-size: .83rem; color: var(--blue); font-weight: 600; }

/* ── HERO (index pages only) ─────────────────────────────── */
.site-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 55%, #1d4ed8 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}
.site-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; margin-bottom: .75rem; letter-spacing: -.02em; }
.site-hero p { font-size: 1.1rem; opacity: .82; max-width: 520px; margin: 0 auto; }

/* ── LAST UPDATED ────────────────────────────────────────── */
.last-updated { font-size: .78rem; color: var(--text-muted); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #475569;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .85rem;
  margin-top: 4rem;
}
.site-footer a { color: #60a5fa; }
.footer-links { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; margin: .75rem 0; }
.footer-disclaimer { max-width: 580px; margin: .5rem auto 0; font-size: .77rem; color: #334155; line-height: 1.65; }
