/* ==========================================================================
   PINOY LEGENDS — GLOBAL STYLESHEET
   Pure CSS3. No build step, no framework. Mobile-first, fluid throughout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --color-bg: #030712;
  --color-bg-raised: #060c1e;
  --color-surface: #0b1329;
  --color-surface-alt: #111c3d;
  --color-gold: #d4af37;
  --color-gold-dark: #aa7c11;
  --color-gold-light: #f2d786;
  --color-jewel: #5ec8f0;
  --color-jewel-light: #a6e6ff;
  --color-text: #eae7dc;
  --color-text-muted: #a3aac2;
  --color-text-dim: #707aa0;
  --color-border: rgba(212, 175, 55, 0.26);
  --color-border-strong: rgba(212, 175, 55, 0.55);
  --color-danger: #d16a5a;

  /* Type */
  --font-display: "Cinzel", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Rajdhani", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-max: 74rem;
  --nav-height: clamp(4rem, 5vw + 2.5rem, 5.25rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-cut: 14px;

  /* Motion */
  --ease: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadow */
  --shadow-panel: 0 24px 60px -20px rgba(0, 0, 0, 0.65);
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
svg,
video,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */
body {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(94, 200, 240, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-gold-light);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

p {
  color: var(--color-text-muted);
  max-width: 68ch;
}

strong {
  color: var(--color-text);
  font-weight: 700;
}

::selection {
  background: var(--color-gold-dark);
  color: #0a0a06;
}

:focus-visible {
  outline: 2px solid var(--color-jewel);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 4vw + 1.5rem, 6.5rem);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--color-jewel-light);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
  margin-bottom: 0.85rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -3rem;
  left: 1rem;
  z-index: 100;
  background: var(--color-gold);
  color: #1a1204;
  padding: 0.65rem 1.25rem;
  font-weight: 700;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(3, 7, 18, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.85rem + 0.7vw, 1.4rem);
  letter-spacing: 0.06em;
  color: var(--color-gold-light);
  white-space: nowrap;
}

.nav-brand em {
  font-style: normal;
  color: var(--color-jewel-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.6rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  background: var(--color-gold-light);
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle-input:checked ~ .nav-actions .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle-input:checked ~ .nav-actions .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-input:checked ~ .nav-actions .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--color-bg-raised);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem var(--gutter) 1.5rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.nav-toggle-input:checked ~ .nav-links {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-links a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  transition: color var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-gold-light);
}

@media (min-width: 900px) {
  .nav-toggle-label {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: none;
    border: 0;
    padding: 0;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
  }

  .nav-links a {
    padding: 0.4rem 0.1rem;
    border-bottom: 2px solid transparent;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    border-bottom-color: var(--color-gold);
  }
}

/* --------------------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  min-width: 44px;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.92rem, 0.85rem + 0.25vw, 1.02rem);
  letter-spacing: 0.03em;
  border: 1.5px solid var(--color-gold);
  color: #1a1204;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 45%, var(--color-gold-dark) 100%);
  -webkit-clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: box-shadow var(--ease), transform var(--ease), filter var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px var(--color-gold-light), 0 0 28px rgba(212, 175, 55, 0.55);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

.btn--nav {
  min-height: 2.6rem;
  padding: 0.6rem 1.35rem;
  font-size: 0.88rem;
}

.btn--ghost {
  background: transparent;
  color: var(--color-gold-light);
  border-color: var(--color-border-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  box-shadow: 0 0 0 1px var(--color-jewel), 0 0 20px rgba(94, 200, 240, 0.35);
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. GAME PANEL (double-frame + jewel accent)
   -------------------------------------------------------------------------- */
.game-panel {
  position: relative;
  background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  border: 1px solid var(--color-border-strong);
  padding: clamp(1.5rem, 3vw + 0.5rem, 2.5rem);
  -webkit-clip-path: polygon(0 var(--radius-cut), var(--radius-cut) 0, 100% 0, 100% calc(100% - var(--radius-cut)), calc(100% - var(--radius-cut)) 100%, 0 100%);
  clip-path: polygon(0 var(--radius-cut), var(--radius-cut) 0, 100% 0, 100% calc(100% - var(--radius-cut)), calc(100% - var(--radius-cut)) 100%, 0 100%);
  box-shadow:
    inset 0 0 0 4px rgba(3, 7, 18, 0.65),
    inset 0 0 0 5px rgba(212, 175, 55, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 46px rgba(0, 0, 0, 0.55),
    var(--shadow-panel);
}

.game-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 13px;
  height: 13px;
  background: var(--color-jewel);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 10px 2px var(--color-jewel), 0 0 22px 6px rgba(94, 200, 240, 0.45);
  transform: translate(-50%, -50%) rotate(45deg);
}

.game-panel h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  margin-bottom: 0.6rem;
}

.game-panel p:last-child {
  margin-bottom: 0;
}

.game-panel--flush {
  padding: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   8. GRIDS
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 700px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid--align-top {
  align-items: start;
}

/* --------------------------------------------------------------------------
   9. BADGES
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  border: 1px solid;
  -webkit-clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.badge--blue {
  color: var(--color-jewel-light);
  border-color: rgba(94, 200, 240, 0.55);
  background: rgba(94, 200, 240, 0.08);
}

.badge--gold {
  color: var(--color-gold-light);
  border-color: var(--color-border-strong);
  background: rgba(212, 175, 55, 0.08);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. HERO (index.html)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100svh - var(--nav-height));
  padding-block: clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-jewel-light);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.6rem, 3.2rem + 3vw, 6.75rem);
  letter-spacing: 0.04em;
  line-height: 1.02;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 1px rgba(0, 0, 0, 0.7),
    0 10px 34px rgba(212, 175, 55, 0.3);
  max-width: 20ch;
}

.hero-subtitle {
  max-width: 46ch;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  color: var(--color-text-muted);
  margin-block: 1.5rem 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   11. PAGE HEADER (interior pages)
   -------------------------------------------------------------------------- */
.page-header {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem);
}

.page-header p {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
}

/* --------------------------------------------------------------------------
   12. TABLES / LISTS (used by influencer requirements)
   -------------------------------------------------------------------------- */
.rule-list {
  display: grid;
  gap: 0.9rem;
}

.rule-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: rgba(212, 175, 55, 0.05);
  border-left: 2px solid var(--color-gold-dark);
}

.rule-list li strong {
  color: var(--color-gold-light);
}

.rule-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.1rem;
  color: var(--color-jewel-light);
}

/* --------------------------------------------------------------------------
   13. STAFF CARDS
   -------------------------------------------------------------------------- */
.staff-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.staff-avatar {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-bg);
  background: linear-gradient(160deg, var(--color-gold-light), var(--color-gold-dark));
  -webkit-clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  margin-bottom: 0.25rem;
}

.staff-name {
  font-size: 1.25rem;
  margin: 0;
}

.staff-role {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-raised);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-gold-light);
  max-width: 26rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer-links a {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  font-weight: 600;
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

/* --------------------------------------------------------------------------
   15. TIER RIBBON (influencer.html)
   -------------------------------------------------------------------------- */
.tier-ribbon {
  position: absolute;
  top: 1.1rem;
  right: -0.4rem;
  background: var(--color-jewel);
  color: #04202c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.9rem 0.3rem 0.75rem;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
  box-shadow: 0 4px 14px rgba(94, 200, 240, 0.35);
}

.tier-followers {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  color: var(--color-text);
  margin-block: 0.75rem 0.25rem;
}

.tier-followers span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-dim);
  font-weight: 600;
  margin-left: 0.35rem;
}

/* --------------------------------------------------------------------------
   16. ACCESSIBILITY / MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 1600px) {
  :root {
    --container-max: 82rem;
  }
}
