/* Affiliate Best Practices Guide — affiliateguide.css */

/* ── Hero banner ──────────────────────────────────────────────────── */
.ag-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.ag-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/termsheader.jpg') center center / cover no-repeat;
  opacity: 0.18;
}

.ag-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 120px 0 100px;
}

.ag-hero-content {
  max-width: 700px;
}

.ag-hero-eyebrow {
  color: #de256f;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.ag-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.ag-hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.ag-hero-cta {
  font-weight: 600;
  padding: 12px 28px;
}

@media (max-width: 576px) {
  .ag-hero-title { font-size: 1.8rem; }
  .ag-hero-overlay { padding: 70px 0 60px; }
}

/* ── Top bar (back link + jump nav) ──────────────────────────────── */
.ag-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 10px;
}

.ag-back-link {
  color: #555;
  font-size: 1rem;
  text-decoration: none;
}

.ag-back-link:hover { color: #de256f; }

.ag-jumpnav {
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ag-jumpnav-label {
  font-size: 0.9rem;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ag-jumpnav a {
  font-size: 1rem;
  color: #444;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.ag-jumpnav a:hover {
  color: #de256f;
  border-bottom-color: #de256f;
}

/* ── Body container ───────────────────────────────────────────────── */
.ag-body {
  padding-bottom: 60px;
}

/* ── Stat cards at top ───────────────────────────────────────────── */
.ag-stat-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ag-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

.ag-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.ag-stat-label {
  font-size: 0.95rem;
  color: #777;
  margin-top: 4px;
}

/* ── Section layout ──────────────────────────────────────────────── */
.ag-section {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ag-section-warning {
  border-color: #fde8e8;
  background: #fffafa;
}

.ag-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.ag-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

.ag-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}

.ag-section-subtitle {
  color: #777;
  font-size: 1.05rem;
  margin: 0;
}

@media (max-width: 576px) {
  .ag-section { padding: 22px 16px; }
  .ag-section-title { font-size: 1.2rem; }
}

/* ── Colour helpers ──────────────────────────────────────────────── */
.bg-pink   { background-color: #de256f; }
.bg-blue   { background-color: #3b82f6; }
.bg-green  { background-color: #22c55e; }
.bg-purple { background-color: #8b5cf6; }
.bg-red    { background-color: #ef4444; }
.bg-orange { background-color: #f97316; }

/* ── Tip blocks ──────────────────────────────────────────────────── */
.ag-tip-block {
  background: #f8f9fa;
  border-left: 4px solid #de256f;
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
}

.ag-tip-block h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.ag-icon-pink { color: #de256f; }

/* ── Lists ───────────────────────────────────────────────────────── */
.ag-list {
  margin: 0;
  padding-left: 18px;
}

.ag-list li {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 7px;
  color: #444;
}

.ag-list-sm li { font-size: 1rem; }

/* ── Callout boxes ───────────────────────────────────────────────── */
.ag-callout {
  border-radius: 10px;
  padding: 18px 20px;
}

.ag-callout h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ag-callout p, .ag-callout li { font-size: 1rem; }

.ag-callout-pink   { background: #fdf2f6; border: 1px solid #f7c5d8; }
.ag-callout-pink h5 { color: #de256f; }
.ag-callout-blue   { background: #eff6ff; border: 1px solid #bfdbfe; }
.ag-callout-blue h5 { color: #2563eb; }
.ag-callout-green  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ag-callout-green h5 { color: #16a34a; }
.ag-callout-gray   { background: #f8f9fa; border: 1px solid #dee2e6; }
.ag-callout-gray h5 { color: #555; }
.ag-callout-red    { background: #fef2f2; border: 1px solid #fecaca; }
.ag-callout-red h5 { color: #dc2626; }
.ag-callout-orange { background: #fff7ed; border: 1px solid #fed7aa; }
.ag-callout-orange h5 { color: #ea580c; }

/* ── Platform cards ──────────────────────────────────────────────── */
.ag-platform-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ag-platform-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.ag-platform-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.ag-platform-pinterest  { background: #e60023; }
.ag-platform-facebook   { background: #1877f2; }
.ag-platform-tiktok     { background: #010101; }

.ag-platform-icon { font-size: 1.4rem; color: #fff; }

.ag-platform-name {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.ag-platform-body {
  padding: 16px 20px;
  flex: 1;
}

/* ── Content format cards ────────────────────────────────────────── */
.ag-format-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 16px;
  height: 100%;
}

.ag-format-icon {
  font-size: 1.1rem;
  color: #de256f;
  margin-bottom: 6px;
}

.ag-format-name {
  font-weight: 700;
  font-size: 1rem;
  color: #111;
  margin-bottom: 4px;
}

.ag-format-desc {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
}

/* ── Seasonal calendar ───────────────────────────────────────────── */
.ag-calendar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.ag-calendar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 1rem;
}

.ag-cal-month {
  min-width: 64px;
  font-weight: 700;
  color: #de256f;
}

.ag-cal-event { color: #444; }

/* ── Code block ──────────────────────────────────────────────────── */
.ag-code-block {
  background: #1e1e2e;
  border-radius: 8px;
  padding: 14px 16px;
  overflow-x: auto;
}

.ag-code-block code {
  color: #a5f3fc;
  font-size: 0.9rem;
  word-break: break-all;
}

/* ── Avoid cards ─────────────────────────────────────────────────── */
.ag-avoid-card {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 18px 20px;
  height: 100%;
}

.ag-avoid-header {
  font-weight: 700;
  color: #dc2626;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.ag-avoid-card p { font-size: 1rem; color: #444; margin: 0; }

/* ── Bottom CTA ──────────────────────────────────────────────────── */
.ag-bottom-cta {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  border-radius: 16px;
  padding: 48px 36px;
  text-align: center;
  color: #fff;
  margin-top: 16px;
}

.ag-bottom-cta h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.ag-bottom-cta p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }

/* ── Button helpers ──────────────────────────────────────────────── */
.btn-pink-outline {
  color: #de256f;
  border: 1px solid #de256f;
  background: transparent;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}

.btn-pink-outline:hover {
  background: #de256f;
  color: #fff;
}
