/* MethodFeeder — Tema futuristă unificată */
:root {
  --mf-bg: #070b14;
  --mf-bg-elevated: #0d1424;
  --mf-panel: #111827;
  --mf-border: rgba(0, 209, 160, 0.12);
  --mf-primary: #00d1a0;
  --mf-primary-dim: #00a37a;
  --mf-accent: #22d3ee;
  --mf-glow: rgba(0, 209, 160, 0.35);
  --mf-text: #e2e8f0;
  --mf-muted: #94a3b8;
  --mf-nav-h: 72px;
  --mf-header-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body.mf-app {
  background: var(--mf-bg);
  color: var(--mf-text);
  min-height: 100dvh;
  padding-bottom: calc(var(--mf-nav-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.mf-app {
    padding-bottom: 0;
  }
}

body.mf-app.mf-light-page {
  background: #f1f5f9;
  color: #0f172a;
}

/* Grid ambient background */
.mf-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 209, 160, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(34, 211, 238, 0.08), transparent),
    var(--mf-bg);
}

.mf-glass {
  background: rgba(13, 20, 36, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--mf-border);
}

.mf-glass-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Header */
.mf-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--mf-header-h);
}

.mf-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mf-logo img {
  height: 2.5rem;
  width: auto;
  filter: drop-shadow(0 0 12px var(--mf-glow));
}

@media (min-width: 768px) {
  .mf-logo img {
    height: 3rem;
  }
}

.mf-desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .mf-desktop-nav {
    display: flex;
  }
}

.mf-nav-link {
  position: relative;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mf-muted);
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}

.mf-light-page .mf-nav-link {
  color: #64748b;
}

.mf-nav-link:hover,
.mf-nav-link.active {
  color: var(--mf-primary);
  background: rgba(0, 209, 160, 0.08);
}

.mf-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mf-primary);
  box-shadow: 0 0 8px var(--mf-glow);
}

.mf-user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--mf-border);
  background: rgba(0, 209, 160, 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mf-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mf-user-chip:hover {
  border-color: var(--mf-primary);
  box-shadow: 0 0 20px var(--mf-glow);
}

.mf-user-chip img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mf-primary);
}

/* Mobile bottom nav */
.mf-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  height: var(--mf-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--mf-border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
}

@media (min-width: 768px) {
  .mf-bottom-nav {
    display: none;
  }
}

.mf-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--mf-muted);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.mf-bottom-nav a i {
  font-size: 1.25rem;
  transition: transform 0.2s, filter 0.2s;
}

.mf-bottom-nav a.active {
  color: var(--mf-primary);
}

.mf-bottom-nav a.active i {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px var(--mf-glow));
}

/* Cards & sections */
.mf-card {
  position: relative;
  background: rgba(13, 20, 36, 0.55);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(0, 209, 160, 0.14);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.mf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 209, 160, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 209, 160, 0.06);
}

.mf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--mf-primary), var(--mf-primary-dim));
  color: #041510;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 0.875rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--mf-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.mf-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--mf-glow);
}

.mf-gradient-text {
  background: linear-gradient(90deg, var(--mf-primary), var(--mf-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mf-main {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* Legacy compat — păstrează culorile vechi unde e nevoie */
.bg-custom-green { background-color: #00d1a0 !important; }
.text-custom-green { color: #00d1a0 !important; }

/* Concurs — shell pagină */
.mf-competition-shell {
  position: relative;
  z-index: 1;
}

.mf-competition-hero {
  background: var(--mf-panel);
  border-bottom: 1px solid var(--mf-border);
}

.mf-competition-main {
  background: var(--mf-panel);
  border: 1px solid var(--mf-border);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
}

/* Print */
@media print {
  .mf-bottom-nav,
  .mf-header,
  .mf-ambient,
  #floating-share-btn {
    display: none !important;
  }
  body.mf-app {
    padding-bottom: 0;
  }
}
