/* ── HEADER & NAV ── */
header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,14,.85);
  backdrop-filter: blur(20px);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-left { display: flex; align-items: center; gap: 4px; }
.nav-left a {
  padding: 5px 11px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted2);
  transition: color .15s, background .15s;
}
.nav-left a:hover { color: var(--white); background: var(--bg3); }
.nav-left a.on { color: var(--teal); }

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}
.nav-logo-dot {
  width: 28px; height: 28px;
  background: var(--teal);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-dot span { font-size: .9rem; color: var(--bg); }

.nav-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

.nav-lang {
  display: flex; align-items: center; gap: 1px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.nav-lang button {
  background: none; border: none;
  padding: 4px 8px;
  font-size: .72rem; font-weight: 700;
  color: var(--muted);
  border-radius: 5px;
  transition: all .15s;
}
.nav-lang button.on { background: var(--border2); color: var(--white); }

.btn-ghost {
  border: 1px solid var(--border2);
  background: none;
  color: var(--muted2);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
  transition: all .15s;
}
.btn-ghost span { font-size: .9rem; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-post {
  background: var(--teal);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 7px 15px;
  font-size: .82rem; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
  transition: opacity .15s;
  white-space: nowrap;
}
.btn-post:hover { opacity: .88; }
.btn-post span { font-size: .9rem; }

a.btn-ghost, a.btn-post { text-decoration: none; }

/* ── USER DROPDOWN ── */
.nav-user { position: relative; }

.nav-user-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 5px 10px 5px 5px;
  cursor: pointer;
  transition: border-color .15s;
  color: var(--white);
}
.nav-user-btn:hover { border-color: var(--teal); }

.nav-user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5a0, #0891b2);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 800;
  color: #0c0c0e;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.nav-user-name  { font-size: .8rem; font-weight: 600; color: var(--white); }
.nav-user-caret { font-size: .95rem !important; color: var(--muted); transition: transform .2s; }
.nav-user-btn:hover .nav-user-caret,
.nav-user:hover .nav-user-caret { transform: rotate(180deg); }

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
  overflow: hidden;
}
.nav-user:hover .nav-user-dropdown,
.nav-user:focus-within .nav-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
}
.nav-dropdown-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5a0, #0891b2);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800;
  color: #0c0c0e;
  flex-shrink: 0;
  letter-spacing: -.5px;
}
.nav-dropdown-name  { font-size: .83rem; font-weight: 700; color: var(--white); }
.nav-dropdown-email { font-size: .72rem; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 148px; }

.nav-dropdown-divider { height: 1px; background: var(--border); margin: 2px 0; }

.nav-dropdown-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 16px;
  font-size: .82rem; font-weight: 500;
  color: var(--muted2);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-dropdown-item span { font-size: 1rem !important; }
.nav-dropdown-item:hover { background: var(--bg3); color: var(--white); }
.nav-dropdown-item.danger:hover { background: rgba(239,68,68,.1); color: #f87171; }

/* ── FOOTER ── */
footer { border-top: 1px solid #e2e8f0; background: #0c0c0e; }

.footer-main {
  max-width: 1200px; margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.f-logo { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.f-logo .nav-logo-dot { width: 26px; height: 26px; border-radius: 6px; }
.f-logo .nav-logo-dot span { font-size: .8rem; }
.f-desc { font-size: .8rem; color: var(--muted); line-height: 1.7; }

.f-col h5 { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.f-col ul a { font-size: .8rem; color: var(--muted2); transition: color .14s; }
.f-col ul a:hover { color: var(--teal); }

.f-nl-row { display: flex; gap: 6px; }
.f-nl-row input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 8px; padding: 9px 12px;
  font-size: .8rem; font-family: inherit;
  color: var(--white); outline: none;
  transition: border-color .15s;
}
.f-nl-row input::placeholder { color: var(--muted); }
.f-nl-row input:focus { border-color: var(--teal); }
.f-nl-row button {
  background: var(--teal); color: var(--bg); border: none;
  border-radius: 8px; padding: 0 12px; cursor: pointer;
  display: flex; align-items: center; transition: opacity .15s;
}
.f-nl-row button:hover { opacity: .88; }
.f-nl-row button span { font-size: 1rem; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted2); margin-left: 16px; }
.footer-bottom a:hover { color: var(--teal); }

/* ── RESPONSIVE ── */
.nav-unread-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--teal); color: #0c0c0e;
  font-size: .65rem; font-weight: 800;
  padding: 0 5px; margin-left: auto;
}

@media (max-width: 1000px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}
/* Tablets + landscape phones */
@media (max-width: 900px) {
  .nav-lang { display: none; }
  .btn-register { display: none; }
  .btn-ghost { padding: 7px 12px; font-size: .8rem; }
  .btn-post  { padding: 7px 14px; font-size: .8rem; }
  .btn-post span.material-icons-round { display: none; }
  .nav-right { gap: 6px; }
}
/* Portrait phones */
@media (max-width: 700px) {
  .nav { grid-template-columns: auto 1fr; gap: 8px; padding: 0 16px; }
  .nav-left { display: none; }
  .nav-logo { justify-content: flex-start; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
