/* ─────────────────────────────────────────────────────────────────
   WORLD TOUR PRO — WordPress styles
   Paste this into: Appearance → Customize → Additional CSS
   Covers: User Manual (.wtp-manual) + Download Page (.wtp-download)
   ───────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════
   DOWNLOAD PAGE
   ═══════════════════════════════════════════════════════════════ */

.wtp-download {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f1f5f9;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 60px;
  border-radius: 8px;
  overflow-wrap: break-word;
}

/* ─── HERO ─── */
.wtp-dl-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  text-align: center;
  padding: 48px 24px 40px;
  border-radius: 8px 8px 0 0;
}
.wtp-dl-app-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  display: block;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.wtp-dl-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  color: #fff;
}
.wtp-dl-tagline {
  font-size: 1.05rem;
  color: #c8d6e8;
  margin: 0;
  opacity: 0.9;
}

/* ─── BADGES ─── */
.wtp-dl-badges-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff;
  padding: 28px 24px;
  flex-wrap: wrap;
}
.wtp-dl-badge-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, transform 0.15s;
  flex: 0 0 auto;
}
.wtp-dl-badge-link:hover { opacity: 0.8; transform: scale(1.03); }
/* Apple badge — clean SVG, no padding */
#wtp-appstore-link .wtp-dl-badge {
  height: 52px;
  width: auto;
  max-width: none;
}
/* Google Play badge — PNG has built-in whitespace, needs larger height to visually match */
#wtp-googleplay-link .wtp-dl-badge {
  height: 78px;
  width: auto;
  max-width: none;
}

/* ─── COMING SOON NOTICE ─── */
.wtp-dl-soon {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  font-size: 0.9rem;
  padding: 12px 20px;
  margin: 0;
}

/* ─── FEATURES ─── */
.wtp-dl-features {
  background: #fff;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.wtp-dl-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}
.wtp-dl-feature:last-child { border-bottom: none; }
.wtp-dl-feature-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  margin-top: 2px;
}
.wtp-dl-feature-title {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.wtp-dl-feature-desc {
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ─── FOOTER ─── */
.wtp-dl-footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
  color: #94a3b8;
  background: #f1f5f9;
}
.wtp-dl-footer a { color: #4a9eff; text-decoration: none; }
.wtp-dl-footer a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  .wtp-dl-hero h1 { font-size: 1.7rem; }
  .wtp-dl-badges-wrap { gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   USER MANUAL
   ═══════════════════════════════════════════════════════════════ */

.wtp-manual *, .wtp-manual *::before, .wtp-manual *::after { box-sizing: border-box; }
.wtp-manual {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f1f5f9;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  border-radius: 8px;
}
.wtp-manual p, .wtp-manual li, .wtp-manual td, .wtp-manual th,
.wtp-manual h1, .wtp-manual h2, .wtp-manual h3, .wtp-manual h4, .wtp-manual span {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── HEADER ─── */
.wtp-manual .manual-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 28px 20px 24px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.wtp-manual .manual-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #fff;
}
.wtp-manual .manual-header .subtitle {
  font-size: 1rem;
  opacity: 0.9;
  color: #c8d6e8;
}
.wtp-manual .manual-header .version {
  display: inline-block;
  margin-top: 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 0.8rem;
  opacity: 0.85;
  color: #fff;
}

/* ─── PRINT BUTTON ─── */
.wtp-manual .pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #4a9eff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 36px;
  transition: background 0.15s;
}
.wtp-manual .pdf-btn:hover { background: #2d7dd2; }
.wtp-manual .pdf-btn svg { width: 18px; height: 18px; }

/* ─── TABLE OF CONTENTS ─── */
.wtp-manual .toc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}
.wtp-manual .toc h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}
.wtp-manual .toc ol { padding-left: 20px; }
.wtp-manual .toc li { margin-bottom: 6px; }
.wtp-manual .toc a { color: #4a9eff; text-decoration: none; font-size: 0.9rem; }
.wtp-manual .toc a:hover { text-decoration: underline; }

/* ─── SECTIONS ─── */
.wtp-manual .section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 24px;
}
.wtp-manual .section-icon { display: inline-block; font-size: 1.4rem; margin-right: 10px; vertical-align: middle; }
.wtp-manual h2.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
  margin-top: 0;
}
.wtp-manual h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 28px 0 10px;
}
.wtp-manual h3:first-of-type { margin-top: 16px; }
.wtp-manual h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin: 20px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wtp-manual p { margin-bottom: 12px; color: #374151; }
.wtp-manual p:last-child { margin-bottom: 0; }
.wtp-manual ul, .wtp-manual ol { padding-left: 20px; margin-bottom: 14px; color: #374151; }
.wtp-manual li { margin-bottom: 5px; }

/* ─── ROLE BADGES ─── */
.wtp-manual .badge {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.wtp-manual .badge-admin  { background: #fee2e2; color: #b91c1c; }
.wtp-manual .badge-tm     { background: #ccfbf1; color: #0f766e; }
.wtp-manual .badge-crew   { background: #f1f5f9; color: #475569; }
.wtp-manual .badge-artist { background: #ede9fe; color: #6d28d9; }

/* ─── INFO BOXES ─── */
.wtp-manual .tip, .wtp-manual .note, .wtp-manual .warning {
  border-left: 4px solid;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
}
.wtp-manual .tip     { border-color: #4a9eff; background: #eff6ff; color: #1e40af; }
.wtp-manual .note    { border-color: #f59e0b; background: #fffbeb; color: #92400e; }
.wtp-manual .warning { border-color: #ef4444; background: #fef2f2; color: #991b1b; }

/* ─── PERMISSIONS TABLE ─── */
.wtp-manual .perm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.wtp-manual .perm-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 0.875rem; }
.wtp-manual .perm-table th { text-align: left; padding: 8px 12px; background: #f8fafc; color: #475569; font-weight: 600; border-bottom: 2px solid #e2e8f0; }
.wtp-manual .perm-table td { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; color: #374151; }
.wtp-manual .perm-table tr:last-child td { border-bottom: none; }
.wtp-manual .perm-table td:not(:first-child) { text-align: center; }
.wtp-manual .yes { color: #16a34a; font-weight: 700; }
.wtp-manual .no  { color: #d1d5db; }

/* ─── FIELDS LIST ─── */
.wtp-manual .field-list { list-style: none; padding: 0; }
.wtp-manual .field-list li {
  padding: 7px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.wtp-manual .field-list li:last-child { border-bottom: none; }
.wtp-manual .field-name { font-weight: 600; color: #1a1a2e; min-width: 120px; font-size: 0.875rem; }
.wtp-manual .field-desc { color: #374151; font-size: 0.875rem; }

/* ─── STEP LIST ─── */
.wtp-manual .steps { list-style: none; padding: 0; counter-reset: steps; }
.wtp-manual .steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
  overflow-wrap: break-word;
  word-break: break-word;
}
.wtp-manual .steps li::before {
  content: counter(steps);
  background: #4a9eff;
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 3px;
}
.wtp-manual .steps li ul, .wtp-manual .steps li ol { margin-top: 8px; padding-left: 16px; }

/* ─── DIVIDER ─── */
.wtp-manual hr { border: none; border-top: 2px solid #f1f5f9; margin: 28px 0; }

/* ─── SECTION NAV ─── */
.wtp-manual .section-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px solid #f1f5f9;
  gap: 12px;
}
.wtp-manual .section-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1a1a2e;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.wtp-manual .section-nav a:hover { background: #e8f0fe; border-color: #4a9eff; color: #1e40af; }
.wtp-manual .section-nav .nav-prev::before { content: '←'; font-size: 1rem; margin-right: 4px; }
.wtp-manual .section-nav .nav-next::after  { content: '→'; font-size: 1rem; margin-left: 4px; }
.wtp-manual .section-nav .nav-spacer { flex: 1; }