/* ================================================================
   content.css — Shared styles for Azul Tiles content pages
   (Privacy, Terms, Contact, About, Articles)
================================================================ */

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

body {
  background: url('/image/background.png') repeat center top;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #2d3a48;
  margin: 0;
  padding: 0;
}

/* ── Page wrapper ─────────────────────────────────── */
.page-wrap {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}
.page-wrap--wide {
  max-width: 960px;
}

/* ── Back link / breadcrumb ───────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 8px 18px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: .86em;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.back-link:hover {
  background: rgba(66,133,244,.48);
  border-color: #4285F4;
  color: white;
  text-decoration: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: .84em;
}
.breadcrumb a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
.breadcrumb a:hover { color: white; text-decoration: underline; }
.breadcrumb-sep { color: rgba(255,255,255,.35); }
.breadcrumb-cur { color: rgba(255,255,255,.55); }

/* ── Card shell ───────────────────────────────────── */
.content-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 36px rgba(0,0,0,.16);
  overflow: hidden;
}

/* ── Card header (dark gradient strip) ───────────── */
.card-header {
  padding: 34px 44px 30px;
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2035 100%);
  position: relative;
  overflow: hidden;
}
.card-header::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(66,133,244,.22) 0%, transparent 70%);
  border-radius: 50%;
}
.card-header::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(66,133,244,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-tag {
  display: inline-block;
  background: rgba(66,133,244,.28);
  color: #90bfff;
  font-size: .72em;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.card-header h1 {
  font-size: clamp(1.55em, 4vw, 2.1em);
  color: white;
  margin: 0 0 8px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.card-header .page-sub {
  color: rgba(255,255,255,.65);
  font-size: .95em;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.last-updated {
  color: rgba(255,255,255,.4);
  font-size: .8em;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

/* ── Card body ────────────────────────────────────── */
.card-body {
  padding: 36px 44px 44px;
}

/* ── Section headings ─────────────────────────────── */
.card-body h2 {
  font-size: 1.15em;
  font-weight: 700;
  color: #1a2a3a;
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 4px solid #4285F4;
  line-height: 1.3;
}
.card-body h2:first-child { margin-top: 4px; }
.card-body h3 {
  font-size: 1.03em;
  font-weight: 700;
  color: #1a3a5c;
  margin: 22px 0 8px;
}

/* ── Body text ────────────────────────────────────── */
.card-body p {
  line-height: 1.8;
  color: #2d3a48;
  font-size: .97em;
  margin: 0 0 14px;
}
.card-body ul,
.card-body ol {
  padding-left: 24px;
  margin: 8px 0 16px;
}
.card-body li {
  line-height: 1.75;
  color: #2d3a48;
  font-size: .97em;
  margin-bottom: 8px;
}
.card-body a:not(.cta-btn) { color: #4285F4; }
.card-body a:not(.cta-btn):hover { text-decoration: underline; }
code {
  background: #f0f4ff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
  color: #1a3a5c;
}

/* ── Callout boxes ────────────────────────────────── */
.callout {
  background: #f0f6ff;
  border-left: 4px solid #4285F4;
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin: 18px 0;
  font-size: .95em;
  line-height: 1.7;
  color: #2d3a48;
}
.callout strong { color: #1a3a5c; }
.callout--warn {
  background: #fff8e1;
  border-left-color: #f0a500;
}
.callout--success {
  background: #eafaf1;
  border-left-color: #27ae60;
}
.callout--success strong { color: #1a7a45; }

/* ── Tables ───────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: .92em;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.data-table th {
  background: linear-gradient(135deg, #1a3a5c, #0d2035);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .88em;
  letter-spacing: .03em;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #e8f0fe;
  color: #2d3a48;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #f8fbff; }

/* ── Section divider ──────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid #e8f0fe;
  margin: 32px 0;
}

/* ── CTA box ──────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d2035 100%);
  border-radius: 14px;
  padding: 30px 36px;
  text-align: center;
  margin-top: 44px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(66,133,244,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-box p {
  color: rgba(255,255,255,.85);
  margin: 0 0 18px;
  font-size: 1.05em;
  position: relative;
  z-index: 1;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #4285F4, #3070d6);
  color: white;
  padding: 13px 34px;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: .98em;
  letter-spacing: .3px;
  box-shadow: 0 4px 20px rgba(66,133,244,.5);
  transition: transform .15s, box-shadow .15s;
  position: relative;
  z-index: 1;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(66,133,244,.65);
  color: white;
  text-decoration: none;
}

/* ── Article byline ───────────────────────────────── */
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #6b7f93;
  font-size: .86em;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e8f0fe;
}
.byline-dot { color: #c8d6e5; }

/* ── Tip / Fix boxes ──────────────────────────────── */
.tip-box {
  background: #f0f6ff;
  border-left: 4px solid #4285F4;
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin: 18px 0;
  font-size: .94em;
  line-height: 1.7;
  color: #2d3a48;
}
.tip-box strong { color: #1a3a5c; }

.fix-box {
  background: #eafaf1;
  border-left: 4px solid #27ae60;
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  margin: 14px 0;
  font-size: .94em;
  line-height: 1.7;
  color: #2d3a48;
}
.fix-box strong { color: #1a7a45; }

/* ── Mistake header ───────────────────────────────── */
.mistake-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  margin-bottom: 10px;
}
.mistake-num {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border-radius: 50%;
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1em;
  box-shadow: 0 3px 10px rgba(192,57,43,.3);
}
.mistake-title {
  font-size: 1.15em;
  font-weight: 700;
  color: #1a2a3a;
  margin: 0;
  line-height: 1.3;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 660px) {
  .card-header { padding: 26px 22px 22px; }
  .card-body   { padding: 26px 22px 32px; }
}
@media (max-width: 480px) {
  .page-wrap { padding: 18px 12px 48px; }
  .card-header { padding: 22px 16px 18px; }
  .card-body   { padding: 22px 16px 28px; }
  .cta-box { padding: 24px 20px; }
}
