/*
Theme Name: FutureSEOTools
Theme URI: https://futureseotools.com
Author: FutureSEOTools Team
Author URI: https://futureseotools.com
Description: Official WordPress Theme for FutureSEOTools — 250+ Free SEO, AI, and Technical Webmaster Tools Platform with integrated Blog, Dark/Light mode, and instant client-side/API processing.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: futureseotools
*/


/* === Start of main.css === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Reset & Normalize
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
  /* Colors */
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary: #0f172a;
  --accent: #06b6d4;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Breakpoints (used in custom logic if needed, media queries rely on CSS preprocessor mostly, but here as reference) */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;
  --bp-xxl: 1400px;
}

/* Dark Mode Variables */
html[data-theme='dark'] {
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --surface: #1e293b;
  --surface-alt: #263148;
  
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border: #334155;
  --border-light: #1e293b;
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow: 0 4px 6px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
}

/* ==========================================================================
   Base Typography
   ========================================================================== */
body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 2rem; letter-spacing: -0.025em; }
h3 { font-size: 1.75rem; letter-spacing: -0.025em; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-light);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

ul { list-style: disc; }
ol { list-style: decimal; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: var(--bg-secondary);
  color: var(--accent-purple);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
}

pre {
  background-color: var(--secondary);
  color: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1rem;
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

blockquote {
  border-left: 4px solid var(--primary-light);
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.container-fluid {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }

/* ==========================================================================
   Spacing Utilities
   ========================================================================== */
.m-0 { margin: 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-8 { padding-top: 2rem; }
.pb-8 { padding-bottom: 2rem; }

/* ==========================================================================
   Color & Display Utilities
   ========================================================================== */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.bg-surface { background-color: var(--surface); }
.bg-secondary { background-color: var(--bg-secondary); }

.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

/* ==========================================================================
   Selection & Scrollbar Styles
   ========================================================================== */
::selection {
  background-color: var(--primary-light);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-xs, 4px);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .no-print {
    display: none !important;
  }
  a {
    text-decoration: underline;
    color: #000;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.4s ease-out forwards; }
.animate-slide-down { animation: slideDown 0.4s ease-out forwards; }

/* Responsive Breakpoints Utils */
@media (max-width: 768px) {
  .md-hidden { display: none !important; }
  .md-block { display: block !important; }
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Extended Utilities (FutureSEOTools completion patch)
   ========================================================================== */

/* Container variants */
.container-narrow { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide   { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

/* Sections */
.section    { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 96px 0; }
.section-xs { padding: 24px 0; }

/* Spacing extras */
.mb-3  { margin-bottom: 0.75rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.gap-3 { gap: 0.75rem; }

/* Text sizes */
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }

/* Font weights */
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }

/* Width helpers */
.w-full  { width: 100%; }
.w-auto  { width: auto; }
.max-w-full { max-width: 100%; }

/* Primary pale background */
.primary-pale { background: #eff6ff; }
--primary-pale: #eff6ff;

/* Grid auto-fill */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Hover lift effect */
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Rounded */
.rounded    { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Border */
.border { border: 1px solid var(--border); }

/* Overflow */
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }

/* Prose */
.prose h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p  { line-height: 1.75; margin-bottom: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--text-muted); opacity: 0.5; }

/* Section label chip */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-pale, #eff6ff);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl, 24px);
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Pagination */
.pagination { display: flex; gap: 4px; align-items: center; }
.page-item { display: flex; }
.page-link {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  padding: 0 10px;
}
.page-item.active .page-link,
.page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Tool card base */
.interface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.tool-card-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.tool-card-body { }

/* Result box */
.result-box {
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 16px;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius, 10px);
  font-size: 0.875rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.toast.success { background: #065f46; }
.toast.error   { background: #991b1b; }
.toast.warning { background: #92400e; }
.toast.info    { background: #1e40af; }

/* Tool hero */
.tool-hero { padding: 32px 0 24px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.tool-hero-inner { display: flex; align-items: flex-start; gap: 20px; }
.tool-icon-xl { font-size: 3rem; flex-shrink: 0; line-height: 1; }
.tool-breadcrumb { padding: 12px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.tool-interface-section { padding: 32px 0; }
.tool-meta-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-xl, 24px);
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.badge-info    { background: #eff6ff; color: #1d4ed8; }
.badge-success { background: #f0fdf4; color: #15803d; }
.badge-warning { background: #fff7ed; color: #c2410c; }
.badge-danger  { background: #fef2f2; color: #b91c1c; }
.badge-primary { background: var(--primary); color: #fff; }
.badge-popular { background: #fef9c3; color: #854d0e; }
.badge-new     { background: #f0fdf4; color: #15803d; }
.badge-api     { background: #fdf4ff; color: #7e22ce; }
.badge-category{ background: #f8fafc; color: var(--text-muted); border: 1px solid var(--border); }

/* Stat cards */
.stat-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Buttons extra */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.5;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(30,64,175,0.35); color: #fff; }
.btn-secondary{ background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-outline  { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); border: 1px solid transparent; }
.btn-light:hover { background: var(--bg-secondary); color: var(--primary-dark); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost    { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text); }
.btn-sm  { padding: 7px 14px; font-size: 0.875rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }

/* Card */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Text decoration */
.text-decoration-none { text-decoration: none; }

/* Responsive media */
@media (max-width: 768px) {
  .section    { padding: 40px 0; }
  .section-lg { padding: 56px 0; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .interface-card { padding: 20px 16px; }
}


/* ==========================================================================
   Mobile Responsiveness & Horizontal Scroll Elimination Patch
   ========================================================================== */
html, body {
  /* Prevent horizontal scroll while allowing vertical */
  overflow-x: clip !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* Force everything to stay inside the viewport */
* {
  max-width: 100vw !important;
}

/* Specific overrides for elements that commonly break layouts */
img, video, iframe, pre, code, canvas, svg, table, textarea, input, select {
  max-width: 100% !important;
}

pre, code, p, h1, h2, h3, h4, h5, h6 {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

a, span {
  word-break: break-word;
  overflow-wrap: break-word;
}

pre, code {
  overflow-x: auto !important;
}

.container, .container-fluid, .container-narrow, .container-wide {
  width: 100% !important;
  max-width: 1200px;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Mobile Specific Overrides */
@media (max-width: 768px) {
  html, body {
    font-size: 15px;
  }
  
  .hero-banner {
    padding: 40px 0 32px !important;
  }
  
  .hero-h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }
  
  .hero-p {
    font-size: 1rem !important;
    margin-bottom: 24px !important;
  }

  .hero-search-box {
    margin-bottom: 20px !important;
  }

  .hero-search-input-wrap {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: var(--radius, 10px) !important;
  }

  .hero-search-input-wrap input {
    width: 100% !important;
    padding: 10px !important;
    font-size: 1rem !important;
  }

  .hero-search-btn {
    width: 100% !important;
    padding: 12px !important;
  }

  /* Grid Layouts to 1 column on Mobile */
  .sandbox-grid,
  .aeo-banner-grid,
  .contact-layout,
  .footer-top-inner,
  .mission-grid,
  .audience-breakdown,
  .tools-grid,
  .home-tools-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .sandbox-card {
    padding: 20px 16px !important;
    border-radius: var(--radius-lg, 16px) !important;
  }

  .explorer-nav {
    gap: 6px !important;
    margin-bottom: 20px !important;
  }

  .explorer-tab {
    padding: 8px 14px !important;
    font-size: 0.875rem !important;
  }

  .home-tool-card {
    padding: 16px !important;
    border-radius: var(--radius, 10px) !important;
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }

  .footer-bottom-inner {
    flex-direction: column !important;
    text-align: center !alignment;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}



/* === End of main.css === */

/* === Start of components.css === */
/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: #000;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* Tool Cards */
.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.tool-card .icon-area {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.tool-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.card-featured {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary-light), var(--shadow-md);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

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

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: block;
}

/* ==========================================================================
   Badges / Pills
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  line-height: 1;
}

.badge-primary { background-color: rgba(30, 64, 175, 0.1); color: var(--primary); }
.badge-success { background-color: rgba(16, 185, 129, 0.1); color: var(--accent-green); }
.badge-warning { background-color: rgba(245, 158, 11, 0.1); color: #d97706; }
.badge-danger { background-color: rgba(239, 68, 68, 0.1); color: #dc2626; }
.badge-info { background-color: rgba(6, 182, 212, 0.1); color: var(--accent); }
.badge-popular { background-color: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }

/* ==========================================================================
   Alerts / Notifications
   ========================================================================== */
.alert {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background-color: var(--surface);
}

.alert-success { border-color: var(--accent-green); background-color: rgba(16, 185, 129, 0.05); }
.alert-warning { border-color: #f59e0b; background-color: rgba(245, 158, 11, 0.05); }
.alert-error { border-color: #ef4444; background-color: rgba(239, 68, 68, 0.05); }
.alert-info { border-color: var(--primary-light); background-color: rgba(59, 130, 246, 0.05); }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin: 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}

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

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

/* ==========================================================================
   Search Bar
   ========================================================================== */
.search-bar {
  position: relative;
  display: flex;
  width: 100%;
}

.search-bar input {
  padding-left: 2.5rem;
  border-radius: var(--radius-lg);
}

.search-bar .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: none;
}

/* ==========================================================================
   Tabs
   ========================================================================== */
.tabs {
  margin-bottom: 1.5rem;
}

.tab-list {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 1.5rem;
  overflow-x: auto;
}

.tab {
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
  padding: 1.5rem 0;
}

.tab-panel[aria-hidden="false"] {
  display: block;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ==========================================================================
   Loading States
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 1rem; margin-bottom: 0.5rem; width: 100%; }
.skeleton-card { height: 200px; width: 100%; }

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */
.progress {
  height: 0.5rem;
  background-color: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   Tool Result Panel
   ========================================================================== */
.result-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.result-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-body {
  padding: 1.5rem;
}

.score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  border: 4px solid var(--primary-light);
  color: var(--primary-light);
}

.result-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  gap: 1rem;
}

.result-item-pass { border-left: 4px solid var(--accent-green); }
.result-item-warn { border-left: 4px solid #f59e0b; }
.result-item-fail { border-left: 4px solid #ef4444; }

/* ==========================================================================
   Misc Components
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; max-width: 600px; margin-inline: auto; }
.section-title { font-size: 2.25rem; margin-bottom: 1rem; }

.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  display: none;
}

.hero { padding: 6rem 0; text-align: center; background-color: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.hero-title { font-size: 3.5rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--text); line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 800px; margin: 0 auto 2rem; }
.hero-search { max-width: 600px; margin: 0 auto 2rem; }

.pagination { display: flex; list-style: none; gap: 0.25rem; justify-content: center; }
.page-link { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); }
.page-link:hover, .page-item.active .page-link { background-color: var(--primary); color: #fff; border-color: var(--primary); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { padding: 0.25rem 0.75rem; background-color: var(--bg-secondary); border-radius: 999px; font-size: 0.875rem; color: var(--text-secondary); }

.divider { height: 1px; background-color: var(--border); margin: 2rem 0; position: relative; }
.divider-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: var(--bg); padding: 0 1rem; color: var(--text-muted); font-size: 0.875rem; }

.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-secondary); background-color: var(--bg-secondary); }

.copy-btn { position: relative; }
.copy-btn.copied::after { content: 'Copied!'; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: #000; color: #fff; padding: 4px 8px; border-radius: var(--radius-xs, 4px); font-size: 12px; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.75rem; }
  .modal { max-width: calc(100% - 2rem); }
}



/* === End of components.css === */

/* === Start of header.css === */
/* ====================================================
   FutureSEOTools — Header & Navigation Styles
   ==================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed, 300);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  height: var(--header-height, 70px);
  transition: background 0.3s ease;
}
[data-theme="dark"] .site-header {
  background: rgba(15,23,42,0.97);
  border-bottom-color: var(--border, #334155);
}
.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height, 70px);
  gap: 24px;
}
.header-left { flex-shrink: 0; }
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.03em;
}
.site-logo .logo-icon { font-size: 1.5rem; }
.site-logo strong { color: var(--primary, #1e40af); }
.site-logo:hover { color: var(--text); }

/* ── Desktop Nav ── */
.desktop-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm, 6px);
  white-space: nowrap !important;
  word-break: keep-all !important;
  transition: all 0.15s ease;
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--primary, #1e40af); background: var(--primary-pale, #eff6ff); }
.nav-arrow { font-size: 0.65rem; opacity: 0.6; transition: transform 0.2s; white-space: nowrap !important; }
.nav-item.open .nav-arrow { transform: rotate(180deg); }

/* ── Mega Menu ── */
.mega-menu {
  position: absolute;
  top: calc(var(--header-height, 70px) + 1px);
  left: 0;
  right: 0;
  background: var(--surface, #fff);
  border-bottom: 3px solid var(--primary, #1e40af);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
}
.nav-item.has-mega { position: static; }
.nav-item.open .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 28px 24px 20px;
  gap: 8px;
}
.mega-menu.mega-menu-sm .mega-menu-inner { grid-template-columns: repeat(3, 1fr); }
.mega-col { padding: 0 16px; }
.mega-col + .mega-col { border-left: 1px solid var(--border-light, #f1f5f9); }
.mega-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #e2e8f0);
  white-space: nowrap;
}
.mega-col ul { list-style: none; }
.mega-col ul li { margin-bottom: 2px; }
.mega-col ul a {
  display: block;
  padding: 5px 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-xs, 4px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s;
}
.mega-col ul a:hover { color: var(--primary); background: var(--primary-pale, #eff6ff); }
.mega-menu-footer {
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 12px 24px;
  text-align: center;
  background: var(--bg-secondary, #f8fafc);
}

/* ── Small Dropdown ── */
.nav-item.has-dropdown-sm { position: relative; }
.dropdown-sm {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 200;
}
.nav-item.has-dropdown-sm.open .dropdown-sm { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-sm a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}
.dropdown-sm a:hover { background: var(--primary-pale); color: var(--primary); }

/* ── Header Actions ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
  height: 100%;
}

.header-right > *,
.header-right .search-toggle-btn,
.header-right .icon-btn,
.header-right .btn-primary {
  height: 38px !important;
  max-height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.icon-btn {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px) !important;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.125rem !important;
  line-height: 1 !important;
  transition: all 0.15s;
  color: var(--text-secondary);
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }

.hamburger-btn {
  display: none !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 0 !important;
  width: 38px !important;
  height: 38px !important;
  justify-content: center !important;
  align-items: center !important;
}
.hamburger-btn .bar { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s; margin: 0 auto; }
.hide-mobile { display: inline-flex !important; }

/* Header search */
.header-search-wrap { position: relative; display: inline-flex; align-items: center; }
.search-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px) !important;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.875rem !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.search-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.search-label { display: none; }
@media (min-width: 1024px) { .search-label { display: inline; } }
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.search-overlay-inner {
  display: flex;
  align-items: center;
  background: var(--surface);
  padding: 16px 24px;
  gap: 12px;
  box-shadow: var(--shadow-lg);
}
.search-overlay-inner input {
  flex: 1;
  padding: 14px 16px;
  font-size: 1.125rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.search-close {
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.search-results-dropdown {
  background: var(--surface);
  max-height: 70vh;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  padding: 8px;
}

/* ── Mobile Nav ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 399;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.open { display: block; opacity: 1; }
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: min(340px, 88vw);
  height: 100dvh;
  background: var(--surface);
  z-index: 400;
  overflow-y: auto;
  transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}
.mobile-nav.open { left: 0; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.mobile-nav-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-body { flex: 1; overflow-y: auto; padding: 16px; }
.mobile-search-wrap { margin-bottom: 16px; }
.mobile-search-wrap input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.875rem;
}
.mobile-nav-list { list-style: none; }
.mobile-nav-list a, .mobile-nav-link {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.mobile-nav-list a:hover, .mobile-nav-link:hover { color: var(--primary); background: var(--primary-pale); }
.mobile-nav-section {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 14px 12px 6px;
  margin-top: 6px;
  border-top: 1px solid var(--border-light);
}
body.nav-open { overflow: hidden; }

/* Scroll Top */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 200;
  cursor: pointer;
  border: none;
}
.scroll-top-btn.visible { opacity: 1; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Dark mode */
[data-theme="dark"] .mega-menu,
[data-theme="dark"] .dropdown-sm { background: var(--surface); }

/* Responsive */
@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .hamburger-btn { display: flex; }
  .hide-mobile { display: none; }
}
@media (max-width: 640px) {
  .header-inner { gap: 8px; }
}



/* === End of header.css === */

/* === Start of footer.css === */
/* ====================================================
   FutureSEOTools — Footer Styles
   ==================================================== */
.site-footer {
  background: #0a1628;
  color: rgba(255, 255, 255, 0.9);
  margin-top: auto;
}
.footer-top {
  background: #0f1f3a;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
}
.footer-top-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .footer-top-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo .site-logo { font-size: 1.25rem; }
.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 12px 0 16px;
  max-width: 380px;
}
.footer-contact-info p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 4px; }
.footer-contact-info a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-contact-info a:hover { color: #fff; text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm, 6px);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  transition: all 0.2s;
}
.social-link:hover { background: var(--primary, #1e40af); color: #fff; }
.footer-newsletter h4 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.footer-newsletter p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm, 6px);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.875rem;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--primary); }

.footer-main { padding: 48px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}
@media (max-width: 1200px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.95); }
.footer-links a[href^="→"] { color: rgba(255, 255, 255, 0.5); font-style: italic; }
.footer-links a[href^="→"]:hover { color: var(--accent, #06b6d4); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  background: #080f1e;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom strong { color: rgba(255,255,255,0.7); }
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: rgba(255, 255, 255, 0.9); }



/* === End of footer.css === */

/* === Start of tools.css === */
/* ==========================================================================
   Tool Page Specific Styles
   ========================================================================== */
.tool-page {
  padding-bottom: 4rem;
}

/* Tool Hero */
.tool-hero {
  background-color: var(--bg-secondary);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tool-hero .breadcrumb {
  margin-bottom: 1.5rem;
}

.tool-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
}

.tool-hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 800px;
}

/* Tool Layout */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

@media (max-width: 992px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

/* Tool Interface Main Area */
.tool-interface {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  overflow: hidden;
}

.tool-input-section {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}

.tool-output-section {
  padding: 2rem;
  background-color: var(--surface-alt);
  min-height: 200px;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
}

/* Tool Sidebar */
.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sidebar-widget-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.tool-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.tool-meta-item {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.tool-meta-value {
  font-weight: 600;
  color: var(--text);
}

/* Tool Content Below */
.tool-content {
  margin-top: 4rem;
}

.tool-content-section {
  margin-bottom: 3rem;
}

.tool-content-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.tool-content-section h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.tool-content-section ul, .tool-content-section ol {
  margin-bottom: 1.5rem;
}

.tool-content-section li {
  margin-bottom: 0.5rem;
}

/* Related Tools */
.related-tools-section {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.related-tools-header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Input specific styling */
.url-input-group {
  display: flex;
  position: relative;
}

.url-input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.url-input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ==========================================================================
   Comprehensive Mobile Responsiveness Overrides
   ========================================================================== */
@media (max-width: 768px) {
  .tool-hero {
    padding: 2rem 1rem !important;
  }

  .tool-hero-title {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }

  .tool-hero-desc {
    font-size: 1rem !important;
  }

  .tool-input-section, 
  .tool-output-section {
    padding: 1.25rem 1rem !important;
  }

  .url-input-group {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .url-input-group .form-control,
  .url-input-group .btn {
    border-radius: var(--radius) !important;
    width: 100% !important;
  }

  .tool-actions {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .tool-actions .btn {
    flex: 1 1 calc(50% - 0.5rem) !important;
    font-size: 0.875rem !important;
    padding: 0.6rem 0.75rem !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .tool-interface {
    border-radius: var(--radius) !important;
    margin-bottom: 1.5rem !important;
  }

  .grid-cols-4, 
  .grid-cols-3, 
  .grid-cols-2,
  .md\:grid-cols-4,
  .md\:grid-cols-3,
  .md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  pre, code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-x: auto !important;
    max-width: 100% !important;
  }

  .card, .sidebar-widget {
    padding: 1rem !important;
  }

  /* Prevent horizontal page sway on mobile */
  body, html, main, .tool-page, .container, .hero, .section, .footer, .site-header {
    overflow-x: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}





/* === End of tools.css === */

/* ==========================================================================
   FUTURE SEO TOOLS 4-TILES HERO & GRID ENHANCEMENTS
   ========================================================================== */

/* 4 Tiles in 1 Row in Hero Section */
.hero-four-tiles-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 36px auto 0;
  text-align: left;
}

@media (max-width: 1024px) {
  .hero-four-tiles-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-four-tiles-row {
    grid-template-columns: 1fr;
  }
}

.hero-tile-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero-tile-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.hero-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hero-tile-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.hero-tile-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.hero-tile-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.hero-tile-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.hero-tile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #60a5fa;
  transition: gap 0.2s;
}

.hero-tile-card:hover .hero-tile-btn {
  gap: 10px;
  color: #93c5fd;
}

/* Master Tools Grid: 4 columns on desktop */
.home-tools-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .home-tools-grid-4col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .home-tools-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .home-tools-grid-4col {
    grid-template-columns: 1fr;
  }
}

/* Tool Box / Tile Card */
.tool-tile-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.tool-tile-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.tool-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tool-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-pale, #eff6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.tool-tile-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.tool-tile-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.tool-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light, #f1f5f9);
  padding-top: 12px;
}

.tool-tile-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 3px 10px;
  border-radius: 6px;
}

.tool-tile-link-text {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tool-tile-box:hover .tool-tile-link-text {
  color: var(--primary-light);
}
