/* ═══════════════════════════════════════════════
   MovieStar Clicker — Main Stylesheet
   css/style.css
═══════════════════════════════════════════════ */

@font-face {
  font-family: 'BadaBoo';
  src: url('../font/BadaBoo3ProBB.ttf') format('truetype');
  font-display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Nunito', Arial, sans-serif;
  overflow-x: hidden;
}

body {
  background: url('../img/background.png') center center / cover no-repeat fixed;
}

/* ── LANGUAGE PICKER OVERLAY ──────────────────── */
#lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 6, 30, 0.72);
  transition: opacity .25s, visibility .25s;
}

#lang-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lang-box {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 32px 40px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(80, 40, 140, 0.28);
  animation: popIn .32s cubic-bezier(.22, .68, 0, 1.4) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(.88);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close button */
.lang-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.08);
  color: #888;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.lang-close:hover {
  background: rgba(220, 6, 126, 0.12);
  color: #dc067e;
}

.lang-box h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #3c4e62;
  margin-bottom: 24px;
}

.lang-options {
  display: flex;
  gap: 18px;
  justify-content: center;
}

.lang-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  border: 2.5px solid transparent;
  border-radius: 16px;
  padding: 16px 26px;
  cursor: pointer;
  background: #f4f6fb;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
  transition: border-color .16s, background .16s, transform .13s;
}

.lang-btn:hover {
  border-color: #dc067e;
  background: #fff3f9;
  transform: translateY(-3px);
}

.lang-btn .flag {
  font-size: 46px;
  line-height: 1;
}

/* ── GLASS STRIP ──────────────────────────────── */
.glass-strip {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 440px;
  background: rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.50);
  z-index: 1;
  pointer-events: none;
}

/* ── LOGO ─────────────────────────────────────── */
.logo {
  position: fixed;
  top: 12px;
  left: 18px;
  z-index: 200;
}

.logo img {
  height: 120px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.30));
}

/* ── LANG TOGGLE BUTTON ───────────────────────── */
#lang-toggle {
  position: fixed;
  top: 16px;
  right: 460px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.80);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  transition: background .16s, transform .12s;
}

#lang-toggle:hover {
  background: rgba(255, 255, 255, 0.97);
  transform: translateY(-1px);
}

#lang-toggle .flag-sm {
  font-size: 20px;
}

/* ── PAGE ─────────────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px calc(440px + 20px) 44px 44px;
}

/* ── EVENT CARD ───────────────────────────────── */
.event-wrap {
  width: 100%;
  max-width: 820px;
  position: relative;
  z-index: 2;
  animation: up .4s cubic-bezier(.22, .68, 0, 1.3) .04s both;
}

.event-card {
  padding: 14px;
  border-radius: 24px;
  position: relative;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow: 0 8px 36px rgba(100, 150, 240, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 8px rgba(0, 0, 0, 0.10);
}

.event-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28), 0 1px 6px rgba(0, 0, 0, 0.16);
}

.event-inner::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.event-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #cc006a, #ff3090);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 17px 7px 12px;
  border-radius: 100px;
  box-shadow: 0 3px 14px rgba(200, 0, 100, 0.50);
  white-space: nowrap;
  pointer-events: none;
}

.badge::before {
  content: '★';
  font-size: 12px;
}

/* ── LOGIN CARD ───────────────────────────────── */
.login-card {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 384px;
  z-index: 10;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.80);
  box-shadow: 0 12px 48px rgba(80, 120, 230, 0.16), 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 28px 26px 26px;
  animation: upRight .4s cubic-bezier(.22, .68, 0, 1.3) .10s both;
}

.card-title {
  font-family: 'BadaBoo', cursive;
  font-size: 26px;
  line-height: 1.22;
  text-align: center;
  color: #dc067e;
  text-shadow: none;
  margin-bottom: 5px;
}

.card-sub {
  text-align: center;
  font-size: 12.5px;
  color: #5a6a80;
  font-weight: 600;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 13px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #3c4e62;
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 11px 15px;
  border: none;
  border-radius: 100px;
  background: #d7edf8;
  font-size: 13px;
  font-family: 'Nunito', sans-serif;
  color: #2c3e50;
  outline: none;
  transition: background .2s, box-shadow .2s;
}

.field-input::placeholder {
  color: #a6c4d8;
  font-style: italic;
}

.field-input:focus {
  background: #c3e0f3;
  box-shadow: 0 0 0 3px rgba(60, 160, 255, 0.26);
}

/* ── MSP BUTTON SYSTEM ────────────────────────── */
.msp-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  margin-top: 8px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
  transition: filter .14s, transform .12s;
}

.msp-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent);
  border-radius: 100px 100px 0 0;
  pointer-events: none;
}

.msp-btn:hover {
  filter: brightness(1.09);
  transform: translateY(-2px);
}

.msp-btn:active {
  filter: brightness(0.96);
  transform: translateY(1px);
}

.btn-blue {
  background: linear-gradient(180deg, #9ac0ee 0%, #6b9add 30%, #4d7ecc 65%, #3564b4 100%);
  box-shadow: 0 5px 20px rgba(60, 100, 200, 0.48), inset 0 2px 0 rgba(255, 255, 255, 0.40), inset 0 -3px 0 rgba(20, 50, 140, 0.32);
}

.btn-pink {
  background: linear-gradient(180deg, #f560b0 0%, #e0208a 30%, #c4006e 65%, #a80058 100%);
  box-shadow: 0 5px 20px rgba(200, 0, 110, 0.48), inset 0 2px 0 rgba(255, 255, 255, 0.38), inset 0 -3px 0 rgba(100, 0, 50, 0.32);
}

/* ── ANIMATIONS ───────────────────────────────── */
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes upRight {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 22px)) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* ── MOBILE ───────────────────────────────────── */
@media (max-width: 740px) {
  body {
    background-attachment: scroll;
  }

  .glass-strip {
    display: none;
  }

  .logo img {
    height: 72px;
  }

  #lang-toggle {
    right: 16px;
    top: 14px;
  }

  .page {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 86px 16px 36px;
  }

  .event-wrap {
    max-width: 100%;
  }

  .login-card {
    position: static;
    transform: none;
    width: 100%;
    max-width: 460px;
    animation: up .4s cubic-bezier(.22, .68, 0, 1.3) .14s both;
  }
}

/* ── REGISTER MODAL ───────────────────────────── */
/* Reuses #lang-overlay backdrop — toggled via .hidden */
#reg-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 6, 30, 0.72);
  transition: opacity .25s, visibility .25s;
}

#reg-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.reg-box {
  width: min(420px, 92vw);
  text-align: left;
}

.reg-box .card-title,
.reg-box .card-sub {
  text-align: center;
}

/* ── CHECKBOX ROW ─────────────────────────────── */
.check-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #5a6a80;
  cursor: pointer;
  user-select: none;
}

.check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #dc067e;
  cursor: pointer;
}

/* ── TOAST NOTIFICATIONS ─────────────────────── */
.msp-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 2000;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.msp-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-success {
  background: linear-gradient(90deg, #2ea850, #54c470);
}

.toast-error {
  background: linear-gradient(90deg, #c03040, #e05060);
}

.toast-info {
  background: linear-gradient(90deg, #4d7ecc, #6b9add);
}