/* ==========================================================================
   VertigoCO — components.css
   Navigation, buttons, fields, cards, banners, footer bits.
   ========================================================================== */

/* ==========================================================================
   NAV
   ========================================================================== */
.nav__link {
  position: relative;
  display: block;
  padding: 8px 13px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #c9c3dd;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-lt), transparent);
  transition: left .34s var(--ease), right .34s var(--ease);
}

.nav__link::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 4px;
  height: 4px;
  transform: translateX(-50%) rotate(45deg) scale(0);
  background: var(--ember);
  box-shadow: 0 0 8px 2px var(--ember-glow);
  transition: transform .3s var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
  text-shadow: 0 0 12px rgba(190, 130, 255, .8);
}

.nav__link:hover::after,
.nav__link.is-active::after { left: 12%; right: 12%; }

.nav__link.is-active::before,
.nav__link:hover::before { transform: translateX(-50%) rotate(45deg) scale(1); }

.nav__link.is-active { color: #f2ecff; }

/* burger */
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 36px;
  padding: 8px;
  background: rgba(20, 8, 36, .7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: var(--violet-lt);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   EMBER BUTTON (PLAY NOW)
   ========================================================================== */
.btn-ember {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 0 0 auto;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(52, 12, 8, .78), rgba(16, 5, 12, .88));
  color: var(--ember-lt);
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .35s var(--ease), color .3s;
  box-shadow:
    0 0 0 1px rgba(255, 110, 30, .38),
    0 0 18px rgba(255, 90, 20, .22),
    inset 0 0 26px rgba(255, 90, 20, .12);
}

.btn-ember--sm {
  padding: 11px 26px;
  font-size: 13.5px;
  border-radius: 4px;
}

.btn-ember--lg {
  margin-top: 18px;
  padding: 15px 44px 15px 30px;
  font-size: 25px;
  letter-spacing: .11em;
  border-radius: 5px;
}

/* animated ember frame */
.btn-ember__frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 4%, rgba(255, 120, 35, .95) 50%, transparent 96%) top    / 100% 1.5px no-repeat,
    linear-gradient(90deg, transparent 4%, rgba(255, 120, 35, .95) 50%, transparent 96%) bottom / 100% 1.5px no-repeat,
    radial-gradient(circle at 0% 50%,   rgba(255, 90, 20, .55), transparent 42%),
    radial-gradient(circle at 100% 50%, rgba(255, 90, 20, .55), transparent 42%);
  animation: ember-frame 3.2s ease-in-out infinite;
}

.btn-ember__frame::before,
.btn-ember__frame::after {
  content: '';
  position: absolute;
  top: 6%;
  bottom: 6%;
  width: 12px;
  background: radial-gradient(ellipse at center, rgba(255, 130, 40, .8), transparent 70%);
  filter: blur(1px);
}
.btn-ember__frame::before { left: -2px; }
.btn-ember__frame::after  { right: -2px; }

.btn-ember__label {
  position: relative;
  background: linear-gradient(180deg, #ffe3ae 0%, #ffab4a 50%, #e2670c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 120, 40, .5));
}

.btn-ember__shield {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 48px;
  color: var(--gold-lt);
  background: linear-gradient(180deg, #2a2033, #100a18);
  clip-path: polygon(50% 0, 100% 12%, 100% 66%, 50% 100%, 0 66%, 0 12%);
  box-shadow: inset 0 0 0 1px rgba(220, 180, 110, .55), 0 0 14px rgba(255, 150, 50, .3);
}

.btn-ember__shield svg { width: 20px; height: 20px; }

.btn-ember__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 200, 130, .22) 50%, transparent 58%);
  background-size: 240% 100%;
  animation: sheen-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

.btn-ember:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 150, 60, .75),
    0 0 34px rgba(255, 100, 25, .55),
    inset 0 0 40px rgba(255, 100, 25, .25);
}

.btn-ember:active { transform: translateY(0) scale(.985); }

/* ==========================================================================
   ARCANE BUTTON (violet slab)
   ========================================================================== */
.btn-arcane {
  position: relative;
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  cursor: pointer;
  text-align: center;
  font-family: var(--f-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f0e8ff;
  background:
    linear-gradient(180deg, rgba(112, 44, 196, .95) 0%, rgba(66, 22, 128, .95) 52%, rgba(44, 14, 92, .95) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(214, 176, 108, .45),
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 3px 14px rgba(60, 16, 120, .5);
  overflow: hidden;
  transition: transform .26s var(--ease-out), box-shadow .3s var(--ease), filter .3s;
}

.btn-arcane > span { position: relative; z-index: 2; }

.btn-arcane::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/crackle-violet.png') center / 240% auto no-repeat;
  mix-blend-mode: screen;
  opacity: .22;
}

.btn-arcane::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .30) 50%, transparent 60%);
  background-size: 250% 100%;
  transform: translateX(-60%);
  transition: transform .7s var(--ease);
}

.btn-arcane:hover {
  transform: translateY(-1px);
  filter: brightness(1.14);
  box-shadow:
    inset 0 0 0 1px rgba(240, 210, 150, .8),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 6px 22px rgba(120, 40, 220, .6);
}

.btn-arcane:hover::after { transform: translateX(60%); }
.btn-arcane:active { transform: translateY(1px) scale(.99); }

.btn-arcane--primary {
  padding: 12px;
  font-size: 18px;
  letter-spacing: .06em;
}

.btn-arcane--wide { margin-top: 14px; }

/* corner brackets on arcane buttons */
.btn-arcane > span::before,
.btn-arcane > span::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(216, 180, 112, .85);
  pointer-events: none;
}
.btn-arcane > span::before { left: -8px;  top: -6px;  border-right: 0; border-bottom: 0; }
.btn-arcane > span::after  { right: -8px; bottom: -6px; border-left: 0; border-top: 0; }

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */
.login {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: rgba(6, 3, 12, .72);
  box-shadow: inset 0 0 0 1px rgba(150, 110, 220, .16);
  border-radius: 3px;
  transition: box-shadow .3s var(--ease), background .3s;
}

.field__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--gold-dim);
  transition: color .3s;
}

.field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
  font-size: 13.5px;
  color: #e8e2f5;
}

.field input::placeholder { color: #6f6885; }

.field:focus-within {
  background: rgba(22, 8, 40, .8);
  box-shadow:
    inset 0 0 0 1px rgba(180, 120, 255, .55),
    0 0 18px rgba(140, 60, 230, .28);
}

.field:focus-within .field__icon { color: var(--gold-lt); }

.login__forgot {
  align-self: center;
  margin: 2px 0 4px;
  font-size: 12px;
  color: #a99cc4;
}

.login__forgot:hover { color: var(--violet-lt); text-shadow: 0 0 10px var(--violet-glow); }

.or-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a82a3;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.discord-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #6b7ff0;
  transition: transform .3s var(--ease-out), color .3s, filter .3s;
}

.discord-link svg { width: 20px; height: 20px; }

.discord-link:hover {
  color: #94a4ff;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(110, 130, 255, .7));
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.card {
  position: relative;
  padding: 5px 5px 11px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(20, 10, 34, .86), rgba(9, 4, 16, .94));
  box-shadow:
    inset 0 0 0 1px rgba(150, 110, 220, .20),
    0 8px 26px rgba(0, 0, 0, .55);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease);
  overflow: hidden;
}

.card__frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(150, 70, 255, .18), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.card__art {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.card__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 4, 16, .85) 100%);
}

.card__art img {
  width: 100%;
  aspect-ratio: 146 / 90;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .7s var(--ease), filter .5s;
}

.card__title {
  margin: 9px 0 5px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #efe6ff, #b28cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter .3s;
}

.card__text {
  font-size: 10.5px;
  line-height: 1.5;
  color: #9c95b4;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px rgba(200, 150, 255, .5),
    0 18px 40px rgba(0, 0, 0, .7),
    0 0 30px rgba(140, 60, 230, .34);
}

.card:hover .card__frame { opacity: 1; }
.card:hover .card__art img { transform: scale(1.13); filter: saturate(1.2) brightness(1.08); }
.card:hover .card__title { filter: drop-shadow(0 0 10px var(--violet-glow)); }

/* ==========================================================================
   LEGENDARY GEAR BANNER
   ========================================================================== */
.gear-banner {
  position: relative;
  display: grid;
  place-content: center;
  gap: 1px;
  padding: 14px 10px 15px;
  min-height: 72px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: #150610 url('../img/gear-banner.jpg') center / cover no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(200, 90, 40, .45),
    0 8px 26px rgba(0, 0, 0, .6);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease);
}

.gear-banner__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 90% at 50% 40%, rgba(255, 120, 30, .35), transparent 70%);
  mix-blend-mode: screen;
  animation: lava-throb 3.4s ease-in-out infinite;
}

.gear-banner__title {
  position: relative;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #ffd9a8 46%, #d98a3e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .8));
}

.gear-banner__sub {
  position: relative;
  font-size: 9.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #cbbcd8;
}

.gear-banner:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 150, 70, .8),
    0 14px 34px rgba(0, 0, 0, .7),
    0 0 30px rgba(255, 100, 25, .4);
}

/* ==========================================================================
   FOOTER PIECES
   ========================================================================== */
.footer__logo {
  width: 220px;
  filter: drop-shadow(0 0 12px rgba(140, 60, 240, .35));
}

.footer__about {
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #8f87a8;
}

.footer__heading {
  margin-bottom: 12px;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-lt);
  text-shadow: 0 0 14px var(--violet-glow);
}

.footer__heading--alt { color: #b98cff; }

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 14px;
}

.footer__links a {
  display: inline-block;
  padding: 4px 0;
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #8e86a6;
}

.footer__links a:hover {
  color: var(--violet-lt);
  text-shadow: 0 0 12px var(--violet-glow);
  transform: translateX(2px);
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: #dfe3f7;
  background: linear-gradient(180deg, #5b64ea, #3b3fae);
  box-shadow: 0 6px 20px rgba(70, 80, 220, .35), inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease-out), box-shadow .3s, filter .3s;
}

.footer__cta svg { width: 18px; height: 18px; }

.footer__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(80, 90, 240, .55), inset 0 0 0 1px rgba(255, 255, 255, .24);
}

.footer__note {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #7d769a;
}

.footer__col--copy {
  text-align: left;
  font-size: 12.5px;
  line-height: 1.9;
  color: #8f87a8;
}
