/* LOCATION: public/css/footer.css */
/* ============================================
   MHub Jobs — Footer (Premium Liquid Glass v2.0)
   ============================================ */

/* ---------- 0. LAYOUT FIX ---------- */
html { min-height: 100%; }
body {
  min-height: 100dvh;
  margin: 0;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

/* ---------- 1. SITE FOOTER (Background & Glow) ---------- */
.site-footer {
  --mobile-nav-h: 90px; /* Am mărit spațiul pentru bara ta de navigare din poză */
  
  position: relative;
  flex-shrink: 0;
  margin-top: clamp(32px, 6vw, 64px);
  margin-bottom: 0;
  padding: clamp(32px, 5vw, 56px) 0 calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 16px));
  
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  isolation: isolate;
  overflow: hidden; /* Previne ieșirea glow-ului în afara footer-ului */
}

/* Ambient Glow (Lumina difuză din spate) */
.site-footer::after {
  content: '';
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 80%; height: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

@media (min-width: 901px) {
  .site-footer { padding-bottom: clamp(24px, 4vw, 40px); }
}

/* Sheen Top */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
  z-index: 2;
}

.site-footer .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

/* ---------- 2. GRID ---------- */
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
  }
}

/* ---------- 3. BRAND ---------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text, #1c1c1e);
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-logo span {
  background: linear-gradient(135deg, #007aff, #00c7be);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted, #666);
  max-width: 300px;
}

/* ---------- 4. SOCIAL (iOS Style Pills) ---------- */
.footer-social { display: flex; gap: 12px; }

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text, #1c1c1e);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-social-link svg { width: 20px; height: 20px; }

/* Culori brand la hover */
.footer-social-link:hover { transform: translateY(-4px) scale(1.05); }
.footer-social-link[aria-label="Facebook"]:hover { background: #1877F2; color: #fff; border-color: #1877F2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); }
.footer-social-link[aria-label="Instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(220, 39, 67, 0.4); }
.footer-social-link[aria-label="TikTok"]:hover { background: #000; color: #fff; border-color: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }

/* ---------- 5. ACORDEOANE (True Liquid Glass Cards) ---------- */
.footer-accordions { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 768px) {
  .footer-accordions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
  }
}

.footer-group {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.footer-group[open] {
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Header Card */
.footer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text, #1c1c1e);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.footer-heading::-webkit-details-marker { display: none; }
.footer-heading:hover { color: var(--accent, #007aff); }

.footer-chevron {
  width: 16px; height: 16px;
  color: var(--text-muted, #888);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.footer-group[open] .footer-chevron {
  transform: rotate(180deg);
  color: var(--accent, #007aff);
}

/* Lista de link-uri (iOS Settings Style) */
.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px; /* Rândurile stau lipite, stil iOS */
}

/* Rând individual */
.footer-links-list li { display: flex; }

.footer-links-list a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary, #555);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Hover pe rând (Efect de pill) */
.footer-links-list a:hover {
  background: rgba(0, 122, 255, 0.1);
  color: var(--accent, #007aff);
  transform: translateX(4px);
}

/* ---------- 6. APP BAR ---------- */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(120, 120, 128, 0.15);
  font-size: 12.5px;
  color: var(--text-muted, #888);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--text-muted, #888); text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--accent, #007aff); }

.footer-legal span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.1);
  border: 1px solid rgba(120, 120, 128, 0.15);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- 7. DARK MODE (Aici strălucește cu adevărat) ---------- */
[data-theme="dark"] .site-footer {
  background: rgba(15, 15, 18, 0.6); /* Mai transparent */
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .site-footer::after {
  /* Glow mov/albastru în spate */
  background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.15) 0%, rgba(175, 82, 222, 0.1) 40%, transparent 70%);
}

[data-theme="dark"] .site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

[data-theme="dark"] .footer-logo { color: #fff; }
[data-theme="dark"] .footer-description { color: #a1a1a6; }

[data-theme="dark"] .footer-social-link {
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer-group {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-group[open] {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
}

[data-theme="dark"] .footer-heading { color: #fff; }
[data-theme="dark"] .footer-heading:hover { color: #5ac8fa; }

[data-theme="dark"] .footer-chevron { color: #8e8e93; }
[data-theme="dark"] .footer-group[open] .footer-chevron { color: #5ac8fa; }

[data-theme="dark"] .footer-links-list a { color: #c7c7cc; }
[data-theme="dark"] .footer-links-list a:hover {
  background: rgba(90, 200, 250, 0.15);
  color: #5ac8fa;
}

[data-theme="dark"] .footer-bottom { border-top-color: rgba(255, 255, 255, 0.08); color: #8e8e93; }
[data-theme="dark"] .footer-legal a { color: #8e8e93; }
[data-theme="dark"] .footer-legal a:hover { color: #5ac8fa; }
[data-theme="dark"] .footer-legal span { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.1); }

/* ---------- 8. LOGO THEME SWITCHING ---------- */
.logo-icon-light { display: inline-block !important; }
.logo-icon-dark  { display: none !important; }

[data-theme="dark"] .logo-icon-light { display: none !important; }
[data-theme="dark"] .logo-icon-dark  { display: inline-block !important; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .logo-icon-light { display: none !important; }
  html:not([data-theme="light"]) .logo-icon-dark  { display: inline-block !important; }
}

/* ---------- 9. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  .footer-social-link, .footer-heading, .footer-chevron, .footer-links-list, .footer-links-list a, .footer-group {
    transition: none !important;
  }
}