/* ============================================================
   MKWork Manager — Public Pages Shared Stylesheet
   Folosit de: toate paginile publice (landing, register, pagini
   legale, maintenance, suspended, payment_pending, contact)
   Font: DM Sans (body) + system-ui (titluri, logo, butoane)
   ============================================================ */

/* ── Fonturi locale (google-fonts.css incarcata in _head_meta.html) ── */

/* ── CSS Variables — tema LIGHT industriala (fond deschis, contrast bun, accesibil) ── */
:root {
  --ink:         #f0f5fa;   /* fond principal — gri-albăstrui deschis */
  --slate:       #e3edf5;   /* sectiuni alternate */
  --slate2:      #ffffff;   /* carduri / panouri — alb pur */
  --slate3:      #cddce9;   /* borduri active / hover */
  --blue:        #1a6fa8;   /* albastru industrial — puternic pe fond deschis */
  --blue-2:      #1457a0;   /* hover — mai inchis */
  --blue-dim:    rgba(26,111,168,.10);
  --blue-glow:   rgba(26,111,168,.28);
  --cyan:        #0090c0;
  --green:       #16a34a;
  --amber:       #d97706;
  --red:         #dc2626;
  --text:        #1a2d42;   /* text principal — navy inchis, contrast ridicat */
  --text-muted:  #3d607a;   /* text secundar */
  --text-dim:    #6b8da6;   /* text subtil */
  --border:      rgba(26,111,168,.15);
  --border-2:    rgba(26,111,168,.22);
  --border-blue: rgba(26,111,168,.28);
  --card:        rgba(255,255,255,.92);
  --card-2:      rgba(240,245,250,.95);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ── */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 15px;
  font-weight: 400;
}

/* ── Headings — DM Sans ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.01em; font-weight: 900; }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); letter-spacing: 0; }
h3 { font-size: 1.05rem; font-weight: 700; }

p { color: var(--text-muted); line-height: 1.75; }
a { color: var(--blue-2); }

/* ── NAV — identic cu landing ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px,5vw,80px);
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(240,245,250,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,111,168,.18);
  box-shadow: 0 1px 8px rgba(26,111,168,.08);
  transition: background .3s;
}
.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 900; font-size: 1.1rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon img { width: 30px; height: 30px; object-fit: contain; border-radius: 7px; }
.logo-text { white-space: nowrap; }

/* Nav — buton înapoi (pagini legale) */
.nav-back {
  font-family: system-ui, sans-serif;
  font-size: .82rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 13px;
  transition: all .2s;
}
.nav-back:hover { color: var(--blue); background: var(--blue-dim); }

/* Nav — dreapta (landing + contact) */
.nav-r { display: flex; gap: 2px; align-items: center; }
.nav-r a.desk {
  color: var(--text-muted); text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 7px 11px; transition: color .2s;
}
.nav-r a.desk:hover { color: var(--blue); background: var(--blue-dim); }
/* ── Stil comun ambele butoane navbar ── */
.btn-login,
.nav-cta {
  box-sizing: border-box !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  gap: 6px !important; height: 34px !important; padding: 0 14px !important;
  font-family: 'DM Sans', sans-serif !important; font-size: .8rem !important;
  font-weight: 700 !important; letter-spacing: .07em !important;
  text-transform: uppercase !important; white-space: nowrap !important;
  text-decoration: none !important; line-height: 1 !important;
  border: 1.5px solid var(--blue) !important;
  appearance: none !important; -webkit-appearance: none !important;
  transition: background .18s, color .18s !important; cursor: pointer !important;
}
/* Login — outlined */
.btn-login { background: transparent !important; color: var(--blue) !important; }
.btn-login:hover { background: var(--blue) !important; color: #fff !important; }
/* Inregistrare — filled */
.nav-cta { background: var(--blue) !important; color: #fff !important; margin-left: 4px !important; }
.nav-cta:hover { background: var(--blue-2) !important; border-color: var(--blue-2) !important; color: #fff !important; }

/* Nav — separator */
.nav-sep { width: 1px; height: 22px; background: rgba(26,111,168,.18); margin: 0 6px; flex-shrink: 0; }

/* Nav responsive */
@media (max-width: 860px) {
  /* La tablet ascunde link-urile de navigare text */
  .desk { display: none !important; }
}

@media (max-width: 480px) {
  nav { padding: 0 14px; }
  .logo-text { display: none !important; }
  .nav-cta { display: none !important; }
  .btn-login { height: 32px !important; padding: 0 12px !important; font-size: .72rem !important;
               letter-spacing: .04em !important; }
  .nav-r { gap: 4px; }
}

@media (max-width: 360px) {
  nav { padding: 0 10px; }
  .lang-btn { padding: 0 8px !important; height: 32px !important; font-size: .76rem; }
  .btn-login { height: 32px !important; padding: 0 8px !important; font-size: .68rem !important; }
}

/* ── Layout cu sidebar (pagini legale) ── */
.layout {
  max-width: 1120px; margin: 0 auto;
  padding: 94px clamp(16px,4vw,32px) 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { position: static !important; display: flex; flex-wrap: wrap; gap: 8px; }
  .sidebar-title { display: none; }
  .sidebar-link { padding: 6px 14px; border-radius: 20px; font-size: .78rem; border: 1px solid var(--border); white-space: nowrap; }
  .sidebar-divider { display: none; }
}

/* ── Sidebar navigare ── */
.sidebar {
  position: sticky; top: 80px;
  background: var(--slate2);
  border: 1px solid var(--border);
  border-radius: 0; padding: 20px 0;
  overflow: hidden;
  border-left: 3px solid var(--blue);
}
.sidebar-title {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-dim);
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px; font-size: .83rem;
  color: var(--text-muted); text-decoration: none;
  transition: all .18s; border-left: 2px solid transparent;
}
.sidebar-link i { font-size: .9rem; opacity: .7; flex-shrink: 0; }
.sidebar-link:hover { color: var(--blue); background: var(--blue-dim); }
.sidebar-link.active {
  color: var(--blue-2); background: var(--blue-dim);
  border-left-color: var(--blue-2); font-weight: 500;
}
.sidebar-link.active i { opacity: 1; }
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ── Page header (titlu pagini legale) ── */
.page-header {
  margin-bottom: 40px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: system-ui, sans-serif;
  font-size: clamp(1.7rem,4vw,2.4rem);
  font-weight: 800; letter-spacing: -.5px;
  margin-bottom: 10px; line-height: 1.2;
}
.page-header p { color: var(--text-muted); font-size: .92rem; max-width: 540px; }

/* Badge colorat în page-header */
.page-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px;
}

/* ── Section headings (pagini legale) ── */
.section { margin-bottom: 40px; }
.section h2 {
  font-family: system-ui, sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.section h2 .sec-num {
  font-size: .72rem; font-weight: 700;
  color: var(--text-dim); background: rgba(26,111,168,.08);
  border-radius: 4px; padding: 2px 7px;
}
.section p { font-size: .88rem; margin-bottom: 12px; }
.section ul, .section ol { padding-left: 20px; }
.section li { font-size: .88rem; color: var(--text-muted); margin-bottom: 8px; line-height: 1.6; }
.section strong { color: var(--text); }

/* ── Footer pagini legale ── */
.page-footer {
  max-width: 1120px; margin: 0 auto;
  padding: 24px clamp(16px,4vw,32px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.page-footer .pf-logo {
  font-family: system-ui, sans-serif;
  font-size: .88rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.page-footer p { font-size: .75rem; color: var(--text-dim); }
.page-footer a { font-size: .75rem; color: var(--text-dim); text-decoration: none; }
.page-footer a:hover { color: var(--text-muted); }

/* ── Container simplu (contact, etc.) ── */
.container-page {
  max-width: 820px; margin: 0 auto;
  padding: 100px clamp(20px,5vw,40px) 80px;
}

/* ── Carduri generice ── */
.card-base {
  background: var(--slate2);
  border: 1px solid var(--border-blue);
  border-radius: 0; padding: 24px;
  border-top: 3px solid var(--blue);
}

/* ── Badge tag (eyebrow) ── */
.badge-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  border-radius: 20px; padding: 5px 14px;
  font-size: .78rem; font-weight: 600;
  color: var(--blue-2); margin-bottom: 18px;
}

/* ── Butoane comune ── */
.btn-primary {
  background: var(--blue); color: white;
  border: 2px solid var(--blue);
  padding: 12px 28px; font-size: .9rem; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  clip-path: polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));
  transition: all .2s;
}
.btn-primary:hover { background: transparent; color: var(--blue); }

.btn-secondary {
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border-2);
  padding: 11px 22px; font-size: .88rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  clip-path: polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px));
  transition: all .2s;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ── Form elements (stil comun) ── */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-size: .78rem; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 7px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--ink);
  border: 1.5px solid var(--border-blue);
  border-radius: 0; padding: 11px 14px;
  color: var(--text); font-size: .9rem;
  font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

/* ── Info boxes ── */
.ibox {
  border-radius: 10px; padding: 13px 15px;
  font-size: .83rem; margin-top: 12px;
  display: flex; gap: 10px; align-items: flex-start;
}
.ibox-blue   { background: rgba(59,111,255,.08); border: 1.5px solid rgba(59,111,255,.25); color: var(--text-muted); }
.ibox-yellow { background: rgba(245,158,11,.08); border: 1.5px solid rgba(245,158,11,.3);  color: #fcd34d; }
.ibox-green  { background: rgba(34,197,94,.07);  border: 1.5px solid rgba(34,197,94,.25);  color: #86efac; }
.ibox-red    { background: rgba(239,68,68,.08);  border: 1.5px solid rgba(239,68,68,.3);   color: #f87171; }

/* ── Tabel comun ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.data-table th {
  text-align: left; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 11px 14px; color: var(--text-muted);
  border-bottom: 1px solid rgba(26,111,168,.08);
}
.data-table tr:hover td { background: rgba(26,111,168,.04); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,111,168,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,111,168,.45); }
