/* ================================================
   🌗 THEME VARIABLES (Dark & Light Mode Compatible)
   ================================================ */
:root {
  --ng-bg: #0f0f10;
  --ng-card: rgba(255,255,255,0.04);
  --ng-accent: #00b7ff;
  --ng-text: #e6eef8;
}

body.light-mode {
  --ng-bg: #ffffff;
  --ng-card: rgba(0,0,0,0.05);
  --ng-accent: #007bff;
  --ng-text: #000000;
}


/* ================================================
   🧠 Neoglass Header v3.6 — Fullscreen Edition
   ================================================ */

.ng-header {
  position: relative;
  width: 100vw; /* ✅ penuh layar */
  margin-left: calc(50% - 50vw); /* keluar dari container tengah */
  z-index: 999;
  background: rgba(17, 17, 17, 0.7); /* semi transparan elegan */
  color: var(--header-text, #fff);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Flex Container */
.ng-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* ✅ isi header juga full */
  gap: 10px;
}

/* ================================================
   LOGO TEXT ONLY
   ================================================ */
.ng-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.ng-logo-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.4px;
  color: var(--header-text, #fff);
  transition: color 0.2s ease;
}

.ng-logo-text:hover {
  color: var(--ng-accent);
}

/* ================================================
   ACTION ICONS
   ================================================ */
.ng-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Home Button */
.ng-home {
  color: inherit;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ng-home:hover {
  color: var(--ng-accent);
}

/* Theme Toggle */
.ng-theme-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.ng-theme-btn:hover {
  color: var(--ng-accent);
}

/* Icon visibility logic */
.ng-theme-btn .light-icon {
  display: none;
}

body.light-mode .ng-theme-btn .dark-icon {
  display: none;
}

body.light-mode .ng-theme-btn .light-icon {
  display: inline-block;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */
@media (max-width: 800px) {
  .ng-header {
    padding: 6px 14px;
  }

  .ng-logo-text {
    font-size: 0.95rem;
  }

  .ng-home,
  .ng-theme-btn {
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  .ng-header {
    padding: 5px 10px;
  }

  .ng-logo-text {
    font-size: 0.9rem;
  }

  .ng-home,
  .ng-theme-btn {
    font-size: 17px;
  }
}

/* ================================================
   LIGHT MODE SUPPORT
   ================================================ */
body.light-mode .ng-header {
  background: rgba(255,255,255,0.85);
  color: #111;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
}

body.light-mode .ng-logo-text {
  color: #111;
}

body.light-mode .ng-home:hover,
body.light-mode .ng-theme-btn:hover {
  color: var(--ng-accent);
}
