/* ==========================================================================
   PASSWORD LEAK CHECKER STYLESHEET
   Aethvion Labs - Dark Cybernetic Theme
   ========================================================================== */

.leak-checker-wrapper {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  color: var(--fg);
}

.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-section h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(165, 180, 252, 0.2);
}

.hero-section .subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Glassmorphism Cards */
.glass-card {
  position: relative;
  background: rgba(26, 26, 58, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 204, 0.15);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(0, 255, 204, 0.3);
  box-shadow: 0 8px 36px 0 rgba(0, 255, 204, 0.08);
}

/* Privacy Assurance Card */
.privacy-card {
  border-left: 4px solid var(--accent);
  background: rgba(0, 255, 204, 0.03);
}

.privacy-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.privacy-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: var(--accent);
}

.privacy-header .icon {
  font-size: 1.5rem;
}

.privacy-body p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(10, 10, 20, 0.4);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.flow-step .step-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.2);
}

.flow-step .step-txt {
  font-size: 0.8rem;
  color: #a0aec0;
  line-height: 1.4;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Input Console Card */
.console-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.console-card .instruction {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.input-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.cyber-input {
  width: 100%;
  padding: 14px 48px 14px 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.25rem;
  font-weight: bold;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 25, 0.8);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cyber-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(0, 255, 204, 0.3);
}

.toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
  user-select: none;
}

.toggle-btn:hover {
  opacity: 1;
  color: var(--fg);
}

.scan-button {
  width: 100%;
  padding: 15px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #00f0ff, #00ffcc);
  color: #050515;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 204, 0.2);
}

.scan-button:hover {
  box-shadow: 0 4px 25px rgba(0, 255, 204, 0.5);
  transform: translateY(-2px);
}

.scan-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 255, 204, 0.3);
}

/* Offline Badge */
.offline-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  color: #f59e0b;
  font-size: 0.85rem;
  line-height: 1.4;
  transition: opacity 0.3s ease;
}

.offline-badge.hidden {
  display: none;
}

/* Dynamic State Output Card */
.output-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.output-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Color States configuration */
.state-idle {
  --glow-color: #00f0ff;
}

.state-safe {
  --glow-color: #10b981;
}

.state-warning {
  --glow-color: #f59e0b;
}

.state-compromised {
  --glow-color: #ef4444;
}

.card-status-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--glow-color);
  box-shadow: 0 2px 12px var(--glow-color);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Status Gauge Ring */
.status-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 25px 0;
}

.status-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  color: var(--glow-color);
  text-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2), 0 0 20px rgba(var(--accent-rgb), 0.1);
  transition: color 0.5s ease;
  margin-top: 10px;
}

.status-subtitle {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.4;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.metric-item {
  background: rgba(10, 10, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.metric-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--glow-color);
  transition: color 0.5s ease;
}

/* Hash Visualizer */
.hash-visualizer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #a0aec0;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.hash-box {
  background: rgba(5, 5, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px;
}

.hash-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.hash-part-label {
  font-size: 0.75rem;
  color: #718096;
}

.hash-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  word-break: break-all;
  letter-spacing: 0.5px;
  line-height: 1.3;
  color: #a0aec0;
}

.hash-prefix {
  color: #00f0ff;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
}

.hash-suffix {
  color: #718096;
}

.hash-suffix.compromised-match {
  color: #ef4444;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
}

.hash-split-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

.hash-chunk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #a0aec0;
}

.chunk-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.prefix-box {
  background: #00f0ff;
  box-shadow: 0 0 5px #00f0ff;
}

.suffix-box {
  background: #718096;
}

/* Recommendations Card */
.recommendations-card {
  border-left: 4px solid var(--glow-color);
  transition: border-color 0.5s ease;
}

.recommendations-card.hidden {
  display: none;
}

.recommendations-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.recom-list {
  list-style: none;
}

.recom-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e2e8f0;
}

.recom-item::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--glow-color);
  transition: color 0.5s ease;
  font-size: 1rem;
}

.recom-item:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .status-label {
    font-size: 1.4rem;
  }
  .hash-value {
    font-size: 0.85rem;
  }
}
