/**
 * Footer Refresh - Compact premium design
 * Scope: footer.ui-footer-refresh
 * Target: ~120-160px total height on desktop
 */

/* ========== Sticky footer - mereu la bottom pe toate paginile ========== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > #wrapper {
  flex: 1;
}
body > .pusher {
  flex-shrink: 0;
}
footer.ui-footer-refresh {
  flex-shrink: 0;
}

/* ========== Design tokens ========== */
footer.ui-footer-refresh {
  --foot-bg: #1a1f26;
  --foot-bg-bar: #14181c;
  --foot-text: #e8ecf0;
  --foot-muted: #8b95a5;
  --foot-accent: #3b82f6;
  --foot-border: #2d3540;
}

/* ========== Main footer zone (compact) ========== */
footer.ui-footer-refresh .top-footer {
  background: var(--foot-bg);
  color: var(--foot-muted);
  padding: 16px 0;
  min-height: 0;
}

footer.ui-footer-refresh .footer-main-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Brand: logo + company (left) */
footer.ui-footer-refresh .footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer.ui-footer-refresh .logo-footer {
  margin: 0;
  flex-shrink: 0;
}

footer.ui-footer-refresh .logo-footer img {
  max-height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

footer.ui-footer-refresh .footer-company {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--foot-text);
  max-width: 320px;
}

footer.ui-footer-refresh .footer-company b {
  color: var(--foot-text) !important;
  font-weight: 600;
}

/* Actions: simple links (right) */
footer.ui-footer-refresh .footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

footer.ui-footer-refresh .footer-sep {
  color: var(--foot-border);
  font-size: 0.9375rem;
  user-select: none;
}

footer.ui-footer-refresh .footer-info.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--foot-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

footer.ui-footer-refresh .footer-info.footer-link:hover {
  color: var(--foot-accent);
}

footer.ui-footer-refresh .footer-info.footer-link .footer-info-icon {
  font-size: 1rem;
  opacity: 0.8;
}

footer.ui-footer-refresh .footer-info.footer-link:hover .footer-info-icon {
  opacity: 1;
}

/* ========== Bottom bar (40-48px) ========== */
footer.ui-footer-refresh .bottom-footer {
  background: var(--foot-bg-bar);
  padding: 14px 0;
  min-height: 0;
  border-top: 1px solid var(--foot-border);
}

footer.ui-footer-refresh .footer-bar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

footer.ui-footer-refresh .footer-copyright {
  font-size: 1rem;
  color: var(--foot-muted);
  padding: 0;
}

footer.ui-footer-refresh .footer-copyright a {
  color: var(--foot-text);
  text-decoration: none;
  transition: color 0.2s;
}

footer.ui-footer-refresh .footer-copyright a:hover {
  color: var(--foot-accent);
}

footer.ui-footer-refresh .footer-links-col {
  padding: 0;
  text-align: right;
}

footer.ui-footer-refresh .bottom-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

footer.ui-footer-refresh .bottom-footer ul li {
  display: inline;
}

footer.ui-footer-refresh .bottom-footer ul li a {
  font-size: 1rem;
  color: var(--foot-muted);
  text-decoration: none;
  padding: 0 8px;
  border-right: 1px solid var(--foot-border);
  transition: color 0.2s;
}

footer.ui-footer-refresh .bottom-footer ul li:last-child a {
  border-right: none;
  padding-right: 0;
}

footer.ui-footer-refresh .bottom-footer ul li a:hover {
  color: var(--foot-accent);
}

/* ========== Responsive ========== */
@media (max-width: 767px) {
  footer.ui-footer-refresh .top-footer {
    padding: 16px 0;
  }

  footer.ui-footer-refresh .footer-main-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer.ui-footer-refresh .footer-brand {
    justify-content: center;
  }

  footer.ui-footer-refresh .footer-company {
    max-width: 100%;
  }

  footer.ui-footer-refresh .footer-actions {
    justify-content: center;
    margin-top: 12px;
  }

  footer.ui-footer-refresh .footer-info.footer-link {
    font-size: 0.9375rem;
  }

  footer.ui-footer-refresh .footer-bar-row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  footer.ui-footer-refresh .footer-links-col {
    text-align: center;
  }

  footer.ui-footer-refresh .bottom-footer ul li a {
    padding: 0 6px;
    font-size: 0.9375rem;
  }
}