/* QuickDNSCheck - shared base layout for tool pages.
   Apple-inspired palette; dark mode handled by dark-mode.css (redefines vars). */

:root {
  --apple-white: #ffffff;
  --apple-gray-50: #f5f5f7;
  --apple-gray-100: #e8e8ed;
  --apple-gray-200: #d2d2d7;
  --apple-gray-300: #86868b;
  --apple-gray-400: #6e6e73;
  --apple-gray-500: #1d1d1f;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-green: #34c759;
  --apple-red: #ff3b30;
  --apple-orange: #ff9500;
  --apple-shadow: rgba(0, 0, 0, 0.1);
  --font-family: -apple-system, 'SF Pro Display', BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: var(--font-family); font-size: 1.6rem; line-height: 1.5;
  color: var(--apple-gray-500); background: var(--apple-white);
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 4rem; font-weight: 700; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 2.4rem; width: 100%; }

/* header */
header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--apple-gray-100); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 5.2rem; }
.logo { font-size: 1.9rem; font-weight: 700; text-decoration: none; color: var(--apple-gray-500); letter-spacing: -.02em; }
.logo span { color: var(--apple-blue); }
nav { margin-left: auto; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 2.4rem; }
.nav-item a { text-decoration: none; color: var(--apple-gray-400); font-size: 1.4rem; transition: color .2s; }
.nav-item a:hover { color: var(--apple-gray-500); }
.language-switcher { display: inline-flex; align-items: center; gap: .4rem; background: none; border: none;
  font-family: inherit; font-size: 1.4rem; color: var(--apple-gray-400); cursor: pointer; }

/* hero */
.hero { text-align: center; padding: 6rem 0 4rem; }
.hero h1 { margin-bottom: 1.2rem; }
.hero-subtitle { font-size: 1.9rem; color: var(--apple-gray-400); max-width: 640px; margin: 0 auto; }
main { flex: 1; }
.section { padding: 2rem 0 5rem; }

/* breadcrumb */
.breadcrumb { font-size: 1.3rem; color: var(--apple-gray-300); padding: 1.6rem 0 0; }
.breadcrumb a { color: var(--apple-blue); text-decoration: none; }

/* content / SEO sections */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 2.8rem; margin: 4rem 0 1.6rem; }
.prose h3 { font-size: 2rem; margin: 2.8rem 0 1rem; }
.prose p { color: var(--apple-gray-400); margin-bottom: 1.4rem; font-size: 1.6rem; }
.prose ul { margin: 0 0 1.6rem 2rem; color: var(--apple-gray-400); }
.prose li { margin-bottom: .6rem; }
.faq-q { font-weight: 600; margin: 2.4rem 0 .6rem; font-size: 1.7rem; }

/* footer */
footer { background: var(--apple-gray-50); padding: 4.8rem 0 2.4rem; margin-top: 4rem; }
.footer-columns { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.footer-description { color: var(--apple-gray-300); font-size: 1.4rem; max-width: 32rem; margin-bottom: 1.6rem; }
.footer-column-title { font-size: 1.5rem; margin-bottom: 1.4rem; }
.footer-links { list-style: none; }
.footer-link { margin-bottom: .9rem; }
.footer-link a { text-decoration: none; color: var(--apple-gray-400); font-size: 1.4rem; }
.footer-link a:hover { color: var(--apple-blue); }
.footer-divider { height: 1px; background: var(--apple-gray-200); margin: 3.2rem 0 2rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.copyright { color: var(--apple-gray-300); font-size: 1.3rem; }
.footer-bottom-links { display: flex; gap: 1.6rem; }
.footer-bottom-link { color: var(--apple-gray-300); font-size: 1.3rem; text-decoration: none; }

/* dark-mode toggle widget */
.dark-mode-toggle { display: inline-flex; align-items: center; gap: .8rem; cursor: pointer; }
.toggle-track { width: 4.4rem; height: 2.4rem; background: var(--apple-gray-200); border-radius: 980px; position: relative; transition: background .2s; }
.toggle-thumb { position: absolute; top: .2rem; left: .2rem; width: 2rem; height: 2rem; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
body.dark-mode .toggle-thumb { transform: translateX(2rem); }
body.dark-mode .toggle-track { background: var(--apple-blue); }
.dark-mode-label { font-size: 1.3rem; color: var(--apple-gray-400); }

@media (max-width: 760px) {
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .nav-menu { gap: 1.4rem; }
  .nav-item:nth-child(2), .nav-item:nth-child(3), .nav-item:nth-child(4) { display: none; }
  h1 { font-size: 3.2rem; }
}
