/* ──────────────────────────────────────────────────────────────────────
   DennTech Trading Solutions — style.css
   Global styles supplementing Tailwind CDN
   ────────────────────────────────────────────────────────────────────── */

/* ── Fonts ──────────────────────────────────────────────────────────── */
:root {
  --cyan:  #00f7ff;
  --green: #00ff9d;
  --bg:    #0a0a0a;
  --bg2:   #111111;
  --bg3:   #1a1a1a;
  --border: rgba(255,255,255,0.07);
  --text:  #9ca3af;
  --font-body:    'Outfit', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────────────── */
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, padding-left 0.15s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cyan);
  padding-left: 6px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  color: #000;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--cyan);
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid rgba(0,247,255,0.35);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(0,247,255,0.07);
  border-color: rgba(0,247,255,0.5);
  transform: translateY(-1px);
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,247,255,0.25);
  box-shadow: 0 8px 40px rgba(0,247,255,0.06);
}

/* ── Blog category badge ─────────────────────────────────────────────── */
.blog-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0,247,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,247,255,0.18);
}

/* ── Blog filter buttons ─────────────────────────────────────────────── */
.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
  cursor: pointer;
}
.blog-filter-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.blog-filter-btn.active {
  color: var(--cyan);
  background: rgba(0,247,255,0.08);
  border-color: rgba(0,247,255,0.2);
}

/* ── Pagination ─────────────────────────────────────────────────────── */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
}
.pagination-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.pagination-btn.active {
  color: var(--cyan);
  background: rgba(0,247,255,0.1);
  border-color: rgba(0,247,255,0.25);
}

/* ── Form elements ──────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #e5e7eb;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,247,255,0.08);
}
.form-input::placeholder { color: #4b5563; }
textarea.form-input { resize: vertical; }

/* ── Flash messages ─────────────────────────────────────────────────── */
.flash-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  animation: fadeIn 0.2s ease;
}
.flash-success {
  background: rgba(0,255,157,0.08);
  border: 1px solid rgba(0,255,157,0.2);
  color: #6ee7b7;
}
.flash-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171;
}
.flash-warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: #fbbf24;
}
.flash-info {
  background: rgba(0,247,255,0.08);
  border: 1px solid rgba(0,247,255,0.2);
  color: var(--cyan);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer-link {
  display: block;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-link:hover { color: #d1d5db; }

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: #6b7280;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.15s;
}
.footer-social-link:hover {
  background: rgba(0,247,255,0.08);
  border-color: rgba(0,247,255,0.2);
  color: var(--cyan);
}

/* ── Utilities ──────────────────────────────────────────────────────── */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
