/* QBrain — Ultra Filter & Get-Emails Styling */

/* ── Section Label ──────────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

/* ── Network Pills ──────────────────────────────────────────────── */
.network-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.network-btn {
  padding: 0.5rem 1.15rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.network-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.network-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 10px rgba(56, 189, 248, 0.3);
  transform: scale(1.05);
}

/* ── Drag & Drop Zone ───────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 1.35rem;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(99, 102, 241, 0.03);
  position: relative;
  overflow: hidden;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: #38bdf8;
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
  transform: scale(1.01);
}

.drop-zone-link {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.4);
  cursor: pointer;
}

/* ── Email Textarea ─────────────────────────────────────────────── */
.email-textarea {
  width: 100%;
  height: 250px;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.email-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.15);
}

/* ── Progress Bar ───────────────────────────────────────────────── */
.progress-bar-wrap {
  display: none;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.progress-bar-wrap.visible { display: block; }

.progress-bar-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, var(--primary), var(--accent), #38bdf8);
  background-size: 200% 100%;
  border-radius: 99px;
  width: 0%;
  transition: width 0.35s ease;
  animation: neonShimmer 1.8s linear infinite;
}

@keyframes neonShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ── Actions Row ────────────────────────────────────────────────── */
.filter-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.15rem;
  flex-wrap: wrap;
}

/* ── Output Header & Textarea ───────────────────────────────────── */
.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.95rem;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.output-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.output-textarea {
  width: 100%;
  height: 220px;
  padding: 1rem 1.15rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 12px;
  color: #4ade80;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.output-textarea::placeholder { color: rgba(74, 222, 128, 0.35); }

.output-textarea:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
}

/* ── Session Statistics Grid ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 0.85rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, var(--accent));
  opacity: 0.6;
}

.stat-box:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(168, 85, 247, 0.2);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Quantity Presets ───────────────────────────────────────────── */
.qty-presets {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.qty-preset-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.qty-preset-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.qty-preset-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-actions { flex-direction: column; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; max-width: 100vw; }
}
