/* Adfinity Hub — Shared Stylesheet */
/* Last updated: 2026-03-25 */

:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --accent: #e94560;
  --accent-hover: #d63851;
  --white: #ffffff;
  --bg: #f5f6fa;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #dfe6e9;
  --card: #ffffff;
  --success: #00b894;
  --warning: #fdcb6e;
  --info: #74b9ff;
  --google: #4285f4;
  --meta: #1877f2;
  --tiktok: #010101;
  --linkedin: #0a66c2;
  --sidebar-w: 240px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Top Nav ── */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  gap: 2rem;
}

.topnav .logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.topnav .logo span { color: var(--accent); }

.topnav nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.topnav nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.topnav nav a:hover,
.topnav nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ── Page Layout ── */
.page {
  max-width: 960px;
  margin: 80px auto 4rem;
  padding: 0 2rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.page-header .subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
}

.page-header .updated {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.4rem; }

/* ── Section blocks ── */
.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1.25rem 0 0.5rem;
}

.section h3:first-child { margin-top: 0; }

.section p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section ul, .section ol {
  font-size: 0.88rem;
  margin: 0.5rem 0 1rem 1.5rem;
}

.section li { margin-bottom: 0.35rem; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; margin: 1rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

thead th {
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tbody td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:hover td { background: rgba(233,69,96,0.03); }

/* ── Code / mono ── */
code, .mono {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  background: #f0f0f3;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

pre {
  background: var(--navy);
  color: #e0e0e0;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 1rem 0;
}

/* ── Cards grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(233,69,96,0.1);
  transform: translateY(-1px);
}

.card .card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card .card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.card .card-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tag-red { background: rgba(233,69,96,0.15); color: var(--accent); }
.tag-green { background: rgba(0,184,148,0.15); color: var(--success); }
.tag-blue { background: rgba(116,185,255,0.15); color: var(--info); }

/* ── Callout boxes ── */
.callout {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.callout-red {
  background: rgba(233,69,96,0.08);
  border-left: 4px solid var(--accent);
}

.callout-green {
  background: rgba(0,184,148,0.08);
  border-left: 4px solid var(--success);
}

.callout-blue {
  background: rgba(116,185,255,0.08);
  border-left: 4px solid var(--info);
}

.callout-yellow {
  background: rgba(253,203,110,0.1);
  border-left: 4px solid var(--warning);
}

.callout strong { display: block; margin-bottom: 0.25rem; }

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .topnav { padding: 0 1rem; gap: 1rem; }
  .topnav nav a { font-size: 0.75rem; padding: 0.3rem 0.5rem; }
  .page { padding: 0 1rem; margin-top: 70px; }
}

/* ── Checklist style ── */
.checklist {
  list-style: none;
  margin-left: 0;
}

.checklist li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  font-size: 0.88rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 3px;
}

/* ── Platform colors ── */
.platform-google { border-left: 4px solid var(--google); }
.platform-meta { border-left: 4px solid var(--meta); }
.platform-tiktok { border-left: 4px solid var(--tiktok); }
.platform-linkedin { border-left: 4px solid var(--linkedin); }

/* ── Footer ── */
.page-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
}
