/* ═══════════════════════════════════════════════════════
   PulsrWeb Featured Tools — Unified Nav v3.0
   Glassmorphism · Micro-interactions · Responsive
   ═══════════════════════════════════════════════════════ */

:root {
  --nav-bg: rgba(15, 15, 30, 0.85);
  --nav-border: rgba(255, 255, 255, 0.07);
  --nav-glow: rgba(0, 229, 255, 0.15);
  --pill-bg: rgba(255, 255, 255, 0.04);
  --pill-hover: rgba(255, 255, 255, 0.08);
  --pill-active: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(124, 58, 237, 0.15));
  --pill-border: rgba(255, 255, 255, 0.06);
  --pill-active-border: rgba(0, 229, 255, 0.3);
  --text-nav: rgba(255, 255, 255, 0.6);
  --text-nav-active: #f0f0ff;
  --accent-cyan: #00e5ff;
  --accent-purple: #7c3aed;
}

.tools-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}

.tools-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 16px;
}

.tools-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.tools-logo img {
  border-radius: 6px;
  display: block;
}

.logo-text {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #f0f0ff;
  letter-spacing: -0.02em;
  display: none;
}

.tools-scroll {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 2px 0;
  scroll-behavior: smooth;
}

.tools-scroll::-webkit-scrollbar { display: none; }

.tool-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-nav);
  text-decoration: none;
  white-space: nowrap;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.tool-pill:hover {
  color: var(--text-nav-active);
  background: var(--pill-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.tool-pill:active {
  transform: translateY(0) scale(0.97);
}

.tool-pill.active {
  color: var(--text-nav-active);
  background: var(--pill-active);
  border-color: var(--pill-active-border);
  box-shadow: 0 0 20px var(--nav-glow), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.tool-pill.active::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  opacity: 0.25;
  z-index: -1;
  animation: pill-glow 3s ease-in-out infinite alternate;
}

@keyframes pill-glow {
  0% { opacity: 0.15; }
  100% { opacity: 0.35; }
}

.tool-icon {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  flex-shrink: 0;
}

.tool-label { line-height: 1; }

.tools-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.45);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  text-decoration: none;
  transition: all 0.25s ease;
}

.back-home-btn:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-1px);
}

.lang-group {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pill-border);
  border-radius: 8px;
  padding: 2px;
}

.lang-pill {
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-pill:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.lang-pill.active {
  color: #00e5ff;
  background: rgba(0, 229, 255, 0.12);
}

.nav-spacer { height: 60px; }

.unified-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--nav-border);
  position: relative;
}

.unified-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.3) 30%, rgba(124,58,237,0.3) 70%, transparent 100%);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #f5f5fa;
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-logo:hover { opacity: 0.85; }

.footer-logo img { height: 26px; width: auto; display: block; }

.ft-badge {
  font-size: 0.58rem;
  padding: 2px 6px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  border-radius: 4px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-nav a:hover { color: var(--accent-cyan); }

.footer-copy {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .logo-text { display: inline; }
  .tool-pill { padding: 6px 16px; }
}

@media (min-width: 1024px) {
  .tools-nav-inner { padding: 0 32px; gap: 24px; }
  .tools-scroll { gap: 6px; }
}

@media (max-width: 639px) {
  .tools-nav-inner { padding: 0 12px; gap: 8px; height: 54px; }
  .nav-spacer { height: 54px; }
  .tool-pill { padding: 5px 10px; font-size: 0.78rem; }
  .tool-icon { font-size: 0.95rem; }
  .back-home-btn { width: 30px; height: 30px; }
  .tools-logo img { width: 24px; height: 24px; }
  .footer-content { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-nav { justify-content: center; }
}

[dir="rtl"] .tools-scroll { flex-direction: row-reverse; }
[dir="rtl"] .footer-nav { flex-direction: row-reverse; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.loading-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
