/* =========================================================
   ToolTanks.com — Main Stylesheet
   Custom styles complementing Tailwind CSS
   ========================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --blue:    #2563EB;
  --blue-d:  #1D4ED8;
  --blue-l:  #DBEAFE;
  --purple:  #7C3AED;
  --purple-d:#6D28D9;
  --purple-l:#EDE9FE;
  --gray-bg: #F8FAFC;
  --white:   #FFFFFF;
  --text:    #1E293B;
  --muted:   #64748B;
  --border:  #E2E8F0;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(37,99,235,.10);
  --shadow-lg: 0 12px 48px rgba(37,99,235,.16);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.25;
  font-weight: 700;
}

/* ── Gradient Text ── */
.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, var(--purple) 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-full {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,.45);
}

.btn-primary:hover::after { background: rgba(255,255,255,.08); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: transparent;
  color: var(--blue);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  border: 2px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
}

.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary-purple {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  background: transparent;
  color: var(--purple);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 50px;
  border: 2px solid var(--purple);
  cursor: pointer;
  text-decoration: none;
  transition: all .25s ease;
}

.btn-secondary-purple:hover {
  background: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Section Titles ── */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: .5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Upload Zone ── */
.upload-zone {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(37,99,235,.18);
}

.upload-zone-inner {
  border: 2.5px dashed var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s ease;
  background: linear-gradient(135deg, rgba(219,234,254,.3) 0%, rgba(237,233,254,.3) 100%);
}

.upload-zone-inner:hover,
.upload-zone-inner.drag-active {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(219,234,254,.6) 0%, rgba(237,233,254,.6) 100%);
  transform: scale(1.005);
}

.drag-active {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15) !important;
}

/* ── Tool Cards ── */
.tool-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.tool-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.tool-card:hover::before { transform: scaleX(1); }

/* ── Benefit / Feature Cards ── */
.benefit-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all .25s ease;
}

.benefit-card:hover {
  border-color: var(--blue-l);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-card {
  background: linear-gradient(135deg, var(--gray-bg) 0%, #fff 100%);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all .25s ease;
}

.feature-card:hover {
  border-color: var(--purple-l);
  box-shadow: 0 8px 32px rgba(124,58,237,.12);
  transform: translateY(-3px);
}

/* ── Blog Cards ── */
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all .25s ease;
}

.blog-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── FAQ ── */
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}

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

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  transition: background .2s;
}

.faq-trigger:hover { background: var(--gray-bg); }
.faq-item.open .faq-trigger { background: var(--blue-l); color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
  font-size: .8rem;
}

.faq-item.open .faq-icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 1.5rem;
}

.faq-body p {
  padding: .75rem 0 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Navigation ── */
.nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: .92rem;
  color: var(--text);
  text-decoration: none;
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: all .2s;
}

.nav-link:hover { color: var(--blue); background: var(--blue-l); }
.nav-link-active { color: var(--blue) !important; background: var(--blue-l) !important; }

.mobile-nav-link {
  display: block;
  padding: .85rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  transition: all .2s;
}

.mobile-nav-link:hover { color: var(--blue); background: var(--blue-l); }

/* ── Footer ── */
.footer-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
  display: inline-block;
}

.footer-link:hover { color: #fff; }

/* ── Quick Pill Buttons ── */
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  background: rgba(255,255,255,.9);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.quick-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-l);
  transform: translateY(-1px);
}

/* ── Converter UI ── */
.converter-card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.converter-card-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  padding: 1.5rem 2rem;
  color: white;
}

.option-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
}

.option-input {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  font-family: 'DM Sans', sans-serif;
}

.option-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 50px;
  transition: .3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

input:checked + .toggle-slider { background: var(--blue); }
input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Quality Slider */
.quality-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 50px;
  background: linear-gradient(to right, var(--blue) 0%, var(--blue) var(--val, 80%), var(--border) var(--val, 80%));
  outline: none;
  cursor: pointer;
}

.quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(37,99,235,.4);
  transition: transform .15s;
}

.quality-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Progress Bar */
.progress-bar-container {
  background: var(--gray-bg);
  border-radius: 50px;
  height: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width .3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100px); }
  100% { transform: translateX(200px); }
}

/* Drop zone file preview */
.file-preview-image {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
  border: 1.5px solid var(--border);
}

/* ── Pricing Cards ── */
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  transition: all .3s ease;
}

.pricing-card:hover,
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.pricing-card.featured {
  background: linear-gradient(160deg, var(--blue) 0%, var(--purple) 100%);
  color: white;
  border-color: transparent;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

.pricing-card.featured .plan-feature { border-color: rgba(255,255,255,.2); }
.plan-feature:last-child { border-bottom: none; }

/* ── Blog ── */
.blog-tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.blog-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 .75rem;
  color: var(--text);
}

.blog-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 .5rem;
  color: var(--text);
}

.blog-content p { margin-bottom: 1.2rem; line-height: 1.8; color: #374151; }

.blog-content ul, .blog-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

.blog-content li { margin-bottom: .5rem; line-height: 1.7; }

.blog-content strong { color: var(--text); font-weight: 700; }

.blog-content blockquote {
  border-left: 4px solid var(--blue);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--blue-l);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--blue-d);
}

.blog-content code {
  background: #1E293B;
  color: #E2E8F0;
  padding: .15rem .4rem;
  border-radius: 4px;
  font-size: .85em;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Stats ── */
.stat-card {
  text-align: center;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

/* ── Floating WhatsApp ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #25D366;
  color: white;
  padding: .75rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: all .25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
  color: white;
}

.whatsapp-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50px;
  border: 2px solid #25D366;
  animation: waPulse 2s infinite;
}

@keyframes waPulse {
  0%   { opacity: .6; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* ── Float Animation ── */
.float-animation {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── Notification Toast ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1E293B;
  color: white;
  padding: .85rem 1.5rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  z-index: 99999;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #059669; }
.toast.error   { background: #DC2626; }

/* ── Ad Placeholders ── */
.ad-slot {
  background: var(--gray-bg);
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
}

/* ── Responsive Utils ── */
@media (max-width: 640px) {
  .btn-primary, .btn-secondary, .btn-secondary-purple {
    padding: .65rem 1.4rem;
    font-size: .875rem;
  }

  .upload-zone-inner { padding: 2rem 1rem; }
}

/* ── Step Number ── */
.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}

/* ── Icon Boxes ── */
.icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.icon-box-blue   { background: var(--blue-l); color: var(--blue); }
.icon-box-purple { background: var(--purple-l); color: var(--purple); }
.icon-box-green  { background: #D1FAE5; color: #059669; }
.icon-box-orange { background: #FEF3C7; color: #D97706; }
.icon-box-pink   { background: #FCE7F3; color: #DB2777; }
.icon-box-teal   { background: #CCFBF1; color: #0D9488; }

/* ── Header scroll shadow ── */
.header-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.08) !important;
}

/* ── Result Box ── */
.result-box {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1.5px solid #A7F3D0;
  border-radius: 16px;
  padding: 1.5rem;
  display: none;
}

.result-box.show { display: block; }

/* ── Error box ── */
.error-box {
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #DC2626;
  font-size: .9rem;
  display: none;
}

.error-box.show { display: flex; align-items: center; gap: .75rem; }

/* ── Skeleton loading ── */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

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

/* ── Page fade in ── */
.page-enter {
  animation: pageEnter .4s ease forwards;
}

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

/* ── Hero background decoration ── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
}
