/* =========================================================================
   AtomPing Tools — Standalone CSS
   Extracted from website/src/styles/global.css for Django-rendered tool pages.
   The base_tool.html template inlines header/footer/nav/button styles;
   this file adds tool-page-specific classes, HTMX indicators, and utilities.
   ========================================================================= */

/* ===== Tool Page Layout ===== */
.tool-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  background: #f9fafb;
  position: relative;
}
.tool-page-inner {
  width: 100%;
  max-width: 680px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.tool-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #3279F9;
  margin-bottom: 24px;
}
.tool-page h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #121317;
}
.tool-lead {
  font-size: 17px;
  color: #5f6368;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Tool Search Card (pill-style input) ===== */
.tool-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  padding: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 2px 4px rgba(0,0,0,0.02),
    0 8px 24px rgba(0,0,0,0.06);
  max-width: 640px;
  margin: 0 auto;
}
.tool-input-row {
  display: flex;
  align-items: center;
}
.tool-card input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  background: transparent;
  min-width: 0;
  color: #121317;
}
.tool-card input::placeholder {
  color: #b0b5bc;
}
.tool-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #121317;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.tool-card button:hover { background: #2d2f33; }
.tool-card button:active { transform: scale(0.98); }

/* ===== Feature Pills ===== */
.tool-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
}

/* ===== Hero Pill (used on hub/landing) ===== */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  font-size: 13px;
  font-weight: 450;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.pill:hover {
  border-color: rgba(50,121,249,0.4);
  background: rgba(50,121,249,0.06);
}
.pill.coming-soon { color: #666; font-style: italic; }
.pill.coming-soon::after {
  content: "soon";
  font-size: 10px;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #888;
  font-style: normal;
}

/* ===== Hero Badge ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #3279F9;
  margin-bottom: 16px;
}

/* ===== Upsell Section ===== */
.tool-upsell-section {
  padding: 80px 24px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.tool-upsell-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.tool-upsell-item {
  text-align: center;
}
.tool-upsell-item h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #121317;
}
.tool-upsell-item p {
  font-size: 14px;
  color: #5f6368;
  line-height: 1.5;
}
.tool-cta-link {
  font-size: 14px;
  font-weight: 500;
  color: #3279F9;
  text-decoration: none;
  transition: color 0.15s;
}
.tool-cta-link:hover { color: #2563eb; }

/* ===== Bottom CTA ===== */
.bottom-cta {
  padding: 120px 24px;
  text-align: center;
  background: #121317;
  color: #fff;
}
.bottom-cta h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.bottom-cta .subtitle {
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto 32px;
  font-size: 16px;
}
.bottom-cta .btn-primary {
  background: #fff;
  color: #121317;
}
.bottom-cta .btn-primary:hover { background: #f0f0f0; }
.bottom-cta .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.bottom-cta .btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
}

/* Trust badges (CTA section) */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.trust-badge {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-badge .material-symbols-outlined {
  font-size: 16px;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HTMX Loading Indicators ===== */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: block; }
.htmx-request.htmx-indicator { display: block; }

/* Disabled state during HTMX requests */
.htmx-request button[type="submit"] {
  opacity: 0.7;
  cursor: wait;
}

/* ===== Responsive: Tool Page ===== */
@media (max-width: 600px) {
  .tool-card { border-radius: 16px; }
  .tool-input-row { flex-direction: column; gap: 8px; }
  .tool-card input { text-align: center; padding: 12px 16px; }
  .tool-card button { border-radius: 100px; width: 100%; justify-content: center; }
  .tool-upsell-grid { grid-template-columns: 1fr; gap: 24px; }
}
