/* ==========================================================================
   EasyToolsGo / FreeTools Clone - Modern Responsive Stylesheet
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Light Theme */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;
  
  --border-subtle: #e2e8f0;
  --border-focus: #6366f1;
  --border-hover: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.15);

  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --header-height: 86px;
  --max-width: 1240px;

  /* Aliases for tool workspace compatibility */
  --bg: var(--bg-surface);
  --card-bg: var(--bg-surface);
  --border: var(--border-subtle);
  --radius: var(--radius-md);
}

[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-elevated: #1a243c;
  --bg-subtle: #192238;
  --bg-muted: #24314c;

  --border-subtle: #24334d;
  --border-focus: #818cf8;
  --border-hover: #364869;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-light: rgba(99, 102, 241, 0.15);
  --primary-glow: rgba(99, 102, 241, 0.25);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);

  --bg: var(--bg-surface);
  --card-bg: var(--bg-surface);
  --border: var(--border-subtle);
  --radius: var(--radius-md);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-glow), transparent 70%),
    radial-gradient(circle at 100% 40%, rgba(6, 182, 212, 0.05), transparent 40%);
  background-attachment: fixed;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Navbar (FreeTools Style)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

[data-theme="dark"] .site-header {
  background-color: rgba(11, 15, 25, 0.85);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 52px;
  max-height: 58px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.04);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  position: relative;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-home-link {
  font-size: 0.925rem;
  font-weight: 650;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-home-link:hover, .nav-home-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 1100;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-top-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.mobile-nav-top-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   Tools Dropdown & Mega Menu (Dev Menüsü)
   ========================================================================== */
.nav-item-dropdown {
  position: static;
  flex-shrink: 0;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 650;
  color: var(--text-secondary);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.dropdown-toggle:hover,
.nav-item-dropdown:hover .dropdown-toggle,
.dropdown-toggle[aria-expanded="true"] {
  color: var(--primary);
  background: var(--primary-light);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .dropdown-chevron,
.dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

/* Mega Menu Container */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1200;
  overflow: hidden;
}

[data-theme="dark"] .mega-menu {
  background: #0f1629;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 56px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.nav-item-dropdown:hover .mega-menu,
.nav-item-dropdown:focus-within .mega-menu,
.mega-menu.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-inner {
  padding: 1.5rem 1.75rem 1.25rem;
}

.mega-menu-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mega-menu-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.mega-menu-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-category-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--border-subtle);
}

.mega-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mega-link-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.mega-link-item:hover {
  background: var(--bg-subtle);
  transform: translateX(3px);
}

.mega-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.mega-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.mega-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.mega-link-item:hover .mega-item-title {
  color: var(--primary);
}

.mega-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.mega-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mega-footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.mega-all-tools-link {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}

.mega-all-tools-link:hover {
  gap: 0.5rem;
}

/* ==========================================================================
   Header Top Search Bar (Arama Kutusu - Full Width / Boydan Boya)
   ========================================================================== */
.header-search-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 140px;
}

.nav-search-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  transition: all 0.2s ease;
  width: 100%;
}

.nav-search-box:focus-within {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.nav-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.nav-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.925rem;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.nav-search-input::placeholder {
  color: var(--text-muted);
}

.nav-search-shortcut {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

/* Live Search Dropdown */
.nav-search-results,
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: 440px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.08);
  padding: 0.5rem;
  z-index: 1300;
}

[data-theme="dark"] .nav-search-results,
[data-theme="dark"] .search-dropdown {
  background: #111728;
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-search-group-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  padding: 0.5rem 0.6rem 0.25rem;
}

.nav-search-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-search-item:hover, .nav-search-item.highlighted {
  background: var(--bg-subtle);
}

.nav-search-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-search-item-details {
  flex: 1;
  min-width: 0;
}

.nav-search-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.nav-search-item:hover .nav-search-item-title {
  color: var(--primary);
}

.nav-search-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.nav-search-item-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.nav-search-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme Toggle Button - Crystal Clear & Colorful */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  background: var(--bg-subtle);
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.18);
}

/* Light Mode: Moon Icon (Solid Indigo, high-contrast) */
.theme-icon-moon {
  display: block;
  width: 22px;
  height: 22px;
  color: #4f46e5;
  fill: #4f46e5;
  stroke: #4f46e5;
  filter: drop-shadow(0 1px 3px rgba(79, 70, 229, 0.3));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode: Sun Icon (Radiant Golden Sun with filled core) */
.theme-icon-sun {
  display: none;
  width: 22px;
  height: 22px;
  color: #f59e0b;
  fill: #f59e0b;
  stroke: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.65));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  border-color: #f59e0b;
  background: rgba(45, 58, 82, 0.95);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}

.theme-toggle-btn:hover .theme-icon-moon {
  transform: rotate(-18deg) scale(1.12);
}

.theme-toggle-btn:hover .theme-icon-sun {
  transform: rotate(45deg) scale(1.15);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--primary);
  font-size: 0.815rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.08);
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 860px;
  margin: 0 auto 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Search Bar in Hero */
.search-container {
  max-width: 640px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.25s ease;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.search-icon {
  color: var(--text-muted);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  display: none;
  padding: 0.25rem;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

.search-kbd {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-left: 0.5rem;
}

/* Category Filters (Pills) */
.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.filter-pill .count {
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.08);
}

.filter-pill.active .count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   Tools Grid Section (FreeTools Style)
   ========================================================================== */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   Popular Online Utilities - Enhanced Colorful & Animated Cards
   ========================================================================== */

@keyframes shimmerTopBar {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* ==========================================================================
   Tool Card Color Palettes (Inspired by EkosistemTürk Design System)
   ========================================================================== */
.palette-magenta,
.tool-card:nth-child(12n+1) {
  --card-color: #C20ABF;
  --card-rgb: 194, 10, 191;
  --card-gradient: linear-gradient(135deg, #C20ABF 0%, #E026DC 100%);
}

.palette-blue,
.tool-card:nth-child(12n+2) {
  --card-color: #1094f6;
  --card-rgb: 16, 148, 246;
  --card-gradient: linear-gradient(135deg, #1094f6 0%, #00c6ff 100%);
}

.palette-red,
.tool-card:nth-child(12n+3) {
  --card-color: #ef4444;
  --card-rgb: 239, 68, 68;
  --card-gradient: linear-gradient(135deg, #ef4444 0%, #ff7b7b 100%);
}

.palette-emerald,
.tool-card:nth-child(12n+4) {
  --card-color: #10b981;
  --card-rgb: 16, 185, 129;
  --card-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.palette-orange,
.tool-card:nth-child(12n+5) {
  --card-color: #f97316;
  --card-rgb: 249, 115, 22;
  --card-gradient: linear-gradient(135deg, #f97316 0%, #facc15 100%);
}

.palette-purple,
.tool-card:nth-child(12n+6) {
  --card-color: #8b5cf6;
  --card-rgb: 139, 92, 246;
  --card-gradient: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
}

.palette-cyan,
.tool-card:nth-child(12n+7) {
  --card-color: #06b6d4;
  --card-rgb: 6, 182, 212;
  --card-gradient: linear-gradient(135deg, #06b6d4 0%, #38bdf8 100%);
}

.palette-rose,
.tool-card:nth-child(12n+8) {
  --card-color: #e11d48;
  --card-rgb: 225, 29, 72;
  --card-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.palette-teal,
.tool-card:nth-child(12n+9) {
  --card-color: #0d9488;
  --card-rgb: 13, 148, 136;
  --card-gradient: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
}

.palette-indigo,
.tool-card:nth-child(12n+10) {
  --card-color: #4f46e5;
  --card-rgb: 79, 70, 229;
  --card-gradient: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
}

.palette-amber,
.tool-card:nth-child(12n+11) {
  --card-color: #d97706;
  --card-rgb: 217, 119, 6;
  --card-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
}

.palette-violet,
.tool-card:nth-child(12n+12) {
  --card-color: #7c3aed;
  --card-rgb: 124, 58, 237;
  --card-gradient: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
}

.tool-card {
  --card-color: #4f46e5;
  --card-rgb: 79, 70, 229;
  --card-gradient: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.075) 0%, rgba(var(--card-rgb), 0.015) 100%), var(--bg-surface);
  border: 1px solid rgba(var(--card-rgb), 0.18);
  border-radius: 20px;
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -6px rgba(var(--card-rgb), 0.12);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-width: 0;
  box-sizing: border-box;
  animation: cardEntrance 0.35s ease-out backwards;
}

/* Elegant top colorful solid / gradient accent bar (as in EkosistemTürk) */
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-gradient);
  opacity: 0.85;
  transition: opacity 0.3s ease, height 0.3s ease;
  z-index: 2;
}

.tool-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.13) 0%, rgba(var(--card-rgb), 0.035) 100%), var(--bg-surface);
  border-color: rgba(var(--card-rgb), 0.45);
  box-shadow: 0 16px 36px -10px rgba(var(--card-rgb), 0.28),
              0 4px 14px -5px rgba(var(--card-rgb), 0.18);
}

.tool-card:hover::before {
  height: 6px;
  opacity: 1;
}

/* Watermark background icon on bottom-right corner */
.tool-card-watermark {
  position: absolute;
  right: -15px;
  bottom: -20px;
  color: var(--card-color);
  opacity: 0.10;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-card-watermark svg {
  width: 96px !important;
  height: 96px !important;
  stroke-width: 1.5;
}

.tool-card:hover .tool-card-watermark {
  opacity: 0.22;
  transform: scale(1.15) rotate(-8deg);
  color: var(--card-color);
}

/* Dark mode styling */
[data-theme="dark"] .tool-card {
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.16) 0%, rgba(var(--card-rgb), 0.04) 100%), #141c2e;
  border-color: rgba(var(--card-rgb), 0.26);
  box-shadow: 0 4px 20px -6px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .tool-card:hover {
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.24) 0%, rgba(var(--card-rgb), 0.07) 100%), #18233b;
  border-color: rgba(var(--card-rgb), 0.65);
  box-shadow: 0 16px 38px -8px rgba(var(--card-rgb), 0.36),
              0 0 24px rgba(var(--card-rgb), 0.16);
}

[data-theme="dark"] .tool-card-watermark {
  opacity: 0.07;
}

[data-theme="dark"] .tool-card:hover .tool-card-watermark {
  opacity: 0.18;
}

/* Card Header Layout */
.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  min-height: 52px;
  position: relative;
  z-index: 1;
}

/* Icon Wrapper with Dynamic Palette */
.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, rgba(var(--card-rgb), 0.16) 0%, rgba(var(--card-rgb), 0.06) 100%) !important;
  color: var(--card-color) !important;
  border: 1px solid rgba(var(--card-rgb), 0.26);
  box-shadow: 0 2px 8px rgba(var(--card-rgb), 0.12);
  position: relative;
  z-index: 1;
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.12) rotate(-4deg);
  background: var(--card-gradient) !important;
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 8px 24px -2px rgba(var(--card-rgb), 0.42);
}

/* Badge with Palette Color */
.tool-badge {
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  background: rgba(var(--card-rgb), 0.12) !important;
  color: var(--card-color) !important;
  border: 1px solid rgba(var(--card-rgb), 0.25) !important;
  transition: transform 0.25s ease;
  position: relative;
  z-index: 1;
  box-shadow: none !important;
}

.tool-card:hover .tool-badge {
  transform: scale(1.06);
}

/* Tool Title */
.tool-title {
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.35;
  min-height: 3.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
  position: relative;
  z-index: 1;
}

.tool-card:hover .tool-title {
  color: var(--card-color);
}

/* Tool Description */
.tool-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  min-height: 4.05rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

/* Interactive Tag Chips */
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  min-height: 2.2rem;
  align-content: flex-start;
  position: relative;
  z-index: 1;
}

.tool-tag {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 7px;
  background: rgba(var(--card-rgb), 0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(var(--card-rgb), 0.16);
  transition: all 0.2s ease;
}

.tool-card:hover .tool-tag {
  background: rgba(var(--card-rgb), 0.12);
  border-color: rgba(var(--card-rgb), 0.35);
  color: var(--card-color);
  transform: translateY(-1px);
}

/* Card Footer & Action Button */
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--card-rgb), 0.14);
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.tool-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 750;
  color: var(--card-color);
  transition: all 0.25s ease;
}

.tool-action-btn svg {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-card:hover .tool-action-btn svg {
  transform: translateX(4px);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  display: none;
}

.no-results.visible {
  display: block;
}


/* ==========================================================================
   Features Highlight (Why Us - FreeTools Style)
   ========================================================================== */
.features-section {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--border-subtle);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.feature-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   FAQ Section (FreeTools Accordion Style)
   ========================================================================== */
.faq-section {
  padding: 4rem 0 6rem;
  border-top: 1px solid var(--border-subtle);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  max-width: 320px;
  margin: 1rem 0 1.25rem;
  line-height: 1.6;
}

.footer-links-title {
  font-size: 0.925rem;
  font-weight: 750;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Dedicated Tool Page Styles (Breadcrumb, Tool Shell & Full Width Workspaces)
   ========================================================================== */
.tool-shell-header {
  padding: 2.5rem 0 1.5rem;
  width: 100%;
}

.tool-shell-header h1 {
  width: 100%;
}

.tool-shell-header p {
  width: 100%;
  max-width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.tool-app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

/* Ensure all tool workspaces match the exact top navbar container width */
.conv-workspace,
.temp-workspace,
.audio-workspace,
.case-workspace,
.color-workspace,
.comp-workspace,
.diff-workspace,
.fg-workspace,
.hash-workspace,
.lorem-workspace,
.md-workspace,
.pwd-workspace,
.qr-workspace,
.url-workspace,
.uuid-workspace,
.base-grid,
.exif-layout,
.editor-grid,
.counter-stats,
.input-box-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 1080px) {
  .mega-menu {
    width: 780px;
  }
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .header-search-wrap {
    flex: 0 1 200px;
  }
  .nav-search-shortcut {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 0.75rem;
  }

  .brand-badge {
    display: none;
  }

  .brand-logo {
    height: 42px;
  }

  .nav-home-link {
    display: none;
  }

  .header-inner > .nav-item-dropdown {
    display: none;
  }

  .header-search-wrap {
    flex: 1;
    max-width: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    box-shadow: var(--shadow-xl);
    z-index: 1100;
  }

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

  .nav-item-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: var(--bg-subtle);
  }

  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
    border-radius: var(--radius-md);
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mega-menu.is-active,
  .nav-item-dropdown.open .mega-menu {
    display: block;
  }

  .mega-menu-inner {
    padding: 1rem;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mega-footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-section {
    padding: 3rem 0 2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Toast Notification System (Category B)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-message {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

[data-theme="dark"] .toast-message {
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.toast-message.toast-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   Related Tools Recommendation Section (Category B)
   ========================================================================== */
.related-tools-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.related-tools-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

[data-theme="dark"] .back-to-top-btn {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .back-to-top-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.5);
}

@media (max-width: 640px) {
  .back-to-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Universal Form, Button & Layout Helpers for Tool Workspaces
   ========================================================================== */
.form-control {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 750;
  font-size: 0.925rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--primary-glow);
}

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

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.825rem;
  border-radius: var(--radius-sm);
}

.code-editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .code-editor-layout {
    grid-template-columns: 1fr !important;
  }
}

.tool-guide {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
}

.tool-guide h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.tool-guide p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}



