/* ==========================================================================
   BnD by Lushai Dev - Neo-Brutalist & Faith Infused Stylesheet
   Rules: No Glassmorphism, No Focus Rings, High Security & Mobile First
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Outfit:wght@400;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-primary: #f8f6f0;
  --bg-card: #ffffff;
  --bg-dark: #121318;
  --text-main: #121318;
  --text-muted: #4b5563;
  --text-on-dark: #f8f6f0;

  --border-dark: #121318;
  --border-thick: 3px solid #121318;
  --border-thin: 2px solid #121318;

  --accent-gold: #f59e0b;
  --accent-amber: #d97706;
  --accent-purple: #7c3aed;
  --accent-crimson: #dc2626;
  --accent-emerald: #059669;

  --shadow-neo: 5px 5px 0px #121318;
  --shadow-neo-lg: 8px 8px 0px #121318;
  --shadow-neo-gold: 5px 5px 0px #d97706;

  --font-faith: 'Cinzel', serif;
  --font-sans: 'Outfit', -apple-system, sans-serif;
  --font-code: 'Space Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none !important; /* Disable browser default focus rings per requirements */
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Header & Navbar */
.top-banner {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 8px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-bottom: var(--border-thick);
}
.top-banner span {
  color: var(--accent-gold);
}

.navbar {
  background: var(--bg-card);
  border-bottom: var(--border-thick);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.header-brand-img {
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  background: #fff;
  border: var(--border-thin);
  box-shadow: 2px 2px 0px #121318;
  padding: 2px 4px;
  border-radius: 4px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.header-brand-img:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #121318;
}
.brand-cross {
  background: var(--accent-gold);
  color: var(--bg-dark);
  font-family: var(--font-faith);
  font-weight: 900;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thick);
  box-shadow: 3px 3px 0px #121318;
  font-size: 1.3rem;
}
.brand-text {
  font-family: var(--font-faith);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}
.brand-tag {
  background: var(--accent-purple);
  color: #fff;
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 2px 8px;
  border: var(--border-thin);
  margin-left: 6px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
}
.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  padding: 8px 14px;
  border: var(--border-thin);
  background: var(--bg-card);
  box-shadow: 3px 3px 0px #121318;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  font-size: 0.95rem;
}
.nav-link:hover, .nav-link:active {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #121318;
  background: var(--accent-gold);
}
.nav-link.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}
.nav-link.btn-dark:hover {
  background: var(--accent-gold);
  color: #121318;
}
.nav-link.btn-purple {
  background: var(--accent-purple);
  color: #fff !important;
}
.nav-link.btn-purple:hover {
  background: var(--accent-gold);
  color: #121318 !important;
}
.nav-link.btn-emerald {
  background: var(--accent-emerald);
  color: #fff !important;
}
.nav-link.btn-emerald:hover {
  background: var(--accent-gold);
  color: #121318 !important;
}
.nav-link.btn-gold {
  background: var(--accent-gold);
  color: #121318 !important;
}
.nav-link.btn-gold:hover {
  background: var(--bg-dark);
  color: #fff !important;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

/* Hero Section */
.hero-section {
  background: var(--bg-card);
  border: var(--border-thick);
  box-shadow: var(--shadow-neo-lg);
  padding: 48px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-gold);
  border: var(--border-thick);
  padding: 4px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0px #121318;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-faith);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 28px;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Image Visual Showcase Styles */
.hero-grid-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid-split {
    grid-template-columns: 1fr;
  }
}
.hero-img-box {
  background: var(--bg-card);
  border: var(--border-thick);
  box-shadow: var(--shadow-neo);
  padding: 16px;
  text-align: center;
}
.hero-img-box img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 4px;
}
.feature-showcase-card {
  background: var(--bg-card);
  border: var(--border-thick);
  box-shadow: var(--shadow-neo);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0px #121318;
}
.feature-img-thumb {
  width: 100%;
  height: 170px;
  object-fit: contain;
  margin-bottom: 16px;
  background: #f8fafc;
  border: var(--border-thin);
  padding: 12px;
}

/* Neo-Brutalist Buttons */
.neo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-main);
  background: var(--accent-gold);
  border: var(--border-thick);
  box-shadow: var(--shadow-neo);
  cursor: pointer;
  transition: all 0.1s ease;
  user-select: none;
}
.neo-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #121318;
}
.neo-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #121318;
}
.neo-btn.btn-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.neo-btn.btn-purple {
  background: var(--accent-purple);
  color: #fff;
}
.neo-btn.btn-emerald {
  background: var(--accent-emerald);
  color: #fff;
}

/* Section Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Cards */
.neo-card {
  background: var(--bg-card);
  border: var(--border-thick);
  box-shadow: var(--shadow-neo);
  padding: 24px;
}
.neo-card-header {
  border-bottom: var(--border-thick);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title {
  font-family: var(--font-faith);
  font-size: 1.35rem;
  font-weight: 900;
}

/* Interactive Demo / Search Box */
.search-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  border: var(--border-thick);
  color: var(--text-main);
  box-shadow: 3px 3px 0px #121318;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  background: #fffef5;
  box-shadow: 4px 4px 0px var(--accent-amber);
}

/* Code Snippets & Response Boxes */
.code-block {
  background: var(--bg-dark);
  color: #a7f3d0;
  font-family: var(--font-code);
  font-size: 0.85rem;
  padding: 16px;
  border: var(--border-thick);
  box-shadow: 4px 4px 0px #121318;
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 350px;
}

/* Faith Verse Highlights */
.verse-box {
  background: #fffdf0;
  border-left: 6px solid var(--accent-amber);
  border-top: var(--border-thick);
  border-right: var(--border-thick);
  border-bottom: var(--border-thick);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0px #121318;
}
.verse-ref {
  font-family: var(--font-faith);
  font-weight: 900;
  color: var(--accent-amber);
  margin-bottom: 4px;
  font-size: 1.05rem;
}
.verse-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Dictionary Word Entry */
.word-box {
  background: #f0fdf4;
  border: var(--border-thick);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 3px 3px 0px #121318;
}
.word-heading {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
.word-title {
  font-family: var(--font-faith);
  font-size: 1.25rem;
  font-weight: 900;
}
.word-phonetic {
  font-family: var(--font-code);
  color: var(--accent-purple);
  font-size: 0.85rem;
}
.word-def {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.word-eg {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Tables for Admin & Stats */
.neo-table-wrapper {
  overflow-x: auto;
  border: var(--border-thick);
  box-shadow: var(--shadow-neo);
  margin-bottom: 24px;
}
.neo-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}
.neo-table th, .neo-table td {
  padding: 14px 16px;
  border: 1px solid var(--border-dark);
  text-align: left;
  font-size: 0.95rem;
}
.neo-table th {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-code);
  font-weight: 700;
  text-transform: uppercase;
}
.neo-table tr:nth-child(even) {
  background: #fcfbfa;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 19, 24, 0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--bg-card);
  border: 4px solid var(--text-main);
  box-shadow: 10px 10px 0px var(--accent-gold);
  width: 100%;
  max-width: 540px;
  padding: 28px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-crimson);
  color: #fff;
  border: var(--border-thin);
  width: 32px;
  height: 32px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #121318;
}

/* Alert Notification Boxes */
.neo-alert {
  padding: 14px 18px;
  border: var(--border-thick);
  box-shadow: 4px 4px 0px #121318;
  font-weight: 700;
  margin-bottom: 20px;
}
.alert-success { background: #dcfce7; color: #14532d; }
.alert-error { background: #fee2e2; color: #7f1d1d; }
.alert-warning { background: #fef3c7; color: #78350f; }

/* SVG Icon Utilities */
.svg-icon {
  width: 1.18em;
  height: 1.18em;
  vertical-align: -0.18em;
  display: inline-block;
  flex-shrink: 0;
  stroke: currentColor;
}
.svg-icon-lg {
  width: 1.6em;
  height: 1.6em;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: var(--border-thick);
  padding: 6px 12px;
  box-shadow: 3px 3px 0px #121318;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Mid-Range Desktop / Tablet Navbar Fix (1025px - 1240px) */
@media (min-width: 1025px) and (max-width: 1240px) {
  .navbar {
    padding: 10px 16px;
    gap: 12px;
  }
  .header-brand-img {
    height: 30px;
    max-width: 140px;
  }
  .nav-links {
    gap: 8px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.88rem;
  }
}

/* Tablet & Mobile Responsive Adjustments (<= 1024px) */
@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden;
  }

  .top-banner {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .navbar {
    padding: 10px 14px;
    gap: 12px;
  }

  .header-brand-img {
    height: 30px;
    max-width: 140px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    border-top: 2px dashed var(--border-dark);
    margin-top: 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 1rem;
    text-align: center;
  }

  .container {
    padding: 20px 16px;
  }

  .hero-section {
    padding: 28px 20px;
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .neo-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
  }

  .neo-table {
    min-width: 600px;
  }

  body {
    padding-bottom: 64px; /* Space for mobile bottom bar */
  }
}

@media (max-width: 768px) {
  .top-banner {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .navbar {
    padding: 8px 12px;
  }

  .header-brand-img {
    height: 28px;
    max-width: 130px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .neo-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .neo-btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .form-input, .form-select, .form-textarea {
    min-height: 44px;
    font-size: 1rem;
  }
}

/* Mobile Bottom Quick Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--bg-dark);
  border-top: var(--border-thick);
  z-index: 1500;
  justify-content: space-around;
  align-items: center;
}
.mobile-bottom-link {
  color: var(--text-on-dark);
  text-decoration: none;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.mobile-bottom-link.highlight {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
  }
}

