/* soken-common.css — shared header/footer/social bar styles for ALL pages */

:root {
  --bg: #0c1525;
  --bg-card: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.72);
  --text-bright: #fff;
  --accent-start: #273dd2;
  --accent-mid: #6bb9ec;
  --accent-end: #7ac4f4;
  --gradient: linear-gradient(135deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  --font: Gilroy, -apple-system, sans-serif;
  --font-bold: Gilroy-Bold, -apple-system, sans-serif;
  --font-medium: Gilroy-Medium, -apple-system, sans-serif;
  --container: 1060px;
}

@font-face { font-family: Gilroy; src: url(/fonts/Gilroy-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Gilroy-Bold; src: url(/fonts/Gilroy-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Gilroy-Medium; src: url(/fonts/Gilroy-Regular.ttf) format("truetype"); font-weight: 500; font-display: swap; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12,21,37,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 64px;
}
.header-logo svg { height: 28px; width: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.header-nav a {
  font-family: var(--font-medium); font-size: 0.875rem;
  color: var(--text); transition: color 0.2s; text-decoration: none;
}
.header-nav a:hover { color: var(--text-bright); }
.header-nav a.active { color: var(--text-bright); }

/* RTL fixes — prevent nav text from overlapping logo */
[dir="rtl"] .header-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .menu-toggle { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .header-logo { margin-right: 0; }

/* Language switcher */
.lang-switcher { position: relative; display: inline-flex; align-items: center; margin-left: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-medium); font-size: 0.8125rem;
  color: var(--text); background: transparent; cursor: pointer;
  border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--text-bright); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); }
.lang-btn svg { width: 12px; height: 12px; opacity: 0.7; transition: transform 0.2s; }
.lang-switcher.open .lang-btn svg { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px; max-height: 320px; overflow-y: auto;
  background: rgba(12,21,37,0.98); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
  padding: 6px; box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 110;
}
.lang-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px;
  font-family: var(--font-medium); font-size: 0.8125rem; color: var(--text); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--text-bright); }
.lang-dropdown a.active { color: var(--text-bright); background: rgba(107,185,236,0.08); }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative; margin-left: 12px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--gradient); border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; flex-direction: column; gap: 20px;
    position: fixed; top: 64px; left: 0;
    width: 100vw; height: calc(100vh - 64px); height: calc(100dvh - 64px);
    background: #0c1525 !important;
    padding: 40px 24px 80px; z-index: 1500;
    overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box;
    animation: menuSlideIn 0.22s ease;
  }
  @keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .header-nav.open a {
    font-size: 1.25rem; padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06); color: var(--text-bright);
  }
  body.menu-open { overflow: hidden; touch-action: none; }
  body.menu-open .consent-banner,
  body.menu-open .fixed-social-bar { display: none !important; }
  .menu-toggle { display: flex; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================
   FOOTER — !important overrides to beat page-specific CSS
   ============================================ */
.site-footer {
  padding: 48px 0 32px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  background: #0c1525 !important;
  font-family: Gilroy, -apple-system, sans-serif !important;
}
.site-footer * {
  font-family: inherit;
}
.footer-inner {
  display: flex !important; justify-content: space-between !important; align-items: flex-start !important;
  flex-direction: row !important;
  flex-wrap: wrap !important; gap: 40px !important;
  max-width: 1060px !important; margin: 0 auto !important; padding: 0 24px !important;
  text-align: left !important;
}
.footer-brand { text-align: left !important; max-width: 280px !important; flex-shrink: 0 !important; }
.footer-brand p {
  font-size: 0.8125rem !important; color: rgba(255,255,255,0.72) !important;
  margin-top: 16px !important; max-width: 280px !important;
  font-family: Gilroy, -apple-system, sans-serif !important;
  background: none !important; -webkit-text-fill-color: rgba(255,255,255,0.72) !important;
}
.footer-brand .footer-logo svg { height: 24px !important; }
.footer-links { display: flex !important; gap: 48px !important; flex-direction: row !important; text-align: left !important; }
.footer-col { text-align: left !important; }
.footer-col-title {
  font-family: Gilroy-Bold, -apple-system, sans-serif !important; font-size: 0.75rem !important;
  text-transform: uppercase !important; letter-spacing: 0.08em !important;
  color: #fff !important; margin-bottom: 12px !important;
  background: none !important; -webkit-text-fill-color: #fff !important;
}
.footer-col a {
  display: block !important; font-size: 0.875rem !important; color: rgba(255,255,255,0.72) !important;
  padding: 4px 0 !important; transition: color 0.2s !important; text-decoration: none !important;
  background: none !important; -webkit-text-fill-color: rgba(255,255,255,0.72) !important;
}
.footer-col a:hover { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.footer-bottom {
  display: flex !important; justify-content: space-between !important; align-items: center !important;
  margin-top: 48px !important; padding-top: 24px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  font-size: 0.75rem !important; color: rgba(255,255,255,0.55) !important;
  flex-wrap: wrap !important; gap: 16px !important;
  background: none !important; -webkit-text-fill-color: rgba(255,255,255,0.55) !important;
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
}

/* ============================================
   FIXED SOCIAL BAR
   ============================================ */
.fixed-social-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px;
  background: rgba(12,21,37,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 640px) {
  .fixed-social-bar { height: 44px; gap: 4px; }
  .fixed-social-bar .social-btn { font-size: 0; padding: 0 10px; height: 32px; }
  .fixed-social-bar .social-btn svg { width: 18px; height: 18px; }
}
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-family: var(--font-medium); font-size: 0.8125rem;
  transition: color 0.2s, background 0.2s; background: transparent;
}
.social-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.social-btn-primary {
  color: #0c1525;
  background: linear-gradient(135deg,#273dd2,#6bb9ec,#7ac4f4);
  font-family: var(--font-bold);
}
.social-btn-primary:hover {
  background: linear-gradient(135deg,#3050e8,#7ec8f0,#8fd0f8);
  color: #0c1525;
}

/* Ensure footer content is not hidden behind fixed social bar */
.site-footer { padding-bottom: 72px !important; }

