/**
 * MysticX - Global Styles
 * Reset, base, utilities
 */

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* MEDIA */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* FORM ELEMENTS */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* LINKS */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  color: var(--mx-gold, #FFD700);
}

ul,
ol {
  list-style: none;
}

/* HEADINGS */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  line-height: 1.2;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--mx-void, #0f0f0f);
}

::-webkit-scrollbar-thumb {
  background: var(--mx-gold-dim, rgba(255, 215, 0, 0.3));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mx-gold, #FFD700);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--mx-gold-dim, rgba(255,215,0,0.3)) var(--mx-void, #0f0f0f);
}

/* SELECTION */
::selection {
  background: var(--mx-gold, #FFD700);
  color: var(--mx-void, #0f0f0f);
}

::-moz-selection {
  background: var(--mx-gold, #FFD700);
  color: var(--mx-void, #0f0f0f);
}

/* FOCUS */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--mx-gold, #FFD700);
  outline-offset: 2px;
}

/* BASE BODY */
body {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  background-color: var(--mx-void, #0f0f0f);
  color: var(--text-primary, #f5f5f5);
  overflow-x: hidden;
}

/* UTILITIES */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.text-center { text-align: center; }
.text-left { text-align: left; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.mx-auto { margin-left: auto; margin-right: auto; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 800px; }
.container-wide { max-width: 1400px; }

.section { padding: 80px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 120px 0; }

/* LANGUAGE TOGGLE (PL/EN) */
[data-lang="pl"] [data-i18n-en],
[data-lang="en"] [data-i18n-pl] {
  display: none;
}

/* SIMPLE LOADING STATE */
.loading {
  opacity: 0.5;
  pointer-events: none;
}
.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--mx-gold-dim, rgba(255,215,0,0.3));
  border-top-color: var(--mx-gold, #FFD700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* NAVBAR BASIC */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(5,5,7,0.95) 0%, rgba(5,5,7,0.65) 80%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
}
#navbar.scrolled {
  background: rgba(5,5,7,0.98);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-container img {
  height: 40px;
}
.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-link {
  color: var(--text-secondary);
}
.nav-link:hover {
  color: var(--mx-gold);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
}
.lang-btn {
  padding: 4px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--text-secondary);
}
.lang-btn.active {
  background: rgba(255,215,0,0.18);
  color: var(--mx-gold);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 30px 0;
  margin-top: 40px;
  background: rgba(5,5,7,0.9);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* BUTTONS */
.btn-primary,
.btn-protocol,
.btn-vip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.4);
  background: linear-gradient(135deg, rgba(139,21,56,0.9), rgba(183,110,121,0.8));
  color: #fdfcfb;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover,
.btn-protocol:hover,
.btn-vip:hover {
  box-shadow:
    0 14px 40px rgba(0,0,0,0.7),
    0 0 40px rgba(183,110,121,0.35);
  transform: translateY(-2px);
}

/* HERO TEXT HELPERS */
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-style: italic;
  letter-spacing: 0.08em;
  margin-top: 0;
}
.hero-description {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-privacy {
  display: none;
}

/* RESPONSIVE NAV */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}
