/* ============================================
   BETHEL TRAUN · Shared Design System
   Incluzi în toate app-urile:
   <link rel="stylesheet" href="/shared/bethel-shared.css">
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=IBM+Plex+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:        #0e0f13;
  --surface:   #16171d;
  --surface2:  #1e1f27;
  --border:    #2a2b33;
  --border2:   #3a3b45;
  --gold:      #7BC4A8;
  --gold-soft: #9fd4bf;
  --text:      #eceae3;
  --text2:     #a8a6a0;
  --muted:     #6b6c75;
  --green:     #4caf82;
  --orange:    #d4682a;
  --blue:      #4a90d9;
  --red:       #e05252;

  --nav-height: 54px;
  --radius:     10px;
  --radius-lg:  16px;

  --font-display: 'Playfair Display', serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

/* BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(212,168,67,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(74,144,217,0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAV — injectat de bethel-nav.js
   ============================================ */
.bethel-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 0;
  background: rgba(14,15,19,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.bethel-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.bethel-nav-cross svg {
  width: 20px; height: 20px;
  display: block;
}
.bethel-nav-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.bethel-nav-brand span { color: var(--gold); }

.bethel-nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border2);
  margin: 0 18px;
  flex-shrink: 0;
}

.bethel-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.bethel-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.bethel-nav-link:hover {
  color: var(--text);
  background: var(--surface2);
}
.bethel-nav-link.active {
  color: var(--text);
  background: var(--surface2);
}
.bethel-nav-link.active .nav-dot { opacity: 1; }
.nav-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  flex-shrink: 0;
}

.bethel-nav-icon { font-size: 14px; }

/* Mobile nav */
.bethel-nav-menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
}

@media (max-width: 600px) {
  .bethel-nav-links { display: none; }
  .bethel-nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(14,15,19,0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
  }
  .bethel-nav-menu-btn { display: block; }
  .bethel-nav-sep { display: none; }
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.bt-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.bt-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.bt-title em { font-style: normal; color: var(--gold); }

.bt-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Button */
.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.bt-btn:active { transform: scale(0.97); }
.bt-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.bt-btn-primary { background: var(--gold); color: #1c1c1c; }
.bt-btn-primary:hover { background: var(--gold-soft); }

.bt-btn-dark { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.bt-btn-dark:hover { background: #28293200; border-color: var(--border2); }

.bt-btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.bt-btn-ghost:hover { color: var(--text); border-color: var(--border2); }

.bt-btn-green { background: var(--green); color: #fff; }
.bt-btn-green:hover { background: #3d9a6e; }

.bt-btn-full { width: 100%; }

/* Input / Textarea */
.bt-input, .bt-textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.bt-input:focus, .bt-textarea:focus { border-color: var(--gold); }
.bt-input::placeholder, .bt-textarea::placeholder { color: var(--muted); }
.bt-textarea { resize: vertical; min-height: 200px; }

/* Card */
.bt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bt-card-head {
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Toast */
.bt-toast {
  padding: 9px 13px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  display: none;
  margin-top: 8px;
}
.bt-toast.show { display: block; }
.bt-toast.ok { background: rgba(76,175,130,0.12); color: var(--green); border: 1px solid rgba(76,175,130,0.3); }
.bt-toast.er { background: rgba(224,82,82,0.12); color: var(--red); border: 1px solid rgba(224,82,82,0.3); }

/* ============================================
   LAYOUT
   ============================================ */
.bt-wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
}

.bt-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.63rem;
  color: var(--muted);
  margin-top: 32px;
}
.bt-footer a { color: #555; text-decoration: none; }
.bt-footer a:hover { color: var(--gold); }

/* Animations */
@keyframes bt-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bt-anim { opacity: 0; animation: bt-fadeUp 0.5s forwards; }
.bt-anim-1 { animation-delay: 0.1s; }
.bt-anim-2 { animation-delay: 0.2s; }
.bt-anim-3 { animation-delay: 0.3s; }
.bt-anim-4 { animation-delay: 0.4s; }
.bt-anim-5 { animation-delay: 0.5s; }

.hidden { display: none !important; }
