@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ================================================
   DESIGN SYSTEM: ADSTRATA IQ – TERMINAL AESTHETIC
   ================================================ */

:root {
  --term-bg: #010a0b;
  --term-accent: #0066ff;
  --term-green: #39ff14;
  --term-cyan: #00f0ff;
  --term-red: #ff003c;
  --term-dim-green: rgba(57, 255, 20, 0.2);
  --term-border: rgba(57, 255, 20, 0.5);
  --term-border-cyan: rgba(0, 240, 255, 0.35);
  --sidebar-width: 300px;
  --font-mono: 'Share Tech Mono', monospace;
  --font-sans: 'Rajdhani', sans-serif;
  --scanline-color: rgba(0, 0, 0, 0.25);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--term-bg);
  color: var(--term-green);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

/* ========== CRT SCANLINE OVERLAY ========== */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(to bottom, var(--scanline-color) 50%, transparent 50%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.55;
}

/* ========== UTILITY GLOW CLASSES ========== */
.glow-green  { color: var(--term-green);  text-shadow: 0 0 6px var(--term-green),  0 0 14px rgba(57,255,20,0.4); }
.glow-accent { color: var(--term-accent); text-shadow: 0 0 6px var(--term-accent), 0 0 14px rgba(0,102,255,0.4); }
.glow-cyan   { color: var(--term-cyan);   text-shadow: 0 0 6px var(--term-cyan),   0 0 14px rgba(0,240,255,0.4); }
.glow-red    { color: var(--term-red);    text-shadow: 0 0 6px var(--term-red),    0 0 14px rgba(255,0,60,0.4); }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--term-bg); border-left: 1px solid var(--term-border); }
::-webkit-scrollbar-thumb { background: var(--term-green); }
::-webkit-scrollbar-thumb:hover { background: var(--term-cyan); }

/* ========== LINKS ========== */
a {
  color: var(--term-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--term-green);
  text-shadow: 0 0 8px var(--term-green);
}

/* ========== 3D HUD LAYOUT ========== */
body {
  background-color: var(--term-bg);
  background-image: url('bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: var(--font-mono); /* Strict monospace enforced */
}

/* Override any sans fonts */
h1, h2, h3, h4, h5, h6, .logo-text {
  font-family: var(--font-mono) !important;
}

.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  padding: 3rem;
  gap: 3rem;
  align-items: center;
}

/* ========== LEFT COLUMN (HUD SIDEBAR) ========== */
.hud-sidebar {
  width: 340px;
  background: rgba(0, 5, 5, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid var(--term-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.15);
  border-radius: 4px;
}

.logo-container {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--term-border);
  padding-bottom: 1.5rem;
}

.sidebar-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border: 1px solid var(--term-green);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--term-green);
  text-shadow: 0 0 12px var(--term-green);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--term-cyan);
  letter-spacing: 1.5px;
  opacity: 0.9;
  line-height: 1.4;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.nav-item {
  color: var(--term-green);
  font-size: 1.1rem;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  letter-spacing: 2px;
  display: block;
}

.nav-item:hover, .nav-item.active {
  color: #fff;
  text-shadow: 0 0 12px var(--term-green);
  transform: translateX(5px);
}

.nav-bracket {
  color: var(--term-green);
  opacity: 0.6;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.nav-item:hover .nav-bracket,
.nav-item.active .nav-bracket {
  opacity: 1;
  text-shadow: 0 0 15px var(--term-green);
}

.hud-sidebar .discord-btn {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--term-cyan);
  color: var(--term-cyan);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

.hud-sidebar .discord-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  color: #fff;
}

/* ========== RIGHT COLUMN (3D TERMINAL) ========== */
.terminal-scene {
  flex: 1;
  height: 100%;
  perspective: 1500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-card {
  width: 100%;
  height: 90%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  /* Slight resting rotation for 3D holographic feel */
  transform: rotateY(-5deg) rotateX(2deg); 
}

.terminal-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: rgba(0, 5, 5, 0.65);
  backdrop-filter: blur(15px);
  border: 1px solid var(--term-border);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.15), inset 0 0 20px rgba(57, 255, 20, 0.05);
  padding: 3rem;
  overflow-y: auto;
  border-radius: 4px;
}

.face-b {
  transform: rotateY(180deg);
}

/* Active transform states added via JS inline styles based on cumulative rotation */

/* ========== PAGE HEADER OVERRIDES FOR SPA ========== */
.sp-header {
  border-bottom: 2px dashed var(--term-border-cyan);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.sp-header h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  color: var(--term-cyan);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.page-header h1 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.4rem;
}

.page-timestamp {
  font-family: var(--font-sans);
  color: var(--term-cyan);
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ========== CONSOLE BOX ========== */
.console-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--term-border);
  padding: 1.5rem;
  min-height: 180px;
  box-shadow: inset 0 0 20px rgba(57, 255, 20, 0.05);
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.console-box p { opacity: 0; animation: fadein 0.4s ease forwards; }
.console-box p:nth-child(1) { animation-delay: 0.3s; }
.console-box p:nth-child(2) { animation-delay: 0.9s; }
.console-box p:nth-child(3) { animation-delay: 1.5s; }
.console-box p:nth-child(4) { animation-delay: 2.1s; }
.console-box p:nth-child(5) { animation-delay: 2.7s; }

@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ========== GRID CARDS ========== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  border: 1px solid var(--term-border-cyan);
  background: rgba(0, 240, 255, 0.03);
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.card:hover {
  background: rgba(0, 240, 255, 0.07);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--term-border-cyan);
  text-transform: uppercase;
  color: var(--term-cyan);
  text-shadow: 0 0 6px rgba(0,240,255,0.4);
  letter-spacing: 2px;
}

/* ========== NEWS ITEMS ========== */
.news-list {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.news-list::-webkit-scrollbar { width: 3px; }
.news-list::-webkit-scrollbar-thumb { background: var(--term-cyan); }

.news-item {
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.news-item a {
  display: block;
  color: var(--term-green);
}

.news-item:hover .item-title {
  color: #fff;
  text-shadow: 0 0 8px var(--term-cyan);
}

.item-date {
  font-size: 0.7rem;
  color: var(--term-cyan);
  opacity: 0.65;
  display: block;
  margin-bottom: 2px;
  letter-spacing: 1px;
}

.item-title {
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.item-snippet {
  font-size: 0.75rem;
  color: rgba(57, 255, 20, 0.55);
  margin-top: 4px;
  line-height: 1.5;
}

/* ========== INTEL FEED PAGE TABS ========== */
.tab-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--term-border);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: rgba(57, 255, 20, 0.5);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--term-green);
  border-color: var(--term-border);
}

.tab-btn.active {
  color: var(--term-cyan);
  border-color: var(--term-border-cyan);
  text-shadow: 0 0 6px rgba(0,240,255,0.5);
  background: rgba(0, 240, 255, 0.05);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ========== BOARD PAGE ========== */
.board-form {
  border: 1px solid var(--term-border);
  background: rgba(0, 0, 0, 0.35);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.board-form h3 {
  color: var(--term-cyan);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--term-border);
  color: var(--term-green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 0.8rem;
}

.form-input::placeholder, .form-textarea::placeholder { color: rgba(57, 255, 20, 0.3); }
.form-input:focus, .form-textarea:focus { border-color: var(--term-cyan); box-shadow: inset 0 0 8px rgba(0,240,255,0.05); }
.form-textarea { resize: vertical; min-height: 100px; }

.submit-btn {
  background: transparent;
  border: 1px solid var(--term-accent);
  color: var(--term-accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.7rem 2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: rgba(0, 102, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

.board-post {
  border: 1px solid rgba(57, 255, 20, 0.2);
  background: rgba(0, 0, 0, 0.25);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
}

.board-post:hover { background: rgba(57, 255, 20, 0.04); }

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(57, 255, 20, 0.2);
}

.post-author { color: var(--term-cyan); font-size: 0.9rem; letter-spacing: 1px; }
.post-date   { font-size: 0.7rem; color: rgba(57, 255, 20, 0.4); }
.post-body   { font-size: 0.9rem; line-height: 1.7; color: rgba(57, 255, 20, 0.85); }

/* ========== REVIEWS PAGE ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.review-card {
  border: 1px solid var(--term-border-cyan);
  background: rgba(0, 240, 255, 0.03);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.review-card:hover {
  background: rgba(0, 240, 255, 0.07);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12);
}

.review-card h3  { color: var(--term-cyan); font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: 1px; }
.review-meta     { font-size: 0.75rem; color: rgba(57,255,20,0.5); margin-bottom: 1rem; }
.review-score    { font-size: 2rem; color: var(--term-green); text-shadow: 0 0 10px var(--term-green); margin: 0.5rem 0; }
.review-body     { font-size: 0.85rem; line-height: 1.7; color: rgba(57,255,20,0.8); }

/* ========== LOADING / PULSE ========== */
.loading-text {
  color: var(--term-cyan);
  animation: pulse 1.5s infinite;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

@keyframes pulse {
  0%   { opacity: 0.4; }
  50%  { opacity: 1; }
  100% { opacity: 0.4; }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); --sidebar-width: 280px; }
  .main-content { margin-left: 0; padding: 1rem 1.2rem; }
  .grid-container { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .mobile-menu-btn {
    display: block;
    position: fixed;
    top: 1rem; left: 1rem;
    z-index: 200;
    background: rgba(3,10,5,0.9);
    border: 1px solid var(--term-border);
    color: var(--term-green);
    font-family: var(--font-mono);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn { display: none; }
}

/* ========== COMMAND CENTER DASHBOARD GRID ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1.5rem;
  height: 100%;
}

.dash-panel {
  background: rgba(0, 5, 5, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
  transition: all 0.3s ease;
}

.dash-panel:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.top-panel {
  grid-column: 1 / -1;
}

.panel-header {
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--term-border-cyan);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}

.panel-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.crypto-text {
  color: rgba(57, 255, 20, 0.7);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.dash-divider {
  border: 0;
  border-top: 1px solid var(--term-border-cyan);
  margin: 1.5rem 0;
  opacity: 0.4;
}

.diag-list {
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--term-green);
}

.diag-list li {
  margin-bottom: 0.5rem;
}

.comms-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.large-text {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--term-cyan);
}

.status-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.neon-glow-btn {
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid var(--term-green);
  color: var(--term-green);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  text-shadow: 0 0 5px var(--term-green);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.neon-glow-btn:hover {
  background: rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
  color: #fff;
}

/* ========== ARMORY DASHBOARD LIST ========== */
.armory-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.armory-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid var(--term-cyan);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.armory-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.armory-link {
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.armory-link:hover {
  text-shadow: 0 0 10px var(--term-green);
  color: #fff;
}

/* ========== HONDA BRANDING ========== */
.honda-featured {
  border-left: 3px solid #e40521;
  padding-left: 0.8rem;
}

.armory-badge {
  background: #e40521;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}

.honda-card {
  border-left: 3px solid #e40521 !important;
}

.honda-tag {
  background: #e40521;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
}
