/* DennTech Trading Solutions — supplemental styles
   Tailwind CDN handles most styling; this file covers
   custom overrides, animations, and reusable utilities. */

/* ─── Root / reset ─────────────────────────────────────── */
:root {
  --neon: #00FF9F;
  --neon-glow: rgba(0, 255, 159, 0.35);
  --bg-dark: #0F1117;
  --bg-card: #1A1F2E;
  --border-subtle: rgba(0, 255, 159, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ─── Typography ────────────────────────────────────────── */
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.15; }

/* ─── Neon accent ───────────────────────────────────────── */
.neon-green {
  color: var(--neon);
  text-shadow: 0 0 14px var(--neon-glow);
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(0, 255, 159, 0.35);
  box-shadow: 0 0 24px rgba(0, 255, 159, 0.08);
}

/* ─── Primary button ────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--neon);
  color: #111827;
  font-weight: 700;
  text-align: center;
  border-radius: 1rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 0 28px var(--neon-glow), 0 0 8px var(--neon-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* ─── Form inputs (admin) ───────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  color: #e5e7eb;
  background: #000;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  width: 100%;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 159, 0.15);
}

/* ─── Sticky nav backdrop shimmer ──────────────────────── */
nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ─── Hero glow underline ───────────────────────────────── */
.hero-underline {
  display: inline-block;
  border-bottom: 2px solid var(--neon);
  padding-bottom: 2px;
}

/* ─── Pulse animation for CTA badges ───────────────────── */
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--neon-glow); }
  50%       { box-shadow: 0 0 22px var(--neon-glow); }
}
.pulse-neon { animation: neon-pulse 2.5s ease-in-out infinite; }

/* ─── FAQ <details> styling ────────────────────────────── */
details {
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  margin-top: 0.6rem;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s;
}
details[open] { border-color: rgba(0, 255, 159, 0.4); }
details summary {
  font-weight: 600;
  list-style: none;
  color: #e5e7eb;
}
details summary::-webkit-details-marker { display: none; }
details p {
  margin-top: 0.6rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* ─── Prose content overrides (blog / custom pages) ────── */
.prose-denntech h2 { color: var(--neon); font-size: 1.5rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.prose-denntech h3 { color: #e5e7eb; font-size: 1.2rem; font-weight: 600; margin: 1.4rem 0 0.4rem; }
.prose-denntech p  { color: #9ca3af; line-height: 1.75; margin: 0.6rem 0; }
.prose-denntech ul { list-style: disc; padding-left: 1.5rem; color: #9ca3af; }
.prose-denntech li { margin: 0.3rem 0; }
.prose-denntech a  { color: var(--neon); text-decoration: underline; }
.prose-denntech img { max-width: 100%; border-radius: 0.75rem; margin: 1.2rem 0; }
.prose-denntech blockquote {
  border-left: 3px solid var(--neon);
  padding-left: 1rem;
  color: #6b7280;
  font-style: italic;
  margin: 1rem 0;
}

/* ─── Image upload preview (admin) ─────────────────────── */
.img-preview-thumb {
  max-height: 140px;
  max-width: 280px;
  border-radius: 0.5rem;
  border: 1px solid #374151;
  margin-top: 0.5rem;
  display: none;
}
.img-preview-thumb.loaded { display: block; }

/* ─── Upload progress bar ───────────────────────────────── */
.upload-progress {
  height: 4px;
  background: #374151;
  border-radius: 9999px;
  overflow: hidden;
  display: none;
  margin-top: 6px;
}
.upload-progress.active { display: block; }
.upload-progress-bar {
  height: 100%;
  background: var(--neon);
  width: 0;
  transition: width 0.3s ease;
}

/* ─── Flash messages ────────────────────────────────────── */
.flash-success { background: rgba(16, 185, 129, 0.15); border: 1px solid #065f46; color: #6ee7b7; border-radius: 0.75rem; padding: 0.8rem 1rem; }
.flash-error   { background: rgba(239, 68, 68, 0.15);  border: 1px solid #991b1b; color: #fca5a5; border-radius: 0.75rem; padding: 0.8rem 1rem; }

/* ─── Scrollbar (Webkit) ────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* ─── Responsive utilities ──────────────────────────────── */
@media (max-width: 640px) {
  .card { border-radius: 1rem !important; }
  h1 { font-size: 2.4rem !important; }
}
