/* ============================================
   WorkSavvyTools – Global Stylesheet
   Refreshed UI – Clean, modern, polished
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-primary-soft: rgba(37, 99, 235, 0.08);
  --color-secondary: #0f172a;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-success: #16a34a;
  --color-success-bg: #f0fdf4;
  --color-danger: #ef4444;
  --gradient-hero: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #0f172a 100%
  );
  --gradient-cta: linear-gradient(
    135deg,
    #1e40af 0%,
    #2563eb 50%,
    #3b82f6 100%
  );
  --gradient-card-hover: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.02) 0%,
    rgba(37, 99, 235, 0.06) 100%
  );
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --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 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-card-hover:
    0 12px 28px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.04);
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
  --max-width: 1200px;
}

/* ---------- LUCIDE ICONS ---------- */
.lucide-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  stroke-width: 2;
}

/* Icon sizing in specific contexts */
.cat-icon .lucide-icon {
  width: 20px;
  height: 20px;
}

.card-icon .lucide-icon {
  width: 22px;
  height: 22px;
}

.why-icon .lucide-icon {
  width: 28px;
  height: 28px;
}

.upload-icon .lucide-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.privacy-icon .lucide-icon {
  width: 18px;
  height: 18px;
}

.badge-icon .lucide-icon {
  width: 14px;
  height: 14px;
}

.search-icon .lucide-icon {
  width: 18px;
  height: 18px;
}

.footer-logo-icon .lucide-icon {
  width: 20px;
  height: 20px;
}

.footer-col h4 .lucide-icon,
.footer-info-block h4 .lucide-icon {
  width: 16px;
  height: 16px;
}

.cta-btn .lucide-icon {
  width: 16px;
  height: 16px;
}

.cta-trust .lucide-icon {
  width: 14px;
  height: 14px;
}

.btn-primary .lucide-icon,
.btn-secondary .lucide-icon,
.btn-download .lucide-icon {
  width: 16px;
  height: 16px;
}

.file-info-icon .lucide-icon {
  width: 20px;
  height: 20px;
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- HEADER ---------- */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
  transition: all var(--transition);
}

.logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  letter-spacing: -0.5px;
  transition: all var(--transition);
}

.logo:hover .logo-icon {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

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

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 50px;
  transition: all var(--transition);
}

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

nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  font-weight: 600;
}

/* ---------- HERO SECTION ---------- */
.hero {
  background: var(--gradient-hero);
  text-align: center;
  padding: 72px 24px 56px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(37, 99, 235, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: -0.8px;
  line-height: 1.15;
  position: relative;
}

.hero p {
  font-size: 17px;
  color: #94a3b8;
  margin: 0 auto 32px;
  line-height: 1.7;
  max-width: 560px;
  position: relative;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.hero-badge .badge-icon {
  font-size: 14px;
}

/* ---------- SEARCH BAR ---------- */
.search-box {
  text-align: center;
  margin-bottom: 10px;
  position: relative;
}

.search-wrapper {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-size: 15px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
  font-family: inherit;
  color: #ffffff;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.2),
    0 4px 24px rgba(0, 0, 0, 0.15);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
  position: relative;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  letter-spacing: -0.5px;
}

.hero-stat .stat-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

/* ---------- MAIN CONTAINER ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
}

/* ---------- SECTION INTRO (homepage) ---------- */
.section-intro {
  text-align: center;
  padding: 52px 24px 16px;
  max-width: 700px;
  margin: 0 auto;
}

.section-intro h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.section-intro p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- CATEGORY SECTIONS ---------- */
.category {
  margin-bottom: 48px;
}

main > .category:first-child {
  margin-top: 36px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-border);
}

.category-header .cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.category-header .cat-icon.text {
  background: #eff6ff;
}
.category-header .cat-icon.data {
  background: #f0fdf4;
}
.category-header .cat-icon.workflow {
  background: #fef3c7;
}
.category-header .cat-icon.platform {
  background: #fce7f3;
}
.category-header .cat-icon.dev {
  background: #f0f9ff;
}
.category-header .cat-icon.converters {
  background: #faf5ff;
}
.category-header .cat-icon.pdf {
  background: #fef2f2;
}

.category h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--color-secondary);
  flex: 1;
}

.category-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-bg);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
}

/* ---------- TOOL GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ---------- TOOL CARDS ---------- */
.grid a {
  background: var(--color-surface);
  padding: 22px;
  text-decoration: none;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.grid a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.grid a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.2);
}

.grid a:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
}

.card-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}
.card-icon.green {
  background: #f0fdf4;
  color: #16a34a;
}
.card-icon.orange {
  background: #fff7ed;
  color: #ea580c;
}
.card-icon.purple {
  background: #f5f3ff;
  color: #7c3aed;
}
.card-icon.pink {
  background: #fdf2f8;
  color: #db2777;
}
.card-icon.teal {
  background: #f0fdfa;
  color: #0d9488;
}
.card-icon.red {
  background: #fef2f2;
  color: #dc2626;
}

.card-content {
  flex: 1;
  min-width: 0;
  position: relative;
}

.card-content .card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.grid a:hover .card-title {
  color: var(--color-primary);
}

.card-content .card-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---------- WHY SECTION (homepage features) ---------- */
.why-section {
  padding: 64px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.why-section h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.why-section > p {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0 auto 40px;
  max-width: 560px;
}

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

.why-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition-slow);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.why-card .why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.why-card:nth-child(1) .why-icon {
  background: #f0fdf4;
}
.why-card:nth-child(2) .why-icon {
  background: #eff6ff;
}
.why-card:nth-child(3) .why-icon {
  background: #fef3c7;
}
.why-card:nth-child(4) .why-icon {
  background: #fdf2f8;
}
.why-card:nth-child(5) .why-icon {
  background: #f0fdfa;
}
.why-card:nth-child(6) .why-icon {
  background: #faf5ff;
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 8px;
}

.why-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- HOMEPAGE FAQ ---------- */
.home-faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
}

.home-faq h2 {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.home-faq > p {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 0 0 32px;
}

.home-faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all var(--transition);
}

.home-faq details[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border-hover);
}

.home-faq summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition);
}

.home-faq summary:hover {
  color: var(--color-primary);
}

.home-faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-light);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.home-faq details[open] summary::after {
  content: "−";
  color: var(--color-primary);
}

.home-faq summary::-webkit-details-marker {
  display: none;
}

.home-faq details p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  background: var(--gradient-cta);
  border-radius: var(--radius-2xl);
  padding: 56px 40px;
  text-align: center;
  max-width: calc(var(--max-width) - 48px);
  margin: 20px auto 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
  position: relative;
}

.cta-banner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 28px;
  max-width: 520px;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.cta-btn-light {
  background: #ffffff;
  color: var(--color-primary);
}

.cta-btn-light:hover {
  background: #f0f7ff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.cta-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
  position: relative;
}

.cta-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ---------- TOOL PAGE LAYOUT ---------- */
.tool-container {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 24px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

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

.breadcrumb .sep {
  color: var(--color-text-light);
}

.tool-container h1 {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-secondary);
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.subtitle {
  color: var(--color-text-muted);
  margin: 0 0 24px;
  font-size: 16px;
}

/* ---------- TOOL CARD (wrapper for tool UI) ---------- */
.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

/* ---------- TEXTAREA ---------- */
.textarea-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.textarea-wrapper label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  height: 180px;
  padding: 16px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  resize: vertical;
  transition: all var(--transition);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

textarea::placeholder {
  color: var(--color-text-light);
}

.textarea-counter {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.textarea-counter span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  background: var(--color-surface);
}

/* ---------- OPTIONS (checkboxes, toggles) ---------- */
.tool-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.tool-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}

.tool-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ---------- BUTTONS ---------- */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

.btn-danger {
  background: var(--color-surface);
  color: var(--color-danger);
  border: 1px solid var(--color-border);
}

.btn-danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

/* ---------- FILE UPLOAD ZONE ---------- */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-bg);
  margin-bottom: 0;
}

.upload-zone:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.upload-zone.drag-over {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.upload-text {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.upload-text strong {
  color: var(--color-primary);
}

.upload-formats {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.3px;
}

/* ---------- FILE INFO BAR ---------- */
.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  margin-top: 12px;
  margin-bottom: 0;
}

.file-info-details {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.file-info-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.file-info-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-info-size {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.btn-remove-file {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  line-height: 1;
}

.btn-remove-file:hover {
  background: #fef2f2;
  color: var(--color-danger);
}

/* ---------- INPUT DIVIDER ---------- */
.input-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  color: var(--color-text-light);
  font-size: 13px;
}

.input-divider::before,
.input-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ---------- DOWNLOAD SECTION ---------- */
.download-section {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-success-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  margin-top: 16px;
  flex-wrap: wrap;
}

.download-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.download-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-download {
  padding: 8px 16px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-download:hover {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

/* ---------- STATUS / TOAST ---------- */
.status-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-secondary);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-xl);
}

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

/* ---------- SEO CONTENT ---------- */
.seo-content {
  margin-top: 12px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}

.seo-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 24px 0 12px;
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 12px;
}

.seo-content p:last-child {
  margin-bottom: 0;
}

.seo-content ul,
.seo-content ol {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 20px;
  margin: 0 0 12px;
}

.seo-content ol {
  padding-left: 24px;
}

.seo-content li {
  margin-bottom: 4px;
}

/* Example blocks */
.seo-example {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 12px 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.seo-example strong {
  color: var(--color-secondary);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

/* FAQ section */
.seo-faq {
  margin: 12px 0;
}

.seo-faq details {
  border-bottom: 1px solid var(--color-border);
}

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

.seo-faq summary {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seo-faq summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-light);
  transition: transform 0.2s;
}

.seo-faq details[open] summary::after {
  content: "−";
}

.seo-faq summary::-webkit-details-marker {
  display: none;
}

.seo-faq details p {
  padding: 0 0 14px;
  margin: 0;
}

/* Related tools links */
.seo-related-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
}

.seo-related-tools a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.seo-related-tools a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Privacy notice */
.seo-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #166534;
}

.seo-privacy .privacy-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ---------- PREV / NEXT TOOL NAV ---------- */
.tool-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 860px;
  margin: 40px auto 0;
  padding: 0 24px;
  gap: 16px;
}

.tool-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: all var(--transition-slow);
  max-width: 45%;
  box-shadow: var(--shadow-xs);
}

.tool-nav a:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-nav .nav-prev .nav-arrow,
.tool-nav .nav-next .nav-arrow {
  font-size: 18px;
  line-height: 1;
  color: var(--color-primary);
}

.tool-nav .nav-prev .nav-label,
.tool-nav .nav-next .nav-label {
  display: flex;
  flex-direction: column;
}

.tool-nav .nav-label small {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-nav .nav-label span {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 600;
}

.tool-nav .nav-next {
  margin-left: auto;
  text-align: right;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--color-secondary);
  margin-top: 48px;
  color: #cbd5e1;
}

.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 18px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand h3 .footer-logo-icon {
  font-size: 22px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0 0 20px;
  max-width: 360px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-info {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-info-block h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-info-block p {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.footer-info-block a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-info-block a:hover {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
}

.footer-bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom .footer-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom .footer-tagline .heart {
  color: #ef4444;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat .stat-number {
    font-size: 22px;
  }

  .header-inner {
    height: 56px;
  }

  .logo {
    font-size: 18px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

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

  .tool-card {
    padding: 20px;
  }

  .tool-container h1 {
    font-size: 24px;
  }

  .buttons {
    flex-direction: column;
  }

  button {
    width: 100%;
    justify-content: center;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .section-intro h2,
  .why-section h2,
  .home-faq h2 {
    font-size: 24px;
  }

  .cta-banner {
    padding: 40px 20px;
    margin: 20px 16px 0;
    border-radius: var(--radius-xl);
  }

  .cta-banner h2 {
    font-size: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .tool-nav {
    flex-direction: column;
    gap: 10px;
  }

  .tool-nav a {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 36px 16px 32px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .search-box input {
    padding: 14px 14px 14px 42px;
    font-size: 14px;
  }

  .tool-options {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  nav {
    display: none;
  }
}

/* ---------- COOKIE CONSENT BANNER ---------- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-secondary);
  color: #fff;
  z-index: 9999;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}
.cookie-consent-inner {
  max-width: 960px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-consent-inner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
}
.cookie-consent-buttons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ---------- AD PLACEHOLDER SLOTS ---------- */
.ad-slot {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  font-size: 0.8rem;
  margin: 24px auto;
  max-width: 728px;
  overflow: hidden;
}
.ad-slot-sidebar {
  max-width: 300px;
  min-height: 250px;
}
.ad-slot--live {
  /* When ads are live, remove placeholder styling */
  background: transparent;
  border: none;
  color: transparent;
  font-size: 0;
  min-height: 0;
}
