/* =====================================================
   Ortak üst bar, dil seçici, butonlar ve footer
   index.php, blog.php ve glbot-python-api.php bu dosyayı kullanır.
   Üst bar veya footer'da değişiklik yapmak için yalnızca bu dosya düzenlenir.
   Renkler sayfanın :root değişkenlerinden gelir (--bg, --line, --muted, --text).
   ===================================================== */

/* ─── Üst bar ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(11, 12, 15, .95), rgba(11, 12, 15, .85));
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand .logo img {
  width: 160px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* ─── Dil seçici ─── */
.lang-switcher {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  letter-spacing: .4px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
  line-height: 1;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--text);
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, .65), rgba(6, 182, 212, .35));
  color: rgba(255, 255, 255, .95);
}

.lang-flag {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
}

/* ─── Menü ─── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.nav-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ─── Butonlar ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .24);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, .95), rgba(6, 182, 212, .80));
  border-color: rgba(255, 255, 255, .22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 1), rgba(6, 182, 212, .92));
}

.btn-ghost {
  background: rgba(255, 255, 255, .03);
}

.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.discord-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
  user-select: none;
  flex-shrink: 0;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .22);
}

/* ─── Footer ─── */
footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 28px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, .10);
  margin-top: 40px;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-brand .footer-logo {
  width: 148px;
  height: auto;
  display: block;
}

.footer-epvp {
  display: block;
  opacity: .85;
  transition: opacity .15s ease, transform .15s ease;
}

.footer-epvp:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-epvp-logo {
  height: 46px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social .icon-btn {
  color: rgba(255, 255, 255, .85);
}

.footer-social .icon-btn img,
.footer-social .icon-btn svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255, 255, 255, .85);
}

.footer-col a {
  display: block;
  width: fit-content;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  transition: color .15s ease, transform .15s ease;
}

.footer-col a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Responsive: tablet ─── */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    width: calc(100% - 32px);
  }
}

/* ─── Responsive: mobil ─── */
@media (max-width: 767px) {
  .container {
    width: calc(100% - 24px);
  }

  .topbar-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .brand .logo img {
    width: 140px;
    max-height: 50px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0;
    order: 3;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 12px 16px;
    text-align: center;
  }

  .nav-btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .nav-actions {
    width: 100%;
    order: 2;
  }

  .btn {
    flex: 1;
    justify-content: center;
    font-size: 12px;
    padding: 10px 12px;
  }

  .discord-icon {
    width: 18px;
    height: 18px;
  }

  .lang-switcher {
    order: 2;
  }
}

/* ─── Responsive: küçük mobil ─── */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px);
  }

  .brand .logo img {
    width: 120px;
    max-height: 45px;
  }

  .btn {
    font-size: 11px;
    padding: 9px 10px;
    gap: 8px;
  }

  .icon {
    width: 14px;
    height: 14px;
  }

  .lang-btn {
    font-size: 10px;
    padding: 4px 6px;
    gap: 3px;
  }
}
