/**
 * Little Ollie — hub pages: links, games (arcade), about
 * Requires: styles/site-brand.css
 */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--lo-font);
  background: linear-gradient(180deg, var(--lo-bg-top) 0%, var(--lo-bg-bottom) 100%);
  color: var(--lo-text-on-dark);
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

/* Shell */
.links-page,
.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.links-bg,
.bg {
  position: fixed;
  inset: 0;
  background-image: url("../assets/mainbg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.links-bg-overlay,
.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--lo-overlay-top) 0%,
    var(--lo-overlay-mid) 50%,
    var(--lo-overlay-bottom) 100%
  );
  z-index: 1;
}

.links-content,
.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(var(--lo-space-page), env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(var(--lo-space-page), env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.links-card,
.card {
  width: 100%;
  max-width: 480px;
  background: var(--lo-glass);
  border-radius: var(--lo-radius-card);
  padding: var(--lo-space-card) clamp(16px, 4vw, 22px) calc(var(--lo-space-card) + 4px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--lo-shadow-card);
  text-align: center;
}

/* About: slightly wider for body copy */
.links-card--about {
  max-width: 520px;
}

.logo-wrapper {
  margin-bottom: 14px;
}

.logo {
  max-width: 220px;
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.tagline {
  font-size: var(--lo-text-body);
  font-weight: 500;
  margin: 4px 0 22px 0;
  color: var(--lo-text-muted);
  line-height: 1.45;
}

/* Headings */
.links-card .title {
  font-size: var(--lo-text-title);
  font-weight: 800;
  margin: 0 0 14px 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.card .title {
  font-size: var(--lo-text-hero);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 4px 0 18px 0;
  line-height: 1.15;
}

.body-text {
  font-size: var(--lo-text-body);
  line-height: 1.65;
  font-weight: 400;
  color: var(--lo-text-muted);
  margin: 0 0 22px 0;
  text-align: left;
}

.links-stack,
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--lo-stack-gap);
  margin-bottom: 8px;
}

.stack {
  margin-top: 4px;
}

/* Primary CTAs (full-width) */
.link-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: var(--lo-radius-lg);
  border: none;
  font-family: var(--lo-font);
  font-size: var(--lo-text-lg);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  box-shadow: var(--lo-shadow-btn);
  letter-spacing: 0.02em;
}

.link-btn span,
.btn span {
  pointer-events: none;
}

.link-btn-blue,
.btn-blue {
  background: var(--lo-gradient-blue);
  color: var(--lo-text-on-dark);
}

.link-btn-yellow,
.btn-yellow {
  background: var(--lo-gradient-yellow);
  color: var(--lo-ink);
  box-shadow: var(--lo-shadow-btn);
}

.link-btn:hover,
.btn:hover:not(.btn-disabled) {
  transform: translateY(-3px);
  box-shadow: var(--lo-shadow-btn-hover);
}

.link-btn:active,
.btn:active:not(.btn-disabled) {
  transform: translateY(0);
  box-shadow: var(--lo-shadow-btn-active);
}

.btn-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.btn-disabled:hover,
.btn-disabled:active {
  transform: none;
  box-shadow: var(--lo-shadow-btn);
}

.link-btn:focus-visible,
.btn:focus-visible:not(.btn-disabled),
.btn-back:focus-visible {
  outline: 2px solid var(--lo-yellow);
  outline-offset: 3px;
}

/* Secondary / back */
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--lo-radius-md);
  border: none;
  font-family: var(--lo-font);
  font-size: var(--lo-text-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.38);
  color: var(--lo-text-on-dark);
  box-shadow: var(--lo-shadow-back);
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: var(--lo-shadow-back-hover);
}

.btn-back:active {
  transform: translateY(0);
  box-shadow: var(--lo-shadow-back-active);
}

.footnote {
  margin-top: 12px;
  font-size: var(--lo-text-xs);
  letter-spacing: 0.02em;
  color: var(--lo-text-subtle);
}

@media (max-width: 480px) {
  .links-card,
  .card {
    padding: 20px 16px 24px;
    border-radius: var(--lo-radius-xl);
  }

  .logo {
    max-width: 200px;
  }

  .card .title {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
  }

  .links-card .title {
    font-size: clamp(1.2rem, 4.5vw, 1.4rem);
  }

  .body-text {
    font-size: var(--lo-text-sm);
  }

  .link-btn,
  .btn {
    font-size: var(--lo-text-md);
    padding: 13px 18px;
    min-height: 46px;
  }
}
