/*
=========================================================
niDar Tools — Support Center
Green / Mint Design System
=========================================================
*/

:root {
  --primary: #2e7d32;
  --primary-dark: #1b5e20;
  --primary-light: #43a047;
  --primary-soft: #e8f5e9;

  --page-bg: #f7faf8;
  --card-bg: #ffffff;
  --soft-bg: #f1f6f2;

  --text: #18201a;
  --text-secondary: #5f6962;
  --text-muted: #7b847d;

  --border: #dfe7e1;
  --border-strong: #cbd8ce;

  --warning-bg: #fff8e7;
  --warning-border: #f0d99a;

  --shadow-sm: 0 4px 16px rgba(24, 32, 26, 0.055);
  --shadow-md: 0 10px 28px rgba(24, 32, 26, 0.09);
  --shadow-lg: 0 18px 50px rgba(24, 32, 26, 0.10);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --transition: 180ms ease;
}

/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* =========================================================
   MAIN PAGE
========================================================= */

.support-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 80px;
}

/* =========================================================
   HERO
========================================================= */

.support-hero {
  position: relative;
  max-width: 900px;
  margin: 0 auto 42px;
  padding: 24px 16px 12px;
  text-align: center;
}

.support-hero::before {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(76, 175, 80, 0.16),
    transparent 68%
  );
  pointer-events: none;
  z-index: -1;
}

.support-badge,
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: 1px solid rgba(46, 125, 50, 0.17);
  border-radius: 999px;
  background: rgba(232, 245, 233, 0.86);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.support-hero h1 {
  margin: 17px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #18201a 0%,
    #2e7d32 55%,
    #43a047 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-hero > p {
  max-width: 740px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: clamp(15px, 2vw, 18px);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.hero-features span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.80);
  color: var(--text-secondary);
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   SUPPORT WORKSPACE
========================================================= */

.support-workspace {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.section-intro,
.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-intro h2,
.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.section-intro p,
.section-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* =========================================================
   SUPPORT OPTIONS
========================================================= */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.support-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 125, 50, 0.25);
  box-shadow: var(--shadow-md);
}

.support-icon {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--primary-soft);
  font-size: 24px;
}

.support-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 800;
}

.support-card p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.support-card strong {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

/* =========================================================
   CONTENT SECTIONS
========================================================= */

.content-section {
  margin-top: 58px;
}

.help-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.help-card,
.step-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.help-card:hover,
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 125, 50, 0.25);
  box-shadow: var(--shadow-md);
}

.help-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 22px;
}

.help-card h3,
.step-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 800;
}

.help-card p,
.step-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

/* =========================================================
   STEP NUMBERS
========================================================= */

.step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light)
  );
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 7px 17px rgba(46, 125, 50, 0.20);
}

/* =========================================================
   BUG REPORT NOTICE
========================================================= */

.notice-card {
  max-width: 980px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
  margin: 42px auto 0;
  padding: 24px;
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-lg);
  background: var(--warning-bg);
  box-shadow: var(--shadow-sm);
}

.notice-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff0c7;
  font-size: 23px;
}

.notice-card h2 {
  margin: 0 0 7px;
  font-size: 20px;
  font-weight: 800;
}

.notice-card p {
  margin: 0 0 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.notice-card ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.notice-card li {
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 13px;
}

/* =========================================================
   BUTTONS
========================================================= */

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.primary-button {
  border: 1px solid var(--primary);
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light)
  );
  color: #fff;
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.20);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(46, 125, 50, 0.27);
}

.secondary-button {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 125, 50, 0.45);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* =========================================================
   PRIVACY CARD
========================================================= */

.privacy-card {
  max-width: 980px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 42px auto 0;
  padding: 23px;
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: var(--radius-lg);
  background: var(--primary-soft);
}

.privacy-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  font-size: 22px;
}

.privacy-card h2 {
  margin: 10px 0 7px;
  font-size: 20px;
  font-weight: 800;
}

.privacy-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

/* =========================================================
   FAQ CTA
========================================================= */

.faq-cta {
  max-width: 980px;
  margin: 58px auto 0;
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.faq-cta h2 {
  margin: 13px 0 8px;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 800;
}

.faq-cta p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 14px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* =========================================================
   SUPPORT NOTE
========================================================= */

.support-note {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 20px 22px;
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: var(--radius-md);
  background: var(--soft-bg);
}

.support-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 15px;
}

.support-note p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

/* =========================================================
   FOOTER
========================================================= */

.support-footer {
  margin-top: 0;
  padding: 28px max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--border);
  background: #fff;
}

.support-footer p {
  margin: 4px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.support-footer strong {
  color: var(--text);
}

/* =========================================================
   DARK MODE
========================================================= */

html[data-theme="dark"] body {
  --page-bg: #0d130f;
  --card-bg: #151d17;
  --soft-bg: #19231b;

  --text: #eef5ef;
  --text-secondary: #b7c2b9;
  --text-muted: #8e9b91;

  --border: #29372d;
  --border-strong: #3a4a3e;

  background: var(--page-bg);
  color: var(--text);
}

html[data-theme="dark"] .support-hero::before {
  background: radial-gradient(
    circle,
    rgba(76, 175, 80, 0.18),
    transparent 68%
  );
}

html[data-theme="dark"] .support-hero h1 {
  background: linear-gradient(
    135deg,
    #eef5ef 0%,
    #81c784 58%,
    #a5d6a7 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] .support-badge,
html[data-theme="dark"] .section-badge,
html[data-theme="dark"] .hero-features span {
  background: rgba(30, 55, 34, 0.90);
  border-color: #314c36;
  color: #b9e0bd;
}

html[data-theme="dark"] .support-workspace,
html[data-theme="dark"] .support-card,
html[data-theme="dark"] .help-card,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .faq-cta {
  background: var(--card-bg);
}

html[data-theme="dark"] .secondary-button,
html[data-theme="dark"] .privacy-icon {
  background: #111812;
  color: var(--text);
}

html[data-theme="dark"] .notice-card {
  background: #282014;
}

html[data-theme="dark"] .notice-icon {
  background: #3a2d17;
}

html[data-theme="dark"] .privacy-card {
  background: #17251a;
}

html[data-theme="dark"] .support-footer {
  background: #111812;
}

/* =========================================================
   SENIOR / HIGH READABILITY
========================================================= */

html[data-theme="senior"] body {
  font-size: 17px;
}

html[data-theme="senior"] .support-page {
  width: min(1180px, calc(100% - 24px));
}

html[data-theme="senior"] .support-hero h1 {
  font-size: clamp(35px, 6vw, 56px);
  letter-spacing: -0.5px;
}

html[data-theme="senior"] .support-hero > p,
html[data-theme="senior"] .section-intro p,
html[data-theme="senior"] .section-heading p {
  font-size: 16px;
}

html[data-theme="senior"] .support-card p,
html[data-theme="senior"] .help-card p,
html[data-theme="senior"] .step-card p,
html[data-theme="senior"] .notice-card p,
html[data-theme="senior"] .notice-card li,
html[data-theme="senior"] .privacy-card p {
  font-size: 15px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .support-page {
    width: min(100% - 24px, 760px);
    padding-top: 34px;
  }

  .help-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-workspace {
    padding: 24px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  .support-page {
    width: min(100% - 20px, 520px);
    padding: 28px 0 56px;
  }

  .support-hero {
    margin-bottom: 28px;
    padding: 18px 6px 8px;
  }

  .support-badge,
  .section-badge {
    padding: 6px 11px;
    font-size: 11px;
  }

  .support-hero h1 {
    margin-top: 13px;
    font-size: clamp(29px, 9vw, 40px);
    letter-spacing: -1px;
  }

  .support-hero > p {
    font-size: 14px;
  }

  .hero-features {
    gap: 7px;
    margin-top: 17px;
  }

  .hero-features span {
    padding: 6px 9px;
    font-size: 10px;
  }

  .support-workspace {
    padding: 18px;
    border-radius: 20px;
  }

  .section-intro,
  .section-heading {
    margin-bottom: 21px;
  }

  .section-intro h2,
  .section-heading h2 {
    font-size: 22px;
  }

  .section-intro p,
  .section-heading p {
    font-size: 12px;
  }

  .support-grid,
  .help-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support-card {
    gap: 12px;
    padding: 17px;
  }

  .support-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .support-card h3 {
    font-size: 17px;
  }

  .support-card p {
    font-size: 12px;
  }

  .help-card,
  .step-card {
    padding: 17px;
  }

  .help-card p,
  .step-card p {
    font-size: 12px;
  }

  .content-section {
    margin-top: 40px;
  }

  .notice-card,
  .privacy-card {
    gap: 11px;
    padding: 17px;
    border-radius: 18px;
  }

  .notice-icon,
  .privacy-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .notice-card h2,
  .privacy-card h2 {
    font-size: 18px;
  }

  .notice-card p,
  .notice-card li,
  .privacy-card p {
    font-size: 12px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 48px;
  }

  .faq-cta {
    margin-top: 40px;
    padding: 25px 17px;
    border-radius: 20px;
  }

  .faq-cta h2 {
    font-size: 23px;
  }

  .faq-cta p {
    font-size: 12px;
  }

  .cta-actions {
    flex-direction: column;
  }

  .support-note {
    margin-top: 26px;
    padding: 16px;
  }

  .support-note p {
    font-size: 12px;
  }

  .support-footer {
    padding: 22px 16px;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {
  .support-page {
    width: min(100% - 16px, 360px);
  }

  .support-workspace {
    padding: 15px;
  }

  .support-card {
    padding: 15px;
  }

  .hero-features span {
    font-size: 9px;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
