/* -------------------------------------------------
   GLOBAL BASE
------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #0f0f0f;
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: white;
  min-height: 100vh;
  line-height: 1.4;
}

img, svg, canvas, video {
  vertical-align: middle;
}

/* -------------------------------------------------
   LAYOUT HELPERS
------------------------------------------------- */

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }


/* -------------------------------------------------
   REUSABLE PANEL (FROSTED GLASS)
------------------------------------------------- */

.glass-panel {
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.03);
}


/* -------------------------------------------------
   PAGE WRAPPERS / STANDARD SECTIONS
------------------------------------------------- */

.section-wrapper {
  width: 100%;
  padding: 2rem 0.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.section-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .section-wrapper { padding: 2rem 0.5rem; }
  .section-inner { max-width: 100%; width: 100%; padding: 0; }
}


/* -------------------------------------------------
   MISC
------------------------------------------------- */
.no-break-span {
  white-space: nowrap;
}

img {
  pointer-events: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* -------------------------------------------------
   MAIN CONTENT AREA
------------------------------------------------- */

#content-area {
  padding: 2rem 1rem;
  min-height: 40vh;
}


/* -------------------------------------------------
   BUTTONS
------------------------------------------------- */

.main-btn {
  background: #ffffff15;
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.main-btn:hover { background: #ffffff30; }
.main-btn.active { background: #ffffff40; border-color: #ffffff80; }


/* -------------------------------------------------
   OVERLAYS (lightbox, background gradient, etc.)
------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.overlay.active {
  pointer-events: auto;
  opacity: 1;
}


/* -------------------------------------------------
   HEADER SPACER (keeps content below header)
------------------------------------------------- */

.header-spacer {
  height: 70px;
  width: 100%;
}

/* -------------------------------------------------
   NOSCRIPT WARNING (Shown when JS is disabled)
------------------------------------------------- */

.noscript-warning {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 2rem;
  color: white;

  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);

  font-family: 'Montserrat', sans-serif;
}

.noscript-warning h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.noscript-warning h2 i {
  color: #ffde59;
  font-size: 1.6rem;
}

.noscript-warning p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* -------------------------------------------------
   SPA Page loading error message
------------------------------------------------- */
.page-error-msg {
  padding: 1rem 1.4rem;
  margin: 1.5rem auto;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  width: fit-content;
  animation: fade-error-msg 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-error-msg i {
  color: #FFD43B; /* warm yellow */
  font-size: 1.2rem;
}

@keyframes fade-error-msg {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}


