/* Kinetic Blueprint - shared design system utilities */

body {
  font-family: 'Manrope', sans-serif;
  background-color: #f9f9f9;
  color: #1a1c1c;
}

h1, h2, h3, h4, h5, h6, .font-headline {
  font-family: 'Space Grotesk', sans-serif;
}

.font-label {
  font-family: 'Inter', sans-serif;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Glass */
.glass-panel {
  background-color: rgba(249, 249, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Kinetic Triggers */
.kinetic-btn-primary {
  background: linear-gradient(135deg, #006b5a 0%, #00d1b2 100%);
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.kinetic-btn-primary:hover { opacity: 0.92; }
.kinetic-btn-primary:active { transform: scale(0.98); }

/* Long-throw shadow */
.kinetic-shadow {
  box-shadow: 0 24px 48px -12px rgba(26, 28, 28, 0.06);
}

/* Ghost border (felt, not seen) */
.ghost-border {
  border: 1px solid rgba(186, 202, 196, 0.15);
}

/* Decorative grid overlays */
.data-trace-h {
  background-image: linear-gradient(to right, rgba(186, 202, 196, 0.1) 1px, transparent 1px);
  background-size: 40px 100%;
}
.data-trace-v {
  background-image: linear-gradient(to bottom, rgba(186, 202, 196, 0.1) 1px, transparent 1px);
  background-size: 100% 40px;
}

/* Underline input (Data Port) */
.input-underline {
  background: #eeeeee;
  border: 0;
  border-bottom: 2px solid #2cdebf;
  padding: 14px 16px;
  color: #1a1c1c;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 100%;
}
.input-underline:focus {
  background: #e8e8e8;
  border-bottom-color: #006b5a;
}
.input-underline::placeholder {
  color: #6b7a75;
}

/* Secondary (ghost) button */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(107, 122, 117, 0.2);
  color: #1a1c1c;
  transition: background-color 0.2s ease;
}
.btn-ghost:hover {
  background: #e8e8e8;
}

/* HTMX request states */
.htmx-indicator {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Status dot with gentle pulse */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
  animation: kinetic-pulse 2s ease-in-out infinite;
}
@keyframes kinetic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Result card variants (used by _render.js output) */
.result-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 0.25rem;
  box-shadow: 0 24px 48px -12px rgba(26, 28, 28, 0.06);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.result-card.result-success::before { background: #006b5a; }
.result-card.result-miss::before    { background: #6b7a75; }
.result-card.result-error::before   { background: #ba1a1a; }

.result-card .label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3b4a45;
  margin-bottom: 8px;
}

.result-card .mono {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #3b4a45;
  word-break: break-all;
}

.result-card .password {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #006b5a;
  letter-spacing: -0.02em;
  word-break: break-all;
}

/* Dropzone for file uploads */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  border: 2px dashed rgba(186, 202, 196, 0.4);
  background: #f3f3f3;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  border-radius: 0.25rem;
  text-align: center;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: #006b5a;
  background: #eeeeee;
}
.dropzone.has-file {
  border-style: solid;
  border-color: #006b5a;
  background: #e6f7f3;
}
.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.dropzone .filename {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #3b4a45;
  min-height: 1em;
  word-break: break-all;
  max-width: 100%;
}
.dropzone.has-file .filename {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 14px;
  background: #006b5a;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(0, 107, 90, 0.2);
}
.dropzone.has-file .filename::before {
  content: "check_circle";
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  line-height: 1;
  font-variation-settings: 'FILL' 1;
}
