/* Kenmeet UI Navigation & Footer Styles */
:root {
  --azure: #3B82F6;
  --azure-dim: #2563EB;
  --cyan: #7DD3FC;
  --radius: 16px;
  --ff-display: 'Space Grotesk', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
}

body.dark-theme, html[data-theme="dark"] {
  --bg-0: #0A1526;
  --bg-1: #0F2444;
  --bg-2: #132C52;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 180, 255, 0.14);
  --text-0: #F3F7FF;
  --text-1: #B9C7E6;
  --text-2: #7C8CB0;
  --glow: rgba(59, 130, 246, 0.35);
}

body:not(.dark-theme), html[data-theme="light"] {
  --bg-0: #EEF4FF;
  --bg-1: #DCE9FF;
  --bg-2: #CFE0FF;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(37, 99, 235, 0.14);
  --text-0: #0B1830;
  --text-1: #3B4B6B;
  --text-2: #647089;
  --glow: rgba(59, 130, 246, 0.18);
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(10, 21, 38, 0.55), transparent);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease;
}

body:not(.dark-theme) nav {
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.75), rgba(238, 244, 255, 0));
}

nav.scrolled {
  border-bottom: 1px solid var(--border);
  background: var(--bg-0);
}

body:not(.dark-theme) nav.scrolled {
  background: rgba(238, 244, 255, 0.9);
}

.logo {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: .92rem;
  color: var(--text-1);
}

.nav-links a {
  transition: color .2s ease, text-shadow .2s ease;
  font-family: var(--ff-body);
  font-weight: 500;
  text-decoration: none !important;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-0);
}

body.dark-theme .nav-links a:hover,
body.dark-theme .nav-links a.active {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(125, 211, 252, 0.4);
}

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

.theme-toggle {
  width: 52px;
  height: 28px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azure), var(--cyan));
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

body:not(.dark-theme) .theme-toggle::after,
html[data-theme="light"] .theme-toggle::after {
  transform: translateX(24px);
}

/* Dropdown override inside nav-actions */
.nav-actions .dropdown-menu {
  background: var(--surface) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  margin-top: 15px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-actions .dropdown-item {
  color: var(--text-1) !important;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-actions .dropdown-item:hover,
.nav-actions .dropdown-item.active {
  background: var(--surface-strong) !important;
  color: var(--text-0) !important;
}

/* Buttons */
.btn {
  font-family: var(--ff-body) !important;
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--azure), var(--azure-dim)) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px var(--glow) !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--glow) !important;
  color: #fff !important;
}

.btn-ghost {
  background: var(--surface) !important;
  color: var(--text-0) !important;
  border: 1px solid var(--border) !important;
}

.btn-ghost:hover {
  background: var(--surface-strong) !important;
  transform: translateY(-2px);
  color: var(--text-0) !important;
}

/* Mobile responsive menu */
@media(max-width: 960px) {
  .nav-links {
    display: none;
  }
}

/* ---------- FOOTER ---------- */
footer {
  padding: 70px 0 40px !important;
  border-top: 1px solid var(--border) !important;
  background: transparent !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-brand h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  color: var(--text-0);
}

.footer-brand p {
  color: var(--text-1);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--azure);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-1);
  font-size: .92rem;
  margin-bottom: 12px;
  transition: color .2s ease;
  text-decoration: none !important;
}

.footer-col a:hover {
  color: var(--text-0);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: .85rem;
}

.footer-bottom .links {
  display: flex;
  gap: 28px;
}

.footer-bottom .links a {
  color: var(--text-2);
  text-decoration: none !important;
}

.footer-bottom .links a:hover {
  color: var(--text-0);
}

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

/* ---------- COOKIE BANNER ---------- */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  overflow: hidden;
  padding: 16px 24px;
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s ease-in-out;
  color: var(--text-0);
  font-family: var(--ff-body);
}

.show-cookie {
  display: flex;
}

.confirm-cookie {
  float: right;
  width: 100px;
  background: linear-gradient(135deg, var(--azure), var(--azure-dim)) !important;
  color: #fff !important;
}

.cookie p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie i {
  font-size: 1.1rem;
  margin-right: 8px;
  color: var(--azure);
}

.cookie a {
  color: var(--cyan) !important;
  text-decoration: underline !important;
}

/* Mobile responsive hamburger menu */
.menu-toggle-btn {
  display: none;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--text-0);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  outline: none !important;
}

.menu-toggle-btn:hover {
  background: var(--border);
  color: var(--azure);
  transform: scale(1.05);
}

body.dark-theme .menu-toggle-btn:hover {
  color: var(--cyan);
}

.mobile-nav-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  gap: 0.5rem;
  z-index: 1025;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  
  /* Smooth CSS native transition */
  transform: translateY(-150%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme .mobile-nav-menu {
  background: rgba(10, 21, 38, 0.96) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
}

.mobile-nav-menu.open {
  transform: translateY(0);
}

.mobile-nav-menu a {
  color: var(--text-1);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
}

.mobile-nav-menu a i {
  width: 24px;
  font-size: 1.05rem;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.mobile-nav-menu a:hover {
  color: var(--azure) !important;
  background: rgba(59, 130, 246, 0.08) !important;
}

.mobile-nav-menu a:hover i {
  color: var(--azure) !important;
}

body.dark-theme .mobile-nav-menu a:hover {
  color: var(--cyan) !important;
  background: rgba(0, 229, 255, 0.08) !important;
}

body.dark-theme .mobile-nav-menu a:hover i {
  color: var(--cyan) !important;
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
  width: 100%;
}

@media (max-width: 960px) {
  .menu-toggle-btn {
    display: inline-flex;
  }
  
  /* Hide desktop links and login buttons on mobile */
  .nav-links,
  .nav-actions .btn,
  .nav-actions .dropdown {
    display: none !important;
  }
  
  .nav-actions {
    gap: 8px !important;
  }
}

