/* =========================================
   ToolCanvas — Global Design System
   Clean, light design inspired by random.org
   ========================================= */

/* Limelight font for logo */
@import url('https://fonts.googleapis.com/css2?family=Limelight&display=swap');

/* ---------- CSS Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Custom Properties ---------- */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted: #595959;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e5e5;
  --color-border-light: #f0f0f0;
  --color-badge-coming: #f59e0b;
  --color-badge-coming-bg: #fffbeb;
  --color-badge-active: #10b981;
  --color-badge-active-bg: #ecfdf5;
  --color-danger: #ef4444;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Layout */
  --container-max: 1140px;
  --container-padding: 1.25rem;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ---------- Base ---------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  margin-top: var(--space-2xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  padding: 8px 0 12px 0;
  background: var(--color-bg);
  border-bottom: none;
}

.site-header .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Navigation bar centered at the very top */
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 4px 0 8px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--color-border);
}

.site-nav .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Separator between top-level items */
.site-nav .nav-item::after {
  content: "|";
  color: var(--color-text-muted);
  margin: 0 8px;
  font-weight: normal;
}

.site-nav .nav-item:last-child::after {
  content: "";
  margin: 0;
}

.site-nav .nav-item a {
  font-size: 13px;
  font-weight: 500;
  color: #224499;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .nav-item a:hover,
.site-nav .nav-item a.active {
  color: #000000;
  text-decoration: underline;
}

/* =========================================
   ToolCanvas — Dropdown Hover Styles
   ========================================= */

/* Dropdown Container */
.nav-item.dropdown {
  cursor: pointer;
}

/* Dropdown Menu (Desktop) */
@media (min-width: 769px) {
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 6px 0;
    min-width: 190px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
  }

  .dropdown-menu a {
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155 !important;
    text-decoration: none !important;
    text-align: left;
    display: block;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.15s, color 0.15s;
  }

  .dropdown-menu a:hover {
    background-color: #f1f5f9;
    color: #2563eb !important;
  }

  .dropdown-menu a.soon {
    color: #94a3b8 !important;
    font-style: italic;
    cursor: default;
  }

  .dropdown-menu a.soon:hover {
    background-color: transparent;
    color: #94a3b8 !important;
  }
}


/* Logo and search box layout */
.logo-search-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.site-logo {
  font-size: 40px;
  font-weight: 400;
  font-family: 'Limelight', cursive;
  color: #000000;
  text-decoration: none;
  letter-spacing: -1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-logo:hover {
  text-decoration: none;
  color: #000000;
}

.site-logo span {
  color: #224499;
}

/* Search Box style */
.search-box {
  text-align: right;
  font-size: 12px;
}

.search-box form {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.search-box label {
  color: #333333;
}

.search-box input[type="text"] {
  border: 1px solid #999999;
  padding: 2px 4px;
  font-size: 12px;
  width: 140px;
  outline: none;
}

.search-box button {
  background: #eeeeee;
  border: 1px solid #999999;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
}

.search-box button:hover {
  background: #dddddd;
}

.service-subtitle {
  font-size: 11px;
  color: #666666;
  font-style: italic;
  font-weight: bold;
}

/* Mobile Toggle Styling */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
  outline: none;
}

.nav-toggle .hamburger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #224499;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ---------- Main ---------- */
.site-main {
  padding: 10px 0 30px 0;
  min-height: 60vh;
}

/* ---------- Intro & Widget Section ---------- */
.intro-section {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 20px;
}

.intro-text {
  flex: 1 1 420px;
}

.intro-text h2 {
  font-size: 18px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 12px;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: normal;
}

.intro-text p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #333333;
  margin-bottom: 12px;
}

.widget-container {
  flex: 0 0 250px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .widget-container {
    flex: 1 1 100%;
  }
}

/* ---------- Place Generator Widget ---------- */
.place-widget {
  background: #e8ebf8;
  border: 1px solid #b8b8f0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  width: 100%;
}

.place-widget__header {
  background: #8f8fff;
  color: #000000;
  font-weight: bold;
  text-align: center;
  padding: 4px 6px;
  font-size: 13px;
  border-bottom: 1px solid #b8b8f0;
}

.place-widget__body {
  padding: 10px;
}

.place-widget__row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.place-widget__row label {
  flex: 0 0 70px;
  font-weight: normal;
  color: #000000;
  font-size: 13px;
}

.place-widget__row select,
.place-widget__row input {
  flex: 1;
  border: 1px solid #999999;
  padding: 3px;
  font-size: 12px;
  background: #ffffff;
  outline: none;
}

.place-widget__row input[type="number"] {
  max-width: 60px;
}

.place-widget__button-row {
  margin: 10px 0;
}

.place-widget__button-row button {
  background: #eeeeee;
  border: 1px solid #999999;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}

.place-widget__button-row button:hover {
  background: #dddddd;
}

.place-widget__result-box {
  border: 1px dashed #b8b8f0;
  background: #ffffff;
  padding: 8px;
  min-height: 45px;
  font-size: 13px;
  margin-bottom: 5px;
  max-height: 150px;
  overflow-y: auto;
}

.place-widget__footer {
  font-size: 10px;
  color: #374151;
  text-align: right;
  margin-top: 5px;
}

.place-widget__footer a {
  color: #1e40af;
  text-decoration: underline;
}

/* ---------- Divider / Ruler ---------- */
.ruler {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 15px 0;
}

/* ---------- Service Badges ---------- */
.service-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 2px 4px;
  margin-right: 15px;
  vertical-align: middle;
  border: 1px solid;
  white-space: nowrap;
}

.service-badge--free {
  background-color: #e5ffe5;
  border-color: #15803d;
  color: #166534;
}

.service-badge--soon {
  background-color: #fffae6;
  border-color: #a16207;
  color: #854d0e;
}

/* ---------- Category Block & Lists ---------- */
.category-heading {
  font-size: 16px;
  color: #224499;
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.category-block {
  margin-top: 15px;
  margin-bottom: 25px;
}

.newspaper-list {
  list-style: none;
  padding-left: 20px;
  margin: 8px 0 15px 0;
}

.newspaper-list li {
  margin-bottom: 5px;
  line-height: 1.4;
  font-size: 13px;
  color: #333333;
}

.newspaper-list a {
  font-weight: bold;
  color: #224499;
  text-decoration: none;
}

.newspaper-list a:hover {
  text-decoration: underline;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 var(--space-xs);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-family: var(--font-family);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  text-align: center;
  margin-top: var(--space-2xl);
}

.site-footer p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.site-footer a {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-text);
  color: #ffffff;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 1000;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Ad Placeholder ---------- */
.ad-space {
  text-align: center;
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
  border: 1px dashed var(--color-border-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  display: none; /* Hidden until AdSense is active */
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .logo-search-container {
    align-items: center;
    width: 100%;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-md) var(--container-padding);
    gap: 0;
    z-index: 1000;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-nav .nav-item::after {
    display: none !important;
  }

  .site-nav .nav-item a {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    display: block;
    width: 100%;
  }

  .site-nav .nav-item:last-child a {
    border-bottom: none;
  }

  /* Display dropdown menu inline/nested on mobile */
  .dropdown-menu {
    display: none;
    flex-direction: column;
    padding-left: 15px;
    border-left: 2px solid #cbd5e1;
    margin-bottom: 5px;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .nav-item.dropdown.open-mobile .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    padding: 6px 0 !important;
    font-size: 12px;
    color: #475569 !important;
    border-bottom: none !important;
  }

  .dropdown-menu a.soon {
    color: #94a3b8 !important;
    font-style: italic;
  }


  .site-header .container {
    position: relative;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0.875rem;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ---------- SEO Article & FAQ Layout ---------- */
.tool-article {
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
  padding-top: 36px;
}

.tool-article h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--color-text);
}

.tool-article h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.tool-article p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.tool-article ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.tool-article li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.faq-container {
  margin-top: 16px;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.faq-answer {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

