/* ==========================================
   DRAFTPAD SUPPORT PAGE — FINAL CLEAN VERSION
   ========================================== */

/* ---------- Root Theme Variables ---------- */
:root {
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --bg-color: #f0f3f7;
  --card-bg-color: #ffffff;
  --text-color: #111827;
  --text-secondary: #374151;
  --accent-color: #3b82f6;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
  --shadow-light: rgba(255, 255, 255, 0.6);
  --shadow-dark: rgba(163, 177, 198, 0.6);
}

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

html,
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: var(--bg-color);
  color: var(--text-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

header h1 {
  font-size: 20px;
  font-weight: 700;
}

/* ---------- Header "Back to App" Link ---------- */
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg-color);
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
  transition: all 0.25s ease;
}

.header-link:hover {
  transform: translateY(-2px);
  background: rgba(102, 126, 234, 0.1);
}

/* ---------- Section Cards ---------- */
.support-section {
  background: var(--card-bg-color);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: 6px 6px 12px var(--shadow-dark);
}

.support-section h2 {
  margin-top: 0;
  font-size: 18px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-section h3 {
  margin-bottom: 8px;
  color: var(--accent-color);
  font-size: 15px;
}

.support-section p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ---------- Links ---------- */
a,
a:visited {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: #1e3a8a;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 20px 0 30px;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.85;
}

.footer-support {
  margin-bottom: 12px;
  font-size: 13px;
}

.support-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.75;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 8px;
}

.support-link:hover {
  color: var(--accent-color);
  opacity: 1;
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.support-link i {
  font-size: 14px;
}

.footer-privacy {
  font-size: 12px;
}

/* =====================================================
   DARK MODE
   ===================================================== */
.dark-mode {
  --bg-color: #0f1115;
  --card-bg-color: #181b22;
  --text-color: #e5e7eb;
  --text-secondary: #9ca3af;
  --accent-color: #818cf8;
  --accent-gradient: linear-gradient(135deg, #4f46e5, #6366f1);
  --shadow-light: rgba(255, 255, 255, 0.05);
  --shadow-dark: rgba(0, 0, 0, 0.6);
}

/* Page base */
.dark-mode html,
.dark-mode body {
  background: var(--bg-color);
  color: var(--text-color);
}

/* Header */
.dark-mode header {
  background: var(--bg-color);
  color: var(--text-color);
  box-shadow: 0 1px 3px rgba(255, 255, 255, 0.05);
}

/* Header link */
.dark-mode .header-link {
  background: rgba(255, 255, 255, 0.05);
  color: #c7d2fe;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
    -2px -2px 4px rgba(255, 255, 255, 0.05);
}

.dark-mode .header-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e7ff;
}

/* Cards */
.dark-mode .support-section {
  background: var(--card-bg-color);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.05),
    inset -1px -1px 2px rgba(0, 0, 0, 0.3);
}

.dark-mode .support-section h2 {
  color: #a5b4fc;
  -webkit-text-fill-color: unset;
  background: none;
}

.dark-mode .support-section h3 {
  color: #c7d2fe;
}

.dark-mode .support-section p {
  color: #e5e7eb;
}

/* Links */
.dark-mode a,
.dark-mode a:visited {
  color: #a5b4fc;
}

.dark-mode a:hover {
  color: #c7d2fe;
}

/* Footer-Dark */
/* Footer */
.dark-mode footer {
  color: #9ca3af;
}

.dark-mode .support-link {
  color: var(--text-secondary);
}

.dark-mode .support-link:hover {
  color: #a5b4fc;
  background: rgba(165, 180, 252, 0.12);
}
