/*
 * © 2026 Shannon Henry. All rights reserved.
 *
 * This software and its associated documentation (the "Power 369 Vortex Enterprise") are the exclusive property of the owner.
 *
 * UNAUTHORIZED COPYING, REPRODUCTION, MODIFICATION, OR DISTRIBUTION OF THIS WORK, OR ANY PORTION OF IT, IS STRICTLY PROHIBITED.
 *
 * This includes, but is not limited to, the proprietary 3-6-9 harmonic architecture, dual-state monitoring protocol, Soul Guide Protocol, Oracle Reading Engine, four-currency economic model, Forge Ratio mechanics, card-economy system, DreamScape Gateway architecture, Zero-Drift Development methodology, Hyper Biological Coding theory, and Constitutional File Theory.
 *
 * For inquiries regarding licensing or permissions, please contact: power369app@gmail.com
 */

/* ============================================
   POWER369 — nav.css
   Shared component styles for components.js
   Updated: 2026-03-06 — Icon-only dimming, text always white
   Imported by each page's CSS via @import 
   ============================================ */

/* --- Upgrade Banner (#p369-upgrade-banner) --- */
.p369-upgrade-stripe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: linear-gradient(90deg, #1a0a2e, #0a0a1a);
  border-bottom: 1px solid #2a1a4e;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #c0c0c0;
  position: relative;
  z-index: 60;
}

.p369-upgrade-stripe.is-pro {
  background: linear-gradient(90deg, #1a1a0a, #0a0a1a);
  border-bottom-color: #4a3a0e;
}

.p369-us-text {
  flex: 1;
  margin-right: 12px;
}

.p369-us-text strong {
  color: #8b5cf6;
}

.p369-upgrade-stripe.is-pro .p369-us-text strong {
  color: #D4AF37;
}

.p369-us-btn {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: bold;
  padding: 4px 12px;
  border: 1px solid #8b5cf6;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
  transition: all 0.2s;
  white-space: nowrap;
}

.p369-us-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.p369-upgrade-stripe.is-pro .p369-us-btn {
  color: #D4AF37;
  border-color: #D4AF37;
}

.p369-upgrade-stripe.is-pro .p369-us-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.p369-us-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
  margin-left: 8px;
}

.p369-us-close:hover {
  color: #aaa;
}

.p369-stripe-spacer {
  height: 0;
}

/* --- Page Header (#p369-page-header) --- */
.p369-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0d0d15;
  border-bottom: 1px solid #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 50;
}

.p369-ph-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p369-ph-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
  animation: p369-dot-pulse 3s ease-in-out infinite;
}

.p369-ph-status-dot.online {
  background: #00ff41;
  box-shadow: 0 0 6px #00ff41;
}

.p369-ph-status-dot.degraded {
  background: #FFA500;
  box-shadow: 0 0 6px rgba(255, 165, 0, 0.4);
}

.p369-ph-status-dot.offline {
  background: #ff4444;
  box-shadow: 0 0 6px rgba(255, 68, 68, 0.4);
}

@keyframes p369-dot-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}

.p369-ph-title {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #FFD700;
  text-transform: uppercase;
}

.p369-ph-tier {
  font-size: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.p369-ph-tier.tier-standard {
  background: rgba(192, 192, 192, 0.1);
  color: #999;
  border: 1px solid #333;
}

.p369-ph-tier.tier-premium {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.p369-ph-tier.tier-oracle {
  background: rgba(212, 175, 55, 0.1);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.p369-ph-subtitle {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: #666;
  letter-spacing: 1px;
  padding: 4px 16px 8px;
  background: #0d0d15;
  border-bottom: 1px solid #1a1a2e;
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ══════════════════════════════════════════════════════════════ */

.p369-bottom-nav-wrapper {
  display: flex;
  align-items: center;
  background: #0a0a0f;
  border-top: 1px solid #1a1a2e;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.p369-bn-scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  padding: 10px 0 14px;
}

.p369-bn-scroll::-webkit-scrollbar {
  display: none;
}

/* ── NAV ITEM — text always bright white ── */
.p369-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  min-width: 58px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  color: #ffffff;
  opacity: 1;
  transition: color 0.2s, transform 0.15s;
}

.p369-bn-item:active {
  transform: scale(0.9);
}

/* ── ICON — dimmed when inactive ── */
.p369-bn-icon {
  font-size: 22px;
  line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  opacity: 0.45;
  transition: opacity 0.2s, filter 0.2s;
}

/* ── HOVER — icon lifts slightly ── */
.p369-bn-item:hover .p369-bn-icon {
  opacity: 0.75;
}

/* ── ACTIVE — text purple, icon full brightness + glow ── */
.p369-bn-item.active {
  color: #8b5cf6;
}

.p369-bn-item.active .p369-bn-icon {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.8));
}

/* active indicator dot */
.p369-bn-item.active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8b5cf6;
  box-shadow: 0 0 6px #8b5cf6;
  margin: 2px auto 0;
}

.p369-bn-scroll-fade {
  display: none;
  position: absolute;
  right: 48px;
  top: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(90deg, transparent, #0a0a0f);
  pointer-events: none;
}

.p369-bn-scroll-fade.show {
  display: block;
}

.p369-bn-logout-fixed {
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-left: 1px solid #1a1a2e;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: #0a0a0f;
}

.p369-bn-logout-btn {
  color: #ff4444;
  text-decoration: none;
  font-size: 20px;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 6px 4px 14px;
}

.p369-bn-logout-btn:hover {
  opacity: 1;
}

/* --- Nav spacer — matches taller nav --- */
.p369-nav-spacer {
  height: 80px;
}

/* ── RESPONSIVE: wider screens ── */
@media (min-width: 768px) {
  .p369-bn-item {
    min-width: 70px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .p369-bn-icon {
    font-size: 24px;
  }
}
