/*
  Delad hamburgermeny för alla statiska rumssidor (web/rum/{roomId}/index.html).
  Varje rumssida definierar sina egna --rn-*-variabler i sin <style>-block,
  ovanför denna fil, för att matcha rummets egen färgpalett. Standardvärden
  nedan är en neutral fallback om en sida glömmer det.
*/
:root {
  --rn-bg: #0B0F12;
  --rn-surface: #14181C;
  --rn-accent: #E0A458;
  --rn-text: #EAF4F1;
  --rn-text-dim: #6F98A0;
  --rn-border: #26313A;
}

.rn-burger {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--rn-border);
  background: rgba(11, 15, 18, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.rn-burger:hover { border-color: var(--rn-accent); }
.rn-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--rn-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.rn-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rn-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rn-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.rn-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.rn-overlay.rn-open { opacity: 1; pointer-events: auto; }

.rn-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 88vw);
  background: var(--rn-surface);
  border-left: 1px solid var(--rn-border);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 24px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}
.rn-drawer.rn-open { transform: translateX(0); }

.rn-drawer ul { list-style: none; margin: 0; padding: 0; }
.rn-section + .rn-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rn-border); }

.rn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: var(--rn-text);
  font-size: 1rem;
  padding: 12px 4px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.rn-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--rn-accent); }
.rn-item .rn-icon { font-size: 1.1rem; width: 1.4em; text-align: center; }

.rn-lang-list { display: none; flex-direction: column; padding-left: 8px; margin-top: 4px; }
.rn-lang-list.rn-open { display: flex; }
.rn-lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--rn-text-dim);
  font-size: 0.92rem;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
}
.rn-lang-btn:hover { color: var(--rn-accent); background: rgba(255, 255, 255, 0.05); }
.rn-lang-btn[aria-current="true"] { color: var(--rn-accent); font-weight: 600; }

.rn-footer-links { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--rn-border); font-size: 0.8rem; }
.rn-footer-links a { display: block; color: var(--rn-text-dim); text-decoration: underline; padding: 4px 0; }

.rn-hero {
  width: 100%;
  aspect-ratio: 1408 / 768;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(8px);
  animation: rn-fade-in 0.6s ease forwards;
  animation-delay: 0.1s;
}

@keyframes rn-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

.rn-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.rn-reveal.rn-visible { opacity: 1; transform: translateY(0); }

.cta { transition: background 0.2s ease, transform 0.15s ease; }
.cta:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .rn-hero, .rn-reveal, .cta { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
