/* =========================
   EC Tool of Tools
   Common CSS v2.3 (Cleaned & Unified)
========================= */

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

/* ---- Color Variables ---- */
:root {
  --bg-gradient: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
  --text-color: #222222;
  --subtext-color: #666666;
  --border-color: #eeeeee;
  --card-bg: #ffffff;
}

/* ---- Dark Mode ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-gradient: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
    --text-color: #eeeeee;
    --subtext-color: #aaaaaa;
    --border-color: #333333;
    --card-bg: #1a1a1a;
  }
}

/* ---- Base ---- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.8;
  background: var(--bg-gradient);
  color: var(--text-color);
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* ---- Layout ---- */
main {
  padding: 48px 0 80px;
}

/* ---- Headings ---- */
h1, h2, h3 {
  font-weight: 600;
}

h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 40px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 20px;
  margin-top: 60px;
  margin-bottom: 20px;
}

p {
  margin-bottom: 18px;
}

/* ---- Hero ---- */
.hero {
  max-width: 720px;
  margin-bottom: 64px;
}

.sub-lead {
  margin-top: 0;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--subtext-color);
}

/* ---- Header ---- */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.logo a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-color);
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--subtext-color);
  font-size: 14px;
}

nav a:hover {
  color: var(--text-color);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 12px;
  color: var(--subtext-color);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--subtext-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- Tool Grid ---- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* ---- Tool Card ---- */
.tool-card {
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* ---- Footer ---- */
footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--subtext-color);
}

/* ---- Feedback ---- */
.form-wrapper iframe {
  width: 100%;
  min-height: 1200px;
  border: none;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  body {
    padding: 20px 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
  }

  main {
    padding: 32px 0 60px;
  }
}