/*
Theme Name: DestiSeeker Tools
Theme URI: https://destiseeker.com
Author: Zaheer
Description: A lean, tool-focused travel theme. Add tools from WP Admin → Travel Tools → Add New, paste your HTML/CSS/JS in the Tool Code boxes, and they appear on the homepage grid automatically.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: destiseeker
*/

/* ============ Design tokens ============ */
:root {
  --ink: #12233b;        /* deep night navy */
  --ink-soft: #3d4f66;
  --paper: #f5f7fa;      /* pale sky */
  --card: #ffffff;
  --teal: #0e7c7b;       /* primary — ocean teal */
  --teal-dark: #0a5c5b;
  --amber: #f2a541;      /* accent — horizon sun */
  --line: #dde4ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 35, 59, 0.06), 0 8px 24px rgba(18, 35, 59, 0.08);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .site-title {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ============ Header ============ */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}
.site-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-title .dot { color: var(--amber); }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a {
  color: #d8e1ec;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ============ Hero with route line ============ */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); margin: 0 0 14px; max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { color: #b9c6d6; max-width: 540px; margin: 0 0 26px; font-size: 17px; }
/* signature: dashed flight route */
.route-line {
  position: absolute;
  inset: auto -40px -12px -40px;
  height: 120px;
  pointer-events: none;
  opacity: 0.55;
}
.hero-cta {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 10px;
}
.hero-cta:hover { filter: brightness(1.06); }

/* ============ Tool filter ============ */
.tool-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 6px;
}
.tool-filter button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font: 600 13.5px var(--font-body);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.tool-filter button.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* ============ Tool grid ============ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin: 22px 0 60px;
  padding: 0;
  list-style: none;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.tool-card .icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 24px;
  background: rgba(14, 124, 123, 0.09);
  border-radius: 12px;
}
.tool-card h3 { margin: 6px 0 0; font-size: 18px; }
.tool-card h3 a { color: var(--ink); text-decoration: none; }
.tool-card h3 a::after { content: ""; position: absolute; inset: 0; }
.tool-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.tool-card .cat {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.section-heading {
  font-size: 26px;
  margin: 48px 0 4px;
  position: relative;
  display: inline-block;
}
/* dashed route underline on headings */
.section-heading::after {
  content: "";
  display: block;
  margin-top: 6px;
  height: 0;
  border-bottom: 2px dashed var(--amber);
  width: 56px;
}

/* ============ Single tool page ============ */
.tool-hero {
  background: var(--ink);
  color: #fff;
  padding: 38px 0 42px;
}
.tool-hero .crumbs { font-size: 13px; margin-bottom: 10px; }
.tool-hero .crumbs a { color: #9fb2c8; text-decoration: none; }
.tool-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); }
.tool-hero p { color: #b9c6d6; margin: 0; max-width: 640px; }

.tool-stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: -26px auto 40px;
  padding: 26px;
  position: relative;
  z-index: 2;
}
.tool-stage iframe {
  width: 100%;
  border: 0;
  border-radius: 8px;
  display: block;
}
.tool-empty {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-soft);
}

.tool-content {
  max-width: 760px;
  margin: 0 auto 70px;
}
.tool-content h2 { font-size: 24px; margin-top: 40px; }
.tool-content h3 { font-size: 19px; }

/* ============ Blog / pages ============ */
.page-body { max-width: 760px; margin: 40px auto 70px; }
.post-list { list-style: none; padding: 0; display: grid; gap: 16px; margin: 30px 0 60px; }
.post-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.post-list a { font-family: var(--font-display); font-size: 19px; color: var(--ink); text-decoration: none; font-weight: 600; }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #9fb2c8;
  padding: 34px 0;
  font-size: 14px;
  margin-top: auto;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.site-footer a { color: #d8e1ec; }

body { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

@media (max-width: 640px) {
  .main-nav ul { gap: 0; }
  .tool-stage { padding: 16px; }
}
