/* =========================================================
   styles.css – Sindicat A.L.E.
   Dark theme, contrast corect, link-uri vizibile
   ========================================================= */

/* ========== RESET MINIMAL ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;

  color: rgba(255,255,255,0.92);

  background:
    radial-gradient(1200px 700px at 12% 10%, rgba(110,231,255,.18), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(99,102,241,.18), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(16,185,129,.10), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #070b14 100%);

  overflow-x: hidden;
}

/* ========== VARIABILE ========== */
:root {
  --bg: #070b14;
  --panel: rgba(255,255,255,0.04);
  --panel-border: rgba(255,255,255,0.12);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --muted2: rgba(255,255,255,0.55);

  /* LINKURI – CULORI DEDICATE */
  --link: #60a5fa;        /* albastru clar */
  --link-hover: #93c5fd;  /* hover */
  --link-focus: #bfdbfe;  /* focus */

  --accent: #60a5fa;
  --radius: 14px;
  --radius2: 18px;
}

/* ========== MEDIA ========== */
img, svg, video {
  max-width: 100%;
  height: auto;
}

/* ========== LINKURI (FOARTE IMPORTANT) ========== */
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(96,165,250,0.65);
  text-underline-offset: 2px;
  transition: color .15s ease, text-decoration-color .15s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

a:focus-visible {
  outline: 2px dashed var(--link-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Link extern – mic indicator vizual */
a[target="_blank"]::after {
  content: " ↗";
  font-size: .85em;
  opacity: .75;
}

/* ========== STRUCTURĂ GENERALĂ ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

main {
  padding: 28px 0 48px;
}

/* ========== NAVBAR ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    180deg,
    rgba(7,11,20,.85),
    rgba(7,11,20,.55)
  );
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand h1 {
  margin: 0;
  font-size: 16px;
}

.brand p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ========== BUTOANE ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.25);
}

.btn-primary {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  border-color: transparent;
  color: #0b1220;
  font-weight: 600;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
}

/* ========== TITLURI ========== */
h1, h2, h3, h4 {
  color: #ffffff;
  line-height: 1.25;
}

h2 {
  margin-top: 0;
  font-size: 26px;
}

h3 {
  font-size: 20px;
}

p {
  line-height: 1.75;
  margin: 0 0 1em;
}

/* ========== CONȚINUT EDITORIAL (FAQ / RĂSPUNSURI) ========== */
.content,
.article,
.faq-answer {
  color: var(--text);
}

.content a,
.article a,
.faq-answer a {
  color: var(--link);
  font-weight: 500;
}

.content a:hover,
.article a:hover,
.faq-answer a:hover {
  color: var(--link-hover);
}

/* ========== LISTE ========== */
ul, ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

/* ========== BLOCKQUOTE ========== */
blockquote {
  margin: 1.2em 0;
  padding: 10px 14px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
}

/* ========== TABEL ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

th, td {
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 10px;
}

th {
  background: rgba(255,255,255,0.08);
}

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 22px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  h2 { font-size: 22px; }
  .nav-inner { flex-wrap: wrap; }
}

/* =========================================================
   HOTFIX: Reparare meniuri/butoane + linkuri vizibile în conținut
   (pune acest bloc la FINALUL styles.css)
   ========================================================= */

/* 1) Butoanele sunt <a>. Le scoatem din stilul de link normal */
a.btn,
.btn {
  text-decoration: none !important;
  color: inherit !important;
}

/* dacă ai .btn-primary (gradient), păstrează contrastul textului */
a.btn.btn-primary,
.btn.btn-primary {
  color: #0b1220 !important;
  text-decoration: none !important;
}

/* 2) Linkurile din NAV (meniul de sus) nu trebuie subliniate */
.nav a,
.nav .nav-links a,
.nav .mobile a {
  text-decoration: none !important;
}

/* 3) Meniul mobil NU trebuie să fie vizibil implicit pe desktop.
      Va fi arătat doar când JS pune o clasă. */
.nav .mobile {
  display: none;
}

/* suport pentru mai multe variante de clasă folosite în app.js */
.nav .mobile.open,
.nav .mobile.active,
.nav .mobile.is-open,
.nav .mobile.show {
  display: block;
}

/* 4) Linkuri vizibile DOAR în conținut (răspunsul întrebării).
      Asta rezolvă “Soluția ALE este aici.” să fie clar link. */
.answer a,
.content a,
.article a,
.faq-answer a {
  color: #60a5fa !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(96,165,250,0.70) !important;
  text-underline-offset: 2px;
  font-weight: 600;
}

.answer a:hover,
.content a:hover,
.article a:hover,
.faq-answer a:hover {
  color: #93c5fd !important;
  text-decoration-color: #93c5fd !important;
}

/* 5) Focus accesibilitate */
.answer a:focus-visible,
.content a:focus-visible,
.article a:focus-visible,
.faq-answer a:focus-visible {
  outline: 2px dashed rgba(191,219,254,0.95);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   FIX: iframe document (statut.html) #frameDoc
   ========================================= */

#frameDoc{
  display: block;
  width: 100%;
  height: min(82vh, 1100px);   /* înalt și stabil pe desktop */
  border: 0;
  border-radius: 18px;
  background: #ffffff;         /* ca documentul din iframe să fie lizibil */
  overflow: hidden;

  /* cadru elegant, ca înainte */
  box-shadow: 0 14px 40px rgba(0,0,0,.30);
  outline: 1px solid rgba(255,255,255,.14);
}

/* Pe mobil: puțin mai înalt */
@media (max-width: 920px){
  #frameDoc{
    height: 78vh;
    border-radius: 16px;
  }
}

/* =========================================
   NAV LINKS – stil butoane (doar meniu sus)
   ========================================= */

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 14px;
  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);

  color: rgba(255,255,255,0.90);
  text-decoration: none;

  font-weight: 500;
  font-size: 14px;

  transition: background .15s ease,
              border-color .15s ease,
              transform .08s ease;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: translateY(0);
}

/* variantă activă (opțional) */
.nav-links a.active {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  border-color: transparent;
  color: #0b1220;
  font-weight: 600;
}
