/* CSS Global - Feeling Events */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #750008;
  --accent: #B22222;
  --bg: #050505;
  --bg-card: #0a0a0a;
  --bg-input: #111;
  --border: #1a1a1a;
  --text: #ffffff;
  --text-muted: #888;
  --text-dim: #555;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.loading { overflow: hidden; }

a { text-decoration: none; color: inherit; }

button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }

/* Preloader */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
#preloader img { height: 60px; }

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px; height: 96px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

header.scrolled {
  background: rgba(5,5,5,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

header img { height: 37px; }

nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }

nav a {
  font-size: 15px; font-weight: 600; color: var(--text);
  transition: color 0.2s; letter-spacing: 0.02em;
  font-family: 'Sora', sans-serif;
}

nav a:hover { color: var(--text); }
nav a.active { color: var(--primary); }

/* Compact Language Selector */
.lang-selector {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.lang-trigger:hover { opacity: 0.7; }

.lang-trigger svg {
  transition: transform 0.2s;
  stroke: var(--text);
}

.lang-trigger.open svg { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  z-index: 2000;
  min-width: 70px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: center;
  padding: 7px 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-option.active { color: var(--primary); }

/* Mobile pills */
.lang-pill {
  padding: 6px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; letter-spacing: 0.05em;
  transition: all 0.2s;
}

.lang-pill:hover { color: var(--text); border-color: var(--text-dim); }
.lang-pill.active { color: var(--primary); border-color: var(--primary); background: rgba(117,0,8,0.12); }

/* Mobile menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: 0.3s; }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(5,5,5,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}

.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 24px; font-weight: 500; color: var(--text-muted); }
.mobile-nav a.active { color: var(--primary); }
.mobile-nav .lang-switcher { border: none; margin: 24px 0 0; padding: 0; }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 60px 40px;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}

.footer-col { text-align: right; }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px;
}

.footer-col a {
  display: block; font-size: 14px; color: var(--text-muted);
  padding: 6px 0; transition: color 0.2s;
  text-align: right;
}

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

.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  header { padding: 0 20px; }
  nav { display: none; }
  .menu-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col { text-align: right; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-col { text-align: center; }
}
