/* /public/assets/mini-tools.css
 * Unified Soft Glassmorphism Design System for Makron Mini Applets
 * Pastel blue-white palette, frosted translucent surfaces, subtle gradients,
 * rounded corners, soft diffused shadows, minimalist typography.
 */

:root {
  --font-sans: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #eff6ff 45%, #f1f5f9 100%);
  --mesh-1: radial-gradient(at 10% 10%, rgba(219, 234, 254, 0.75) 0, transparent 45%);
  --mesh-2: radial-gradient(at 90% 15%, rgba(224, 231, 255, 0.65) 0, transparent 45%);
  --mesh-3: radial-gradient(at 50% 85%, rgba(240, 249, 255, 0.85) 0, transparent 50%);

  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.88);
  --glass-bg-subtle: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-border-subtle: rgba(226, 232, 240, 0.8);
  --glass-shadow: 0 20px 40px -15px rgba(148, 163, 184, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.8);
  --glass-shadow-lg: 0 30px 60px -20px rgba(148, 163, 184, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.95);
  --glass-glow: 0 0 24px rgba(59, 130, 246, 0.18);

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --primary-light: #eff6ff;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;

  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Meshes */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background: var(--mesh-1), var(--mesh-2);
}
body::after {
  background: var(--mesh-3);
  opacity: 0.7;
}

.relative-z {
  position: relative;
  z-index: 1;
}

/* Top Navigation Bar */
.mini-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px -2px rgba(148, 163, 184, 0.08);
}
.mini-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.mini-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px -3px rgba(37, 99, 235, 0.35);
}
.mini-brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(219, 234, 254, 0.7);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.8);
}
.mini-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.mini-nav-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.mini-nav-links a:hover {
  color: var(--primary);
}
.mini-nav-cta {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  color: var(--primary) !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.1) !important;
}

/* Page Layout Container */
.mini-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* Tool Header / Hero */
.mini-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.mini-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.12);
  margin-bottom: 1rem;
}
.mini-pill-tag svg {
  width: 14px;
  height: 14px;
}
.mini-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.mini-hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}
.mini-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.mini-trust-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}
.mini-trust-item svg {
  color: var(--accent-emerald);
  width: 15px;
  height: 15px;
}

/* Main Workspace Floating Glass Card */
.glass-workspace {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  transition: box-shadow 0.3s ease;
}
.glass-workspace:hover {
  box-shadow: var(--glass-shadow-lg);
}

/* Dropzone */
.mini-dropzone {
  border: 2px dashed rgba(147, 197, 253, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  padding: 3.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.mini-dropzone:hover, .mini-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(239, 246, 255, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.15);
}
.mini-dropzone-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(191, 219, 254, 0.7));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9), 0 8px 16px -4px rgba(37, 99, 235, 0.15);
}
.mini-dropzone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}
.mini-dropzone-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.mini-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Controls Grid */
.mini-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.mini-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mini-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-label-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}
.mini-input, .mini-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-heading);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}
.mini-input:focus, .mini-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.mini-range {
  width: 100%;
  height: 6px;
  background: #cbd5e1;
  border-radius: 999px;
  outline: none;
  accent-color: var(--primary);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px -5px rgba(37, 99, 235, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.42);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-heading);
  border: 1px solid rgba(203, 213, 225, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-secondary:hover {
  background: #fff;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* File Preview Strip / Card */
.mini-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.08);
}
.mini-file-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
}
.mini-file-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(219, 234, 254, 0.8);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mini-file-text {
  overflow: hidden;
}
.mini-file-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.mini-file-size {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Metrics & Data Visualization Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.metric-box {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-align: center;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.06);
}
.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
}

/* Progress Indicator */
.mini-progress-container {
  margin: 1.5rem 0;
  display: none;
}
.mini-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(203, 213, 225, 0.6);
  border-radius: 999px;
  overflow: hidden;
}
.mini-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.mini-progress-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: center;
}

/* Result Card */
.result-card {
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.95));
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.75rem;
  text-align: center;
  box-shadow: 0 16px 36px -10px rgba(37, 99, 235, 0.16);
}
.result-card.active {
  display: block;
}

/* Content & SEO / FAQ Section */
.seo-section {
  max-width: 860px;
  margin: 0 auto;
}
.seo-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--glass-shadow);
}
.seo-card h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.seo-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 1.25rem 0 0.5rem;
}
.seo-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.seo-card ul, .seo-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.seo-card li {
  margin-bottom: 0.4rem;
  color: var(--text-body);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.step-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.step-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-heading);
  margin-bottom: 0.35rem;
}
.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  padding: 1.1rem 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
}
.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--primary);
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  display: none;
  padding-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.65;
}
.faq-item.open .faq-answer {
  display: block;
}

/* Related Tools Drawer */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.related-tool-link {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: var(--text-heading);
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.06);
  transition: all 0.2s ease;
}
.related-tool-link:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 10px 20px -4px rgba(37, 99, 235, 0.12);
}
.related-tool-title {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.related-tool-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Footer */
.mini-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 10;
}
.mini-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.mini-footer-links a {
  text-decoration: none;
  color: var(--text-body);
  transition: color 0.15s ease;
}
.mini-footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 640px) {
  .glass-workspace {
    padding: 1.25rem;
  }
  .mini-dropzone {
    padding: 2.5rem 1rem;
  }
  .mini-nav-links {
    display: none;
  }
}
