/**
 * NaamJapTracker Theme Stylesheet
 * Responsive layout, spiritual typography, and clean cards
 */

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 72px; /* Space for mobile bottom bar */
}

@media (min-width: 769px) {
  .site-wrapper {
    padding-bottom: 0;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--njt-surface);
  border-bottom: 1px solid var(--njt-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding-text {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-branding-icon {
  font-size: 1.85rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(230, 81, 0, 0.2));
}

.site-title-wrap {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-family: var(--njt-font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--njt-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.site-tagline {
  font-size: 0.75rem;
  color: var(--njt-text-muted);
  font-weight: 500;
  display: none;
}

@media (min-width: 640px) {
  .site-tagline {
    display: inline;
  }
}

/* Main Navigation (Desktop) */
.main-navigation {
  display: none;
}

@media (min-width: 769px) {
  .main-navigation {
    display: flex;
    align-items: center;
  }

  .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
  }

  .nav-menu a {
    color: var(--njt-text);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 0.5rem 0.25rem;
    position: relative;
  }

  .nav-menu a:hover {
    color: var(--njt-primary);
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.njt-icon-btn {
  background: var(--njt-bg);
  border: 1px solid var(--njt-border);
  color: var(--njt-text);
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.2s ease;
}

.njt-icon-btn:hover {
  border-color: var(--njt-primary);
  transform: translateY(-1px);
}

[data-theme="dark"] .sun-icon {
  display: inline;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
:root:not([data-theme="dark"]) .sun-icon {
  display: none;
}
:root:not([data-theme="dark"]) .moon-icon {
  display: inline;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--njt-border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

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

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--njt-text);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background-color: var(--njt-surface);
  border-bottom: 1px solid var(--njt-border);
  padding: 1rem 1.25rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.6rem 0.5rem;
  color: var(--njt-text);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 8px;
}

.mobile-nav-list a:hover {
  background: var(--njt-bg);
  color: var(--njt-primary);
}

/* ==========================================================================
   Compact Intro & Hero Section
   ========================================================================== */
.njt-compact-intro {
  padding: 0.65rem 1rem;
  background: var(--njt-surface);
  border-bottom: 1px solid var(--njt-border);
  text-align: center;
}

.njt-intro-container {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--njt-text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.njt-intro-om {
  font-size: 1.1rem;
  color: var(--njt-primary);
}

.njt-intro-brand {
  font-family: var(--njt-font-serif);
  font-weight: 700;
  color: var(--njt-primary);
}

.njt-intro-divider {
  opacity: 0.4;
}

.njt-intro-tagline {
  color: var(--njt-text);
  font-weight: 600;
}

.njt-hero-section {
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  background: radial-gradient(circle at 50% 10%, rgba(230, 81, 0, 0.08) 0%, transparent 70%);
}

.njt-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.njt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--njt-primary-light);
  color: var(--njt-primary);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(230, 81, 0, 0.15);
}

.njt-hero-title {
  font-family: var(--njt-font-serif);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--njt-text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.njt-hero-highlight {
  color: var(--njt-primary);
}

.njt-hero-tagline {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  color: var(--njt-gold);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.njt-hero-description {
  font-size: 1.05rem;
  color: var(--njt-text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.njt-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-spiritual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--njt-primary), #d84315);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(230, 81, 0, 0.35);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 81, 0, 0.45);
}

.btn-secondary {
  background: var(--njt-surface);
  color: var(--njt-text) !important;
  border: 1px solid var(--njt-border);
}

.btn-secondary:hover {
  border-color: var(--njt-primary);
  color: var(--njt-primary) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   Application Container & Plugin Card Notice
   ========================================================================== */
.njt-app-section {
  padding: 1.5rem 1.25rem 3rem;
}

.njt-app-container {
  max-width: 760px;
  margin: 0 auto;
}

.njt-plugin-notice-card {
  background: var(--njt-surface);
  border: 1px dashed var(--njt-primary);
  border-radius: var(--njt-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--njt-shadow);
}

.njt-plugin-notice-card .notice-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.njt-plugin-notice-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--njt-text);
}

.njt-plugin-notice-card p {
  color: var(--njt-text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.notice-steps {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
  background: var(--njt-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
}

.notice-steps ol {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--njt-text);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.njt-features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.njt-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.njt-sub-heading {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--njt-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.njt-section-title {
  font-family: var(--njt-font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--njt-text);
  margin-bottom: 0.75rem;
}

.njt-section-desc {
  color: var(--njt-text-muted);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

.njt-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.njt-feature-card {
  background: var(--njt-card-bg);
  border: 1px solid var(--njt-border);
  border-radius: var(--njt-radius);
  padding: 1.75rem;
  transition: all 0.25s ease;
  box-shadow: var(--njt-shadow);
}

.njt-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--njt-primary);
  box-shadow: 0 10px 25px -4px rgba(230, 81, 0, 0.12);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--njt-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon {
  font-size: 1.75rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--njt-text);
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--njt-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Pages & Articles
   ========================================================================== */
.njt-page-container {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  flex: 1;
}

.njt-article-card {
  background: var(--njt-surface);
  border: 1px solid var(--njt-border);
  border-radius: var(--njt-radius);
  padding: 2.5rem;
  box-shadow: var(--njt-shadow);
}

.entry-title {
  font-family: var(--njt-font-serif);
  font-size: 2.25rem;
  color: var(--njt-text);
  margin-bottom: 1.5rem;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--njt-text);
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content h2,
.entry-content h3 {
  margin: 2rem 0 1rem;
  color: var(--njt-text);
}

/* 404 Page */
.njt-404-card {
  background: var(--njt-surface);
  border: 1px solid var(--njt-border);
  border-radius: var(--njt-radius);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--njt-shadow);
}

.njt-404-symbol {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.njt-404-title {
  font-family: var(--njt-font-serif);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.njt-404-text {
  color: var(--njt-text-muted);
  max-width: 480px;
  margin: 0 auto 1.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--njt-surface);
  border-top: 1px solid var(--njt-border);
  margin-top: auto;
  transition: background-color 0.3s ease;
}

.njt-footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.njt-footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.njt-footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.njt-footer-symbol {
  font-size: 1.6rem;
  line-height: 1;
}

.njt-footer-brand-title {
  font-family: var(--njt-font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--njt-primary);
  letter-spacing: -0.01em;
}

.njt-footer-motto {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--njt-text);
  margin: 0.25rem 0 0.5rem;
  letter-spacing: -0.01em;
}

.njt-footer-mission {
  font-size: 0.9rem;
  color: var(--njt-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Informational 5 Links Navigation */
.njt-footer-nav {
  padding: 1.25rem 0;
  border-top: 1px solid var(--njt-border);
  border-bottom: 1px solid var(--njt-border);
}

.njt-footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
}

.njt-footer-link-item {
  margin: 0;
}

.njt-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* Touch target accessibility requirement */
  padding: 0.5rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--njt-text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.njt-footer-link:hover {
  color: var(--njt-primary);
}

.njt-footer-link:focus-visible {
  outline: 2px solid var(--njt-primary);
  outline-offset: 2px;
}

/* Desktop Horizontal layout */
@media (min-width: 769px) {
  .njt-footer-links-list {
    flex-direction: row;
    gap: 2rem;
  }
}

/* Mobile Stacked/Wrapped layout */
@media (max-width: 640px) {
  .njt-footer-links-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .njt-footer-link {
    width: 100%;
    background: var(--njt-bg);
    border: 1px solid var(--njt-border);
    border-radius: 10px;
    padding: 0.65rem 1rem;
  }
}

/* Bottom Copyright & Badges */
.njt-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--njt-text-muted);
  text-align: center;
}

@media (min-width: 640px) {
  .njt-footer-bottom {
    flex-direction: row;
  }
}

.njt-copyright-text {
  margin: 0;
}

.njt-copyright-text strong {
  color: var(--njt-text);
}

.njt-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.njt-badge-item {
  background: var(--njt-bg);
  border: 1px solid var(--njt-border);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--njt-text-muted);
}

/* ==========================================================================
   Download Mobile App Section
   ========================================================================== */
.njt-download-app-section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.njt-download-card {
  background: linear-gradient(135deg, rgba(230, 81, 0, 0.05) 0%, var(--njt-surface) 50%, rgba(216, 67, 21, 0.08) 100%);
  border: 1px solid var(--njt-border);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .njt-download-card {
    padding: 3.5rem 3rem;
  }
}

.njt-download-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.njt-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(230, 81, 0, 0.12);
  color: var(--njt-primary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.njt-download-title {
  font-family: var(--njt-font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--njt-text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .njt-download-title {
    font-size: 2.5rem;
  }
}

.njt-download-pitch {
  font-size: 1.05rem;
  color: var(--njt-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.njt-store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  background: var(--njt-text);
  color: var(--njt-bg);
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 48px;
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-pwa {
  background: var(--njt-primary);
  color: #ffffff;
}

.btn-pwa:hover {
  background: var(--njt-primary-hover);
}

.store-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.store-text {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.store-text small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.store-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

/* App Features Grid */
.njt-app-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .njt-app-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .njt-app-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .njt-app-feature-item.full-width {
    grid-column: span 3;
  }
}

.njt-app-feature-item {
  background: var(--njt-surface);
  border: 1px solid var(--njt-border);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.njt-app-feature-item:hover {
  border-color: var(--njt-primary);
  transform: translateY(-2px);
}

.app-feat-icon {
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.5rem;
  background: rgba(230, 81, 0, 0.08);
  border-radius: 12px;
  shrink: 0;
}

.app-feat-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--njt-text);
  margin-bottom: 0.25rem;
}

.app-feat-body p {
  font-size: 0.82rem;
  color: var(--njt-text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--njt-surface);
  border-top: 1px solid var(--njt-border);
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  display: block;
}

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

.mobile-bottom-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
}

.mobile-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--njt-text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 52px;
}

.mobile-tab-btn .tab-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 2px;
}

.mobile-tab-btn:hover,
.mobile-tab-btn.active {
  color: var(--njt-primary);
}
