@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;600&display=swap');

:root {
  /* Brand Colors */
  --steam-color: #1b2838;
  --ps-color: #0070d1;
  --xbox-color: #107c10;
  --nintendo-color: #e60012;
  --discord-color: #5865F2;
  --steam-blue: #66c0f4;

  /* UI Colors */
  --bg-header: #985eff;
  --bg-btn-demo: #5865F2;
  --bg-btn-cta: #d68823;
  --bg-btn-discord: #7289da;
  --text-btn-cta: #1f1f1f;
  --bg-editions-card: #1f1f1f;


  --bg-main: #1f1f1f;
  --bg-primary: #4805b3;
  --bg-secondary: #7855af;
  --bg-charcoal: #333;

  --text-muted: #888888;
  --text-main: #dddddd;
  --text-dark: #333;
  --text-heading-font-family: 'Bebas Neue', sans-serif;
  --text-body-font-family: 'Inter', sans-serif;

  --magin-purple: #985dff;
  --magin-yellow: #d99131;

  /* Borders & Spacing */
  --border-color: #222;
  --radius-sm: 2px;
  --radius-md: 4px;

  /* Animation Defaults */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & GLOBAL SETTINGS
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-main);

  /* Text properties*/
  color: var(--text-main);
  font-family: var(--text-body-font-family);
  text-align: center;
}

section {
  max-width: 100%;
  /* Logical Padding: block (top/bottom) and inline (left/right) */
  padding-block: 40px;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

:is(h1, h2, h3, h4) {
  font-family: var(--text-heading-font-family);
  font-weight: bold;
  letter-spacing: 10%;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.1rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  max-width: 600px;
  width: 90%;
  /* Logical Margin: Centers the block horizontally regardless of direction */
  margin-block: 0;
  margin-inline: auto;
  line-height: 1.6;
}

span {
  max-width: 600px;
  width: 90%;
  /* Logical Margin: Centers the block horizontally regardless of direction */
  margin-block: 0;
  margin-inline: auto;
  line-height: 1.6;
}

.justified-text {
  text-align: justify;
  hyphens: auto;
}

.heading-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* 1. The Rotation */
  transform: rotate(1deg);
  transform-origin: center;
  /* Ensures it tips evenly */


  /* 2. Height & Padding */
  /* Set height to match your image pieces (e.g., 80px) */
  height: 60px;
  width: 700px;

  font-family: sans-serif;
  text-transform: uppercase;

  /* The Glassmorphism Blur Effect */
  background-color: rgba(3, 3, 3, 0.8);
  /* Tinted black */
  backdrop-filter: blur(30px);
  /* Blurs the bg.webp image behind the bar */
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
}

/* Common styles for both ends */
.heading-label::before,
.heading-label::after {
  content: "";
  position: absolute;
  top: -20px;
  width: 80px;
  /* Set to the actual width of your split files */
  height: 160%;
  background-size: contain;
  background-repeat: no-repeat;
}

/* 3. The Purple Left Piece */
.heading-label::before {
  background-image: url('/assets/label_end_purple.webp');
  background-position: right center;
  left: -40px;
  /* Pulls it outside the black bar to the left */
}

/* 4. The Yellow Right Piece */
.heading-label::after {
  background-image: url('/assets/label_end_yellow.webp');
  background-position: left center;
  right: -40px;
  /* Pulls it outside the black bar to the right */
}

/* ==========================================================================
   LANGUAGE PICKER
   ========================================================================== */

/* Container Positioning */
.language-picker.sticky-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* The Globe Button */
.lang-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.lang-button:hover {
  transform: scale(1.1);
}

.lang-button svg {
  stroke: white;
}

/* The Menu Box - Hidden State */
.lang-menu {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
  width: 180px;
  overflow: hidden;

  /* Animation Initial State */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The Menu Box - Visible State 
  Triggered when your JS adds '.active' to the parent wrapper
*/
.language-picker.active .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Menu Inner Styling */
.menu-header {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: bold;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  color: #666;
}

.lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-list li a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: background 0.2s;
}

.lang-list li a:hover {
  background: #f0f7ff;
  color: #007bff;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */

@media (max-width: 768px) {
  :is(h2, h3, h4) {
    font-size: 1rem;
  }

  .heading-label {
    max-width: 80vw;
  }
}