/* Extracted shared styles for blog pages (from inline CSS)
   Notes:
   - Image paths in HTML/CSS are kept as-is.
   - support.html styles are scoped to html.page-support to avoid affecting article pages.
*/

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1a1d24;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --surface: rgba(0, 0, 0, 0.02);
}

html.dark {
  --bg: #0f1115;
  --card: #161a22;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --accent: #6ea8fe;
  --border: #242a36;
  --surface: rgba(255, 255, 255, 0.03);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.7;
}

#siteHeader {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px) saturate(1.1);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
}

html.dark #siteHeader {
  background: rgba(2, 6, 23, 0.65);
}

#siteHeader.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

html.dark #siteHeader.scrolled {
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  height: 80px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#menuBtn {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

html.dark #menuBtn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

#menuBtn:hover {
  transform: scale(1.02);
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

.container {
  max-width: 780px;
  margin: 60px auto;
  padding: 0 20px;
}

.title {
  font-size: 28px;
  font-weight: 650;
  margin-bottom: 6px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.tags {
  margin-bottom: 18px;
}

.tag {
  display: inline-block;
  border: 1px solid var(--border);
  padding: 4px 10px;
  margin: 2px;
  font-size: 12px;
  border-radius: 999px;
  color: var(--muted);
}

.hero {
  width: 100%;
  border-radius: 10px;
  margin: 20px 0 26px;
}

.content p {
  margin: 14px 0;
}

.content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 20px;
}

.content h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 16px;
}

.content h3[id^="faq-"] {
  scroll-margin-top: 84px;
}

.content img {
  width: 100%;
  border-radius: 8px;
  margin: 14px 0;
}

pre {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  font-size: 13px;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text);
}

.back {
  margin-top: 30px;
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}

/* CTA */
.cta-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 760px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.section h3 {
  margin: 0 0 6px;
}

.section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 8px;
}

.cta-actions .btn {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: rgba(17, 17, 17, 0.1);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  background: #ffffff;
  color: var(--text);
  border-color: rgba(17, 17, 17, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

html.dark .btn-primary {
  background: #f3f4f6;
  color: #111111;
  border-color: #f3f4f6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

html.dark .btn-primary:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

html.dark .btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

@media (max-width: 560px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

html.dark .btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

/* ===== Footer ================= */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.footer-bottom {
  max-width: 1200px;
  margin: 80px auto 32px;
  padding: 32px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    margin-top: 60px;
    gap: 16px;
  }

  .footer-meta {
    justify-content: center;
  }
}

/* ================= Fullscreen Overlay ================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(1.8);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

html.dark .menu-overlay {
  background: rgba(2, 6, 23, 0.98);
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

html.dark .close-btn {
  background: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
  transform: rotate(90deg);
  background: var(--text);
  color: var(--bg);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.menu-link {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.6;
  letter-spacing: -0.02em;
}

.menu-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.menu-link.active {
  opacity: 1;
}

.menu-actions {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.menu-theme-btn {
  padding: 12px 24px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.menu-theme-btn:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  line-height: 0;
}

.theme-icon svg {
  width: 20px;
  height: 20px;
  display: none;
}

html.dark .theme-icon-dark {
  display: block;
}

html:not(.dark) .theme-icon-light {
  display: block;
}

pre {
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}

pre code {
  display: block;
}

/* ===== Scoped: Support page ===== */
html.page-support {
  --bg: #ffffff;
  --text: #0f172a;
  --text-rgb: 15, 23, 42;
  --muted: #475569;
  --border: #e5e7eb;
  --vh: 100vh;
  --primary: #0f172a;

  --surface: rgba(0, 0, 0, 0.02);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

html.dark.page-support.page-support {
  --bg: #020617;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #1e293b;
  --primary: #38bdf8;

  --surface: rgba(255, 255, 255, 0.03);
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 24px 60px rgba(0, 0, 0, 0.55);
}

html.page-support * {
  box-sizing: border-box;
}

html.page-support,
html.page-support body {
  height: 100%;
}

html.page-support body {
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

html.page-support body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: var(--vh);
}

html.page-support a {
  color: inherit;
}

/* ===== Header (same feel as blog/post) ===== */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px) saturate(1.1);

  transition:
    background-color 0.35s ease,
    border-color 0.35s ease;
}

html.dark.page-support #siteHeader {
  background: rgba(2, 6, 23, 0.65);
}

html.page-support #siteHeader.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

html.dark.page-support #siteHeader.scrolled {
  background: rgba(2, 6, 23, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

html.page-support .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

html.page-support .brand {
  display: flex;
  align-items: center;
}

html.page-support .brand img {
  height: 80px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

html.page-support .brand img:hover {
  transform: scale(1.05);
  opacity: 0.95;
}

@media (max-width: 768px) {
  html.page-support .brand img {
    height: 72px;
  }
}

@media (max-width: 480px) {
  html.page-support .brand img {
    height: 64px;
  }
}

html.page-support .nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

html.page-support .nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

html.page-support .nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.page-support .nav a:hover {
  color: var(--text);
}

html.page-support .nav a:hover::after {
  width: 100%;
}

html.page-support .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

html.page-support .actions button {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

html.page-support .actions button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 56px;
}

@media (max-width: 640px) {
  html.page-support .container {
    padding: 0 20px 48px;
  }
}

html.page-support .page-hero {
  margin-top: 96px;
  max-width: 880px;
}

@media (max-width: 640px) {
  html.page-support .page-hero {
    margin-top: 64px;
  }
}

html.page-support .kicker {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

html.page-support h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.08;
  margin: 14px 0 10px;
  font-weight: 720;
}

html.page-support .hero-tagline {
  margin-top: 8px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  font-weight: 520;
  color: var(--muted);
  max-width: 720px;
}

/* ===== Card ===== */
.support-card {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
  max-width: 720px;
}

html.page-support .support-title {
  font-size: 18px;
  font-weight: 750;
  margin: 0 0 8px;
}

html.page-support .support-text {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

html.page-support .support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

html.page-support .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  cursor: pointer;
}

html.page-support .btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

html.page-support .btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

html.dark.page-support .btn.primary {
  background: rgba(56, 189, 248, 0.2);
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.3);
}

html.page-support .hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  html.page-support .support-card {
    padding: 18px;
  }

  html.page-support .support-actions {
    flex-direction: column;
    align-items: stretch;
  }

  html.page-support .support-actions .btn {
    width: 100%;
  }
}

/* ================= Menu Button ================= */
#menuBtn {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

html.dark.page-support #menuBtn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

html.page-support #menuBtn:hover {
  transform: scale(1.02);
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

/* ================= Fullscreen Overlay ================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(1.8);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* Animation hidden state */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

html.dark.page-support .menu-overlay {
  background: rgba(2, 6, 23, 0.98);
}

html.page-support .menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

html.page-support .close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

html.dark.page-support .close-btn {
  background: rgba(255, 255, 255, 0.1);
}

html.page-support .close-btn:hover {
  transform: rotate(90deg);
  background: var(--text);
  color: var(--bg);
}

html.page-support .menu-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

html.page-support .menu-link {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 750;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.6;
  letter-spacing: -0.02em;
}

html.page-support .menu-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

html.page-support .menu-link.active {
  opacity: 1;
}

html.page-support .menu-actions {
  margin-top: 56px;
  display: flex;
  gap: 20px;
  align-items: center;
}

html.page-support .menu-theme-btn {
  padding: 12px 24px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

html.page-support .menu-theme-btn:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

html.page-support .footer-bottom {
  max-width: 1200px;
  margin: 80px auto 32px;
  padding: 32px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

html.page-support .footer-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  html.page-support .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    margin-top: 60px;
    gap: 16px;
  }

  html.page-support .footer-meta {
    justify-content: center;
  }
}

html.page-support .support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  backdrop-filter: blur(10px) saturate(1.2);
}

html.page-support .support-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

html.page-support .support-btn:active {
  transform: translateY(0);
}

.linkyoutube {
  display: block;
  background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
  border-radius: 10px;
  padding: 15px 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  margin-bottom: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2em;
  font-weight: 700;
}

.linkyoutube:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Scroll to top ===== */

.scroll-top-btn {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #111827;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  touch-action: manipulation;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.scroll-top-btn svg {
  width: 34px;
  height: 34px;
  display: block;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
}

.scroll-top-btn:focus-visible {
  outline: none;
}

html.dark .scroll-top-btn {
  color: #ffffff;
}

@media (max-width: 819px) {
  .scroll-top-btn {
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .scroll-top-btn svg {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn {
    transition: none;
  }
}
