/* ============================================
   PFC Gaming — Apple-inspired Design System
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: #1d1d1f;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Page load fade-in */
body {
  opacity: 0;
  animation: pageFadeIn 0.6s ease forwards;
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

a {
  color: #0071e3;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0077ed;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}

/* ---------- Navbar (Frosted Glass) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 22, 23, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.36s cubic-bezier(0.32, 0.08, 0.24, 1);
}

.nav--scrolled {
  background: rgba(22, 22, 23, 0.92);
}

.nav__inner {
  width: 100%;
  max-width: 980px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 18px;
  font-weight: 700;
  color: #f5f5f7;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.nav__logo:hover {
  opacity: 0.8;
  text-decoration: none;
  color: #f5f5f7;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav__links a {
  font-size: 12px;
  font-weight: 400;
  color: #d1d1d6;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav__links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav__links a.active {
  color: #fff;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #f5f5f7;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 22, 23, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 9998;
  padding: 20px 40px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav__mobile-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-menu a {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #f5f5f7;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  transition: color 0.3s;
}

.nav__mobile-menu a:hover {
  color: #0071e3;
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: #000;
}

.hero--small {
  min-height: 40vh;
  padding: 120px 24px 60px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #000 0%, #1a1a2e 50%, #0d0d1a 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero__title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  color: #a1a1a6;
  line-height: 1.35;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__date {
  font-size: 14px;
  color: #86868b;
  margin-top: 8px;
}

.hero__cta {
  display: inline-block;
  padding: 12px 28px;
  background: #0071e3;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  border-radius: 980px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.hero__cta:hover {
  background: #0077ed;
  transform: scale(1.04);
  box-shadow: 0 4px 24px rgba(0, 113, 227, 0.4);
  color: #fff;
  text-decoration: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 24px;
}

.section--gray {
  background: #f5f5f7;
}

.section--dark {
  background: #000;
  color: #f5f5f7;
}

.section__inner {
  max-width: 980px;
  margin: 0 auto;
}

.section__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.section__text {
  font-size: 21px;
  color: #6e6e73;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
  line-height: 1.52;
}

/* ---------- Feature Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  cursor: default;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.section--gray .card {
  background: #fff;
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: 28px 24px 32px;
}

.card__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.card__text {
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.52;
}

/* ---------- Legal Content Layout ---------- */
.legal-layout {
  display: flex;
  gap: 60px;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.legal-sidebar {
  position: sticky;
  top: 80px;
  flex: 0 0 220px;
  align-self: flex-start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.legal-sidebar__title {
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.legal-sidebar a {
  display: block;
  font-size: 13px;
  color: #6e6e73;
  padding: 6px 0;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: color 0.3s, border-color 0.3s;
  line-height: 1.4;
}

.legal-sidebar a:hover {
  color: #1d1d1f;
  text-decoration: none;
}

.legal-sidebar a.active {
  color: #0071e3;
  border-left-color: #0071e3;
}

.legal-content {
  flex: 1;
  min-width: 0;
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.legal-content h2,
.legal-content h3 {
  font-size: 22px;
  margin-top: 48px;
  margin-bottom: 12px;
}

.legal-content h4 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 15px;
  color: #1d1d1f;
  line-height: 1.6;
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 15px;
  color: #1d1d1f;
  line-height: 1.6;
  margin-bottom: 8px;
}

.legal-content a {
  color: #0071e3;
}

.legal-content strong {
  font-weight: 600;
}

@media (max-width: 768px) {
  .legal-layout {
    flex-direction: column;
    gap: 0;
    padding: 40px 20px 60px;
  }
  .legal-sidebar {
    position: relative;
    top: auto;
    flex: none;
    margin-bottom: 40px;
    max-height: none;
    padding-bottom: 24px;
    border-bottom: 1px solid #d2d2d7;
  }
}

/* ---------- Language Switcher (Privacy/Terms) ---------- */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.lang-switcher__btn:hover {
  background: #e8e8ed;
}

.lang-switcher__btn::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #6e6e73;
  transition: transform 0.3s;
}

.lang-switcher.open .lang-switcher__btn::after {
  transform: rotate(180deg);
}

.lang-switcher__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  display: none;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  padding: 6px 0;
}

.lang-switcher.open .lang-switcher__list {
  display: block;
}

.lang-switcher__list a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: #1d1d1f;
  text-decoration: none;
  transition: background 0.2s;
}

.lang-switcher__list a:hover {
  background: #f5f5f7;
  text-decoration: none;
}

/* ---------- Form Styles (Delete Account) ---------- */
.form-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  background: #000;
  position: relative;
}

.form-section .hero__bg {
  position: absolute;
  inset: 0;
}

.form-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
}

.form-card__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-card__title {
  font-size: 28px;
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 12px;
}

.form-card__text {
  font-size: 15px;
  color: #a1a1a6;
  line-height: 1.52;
  margin-bottom: 32px;
}

.form-card__warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 28px;
  text-align: left;
}

.form-card__warning-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.form-card__warning-text {
  font-size: 13px;
  color: #ff6961;
  line-height: 1.5;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #f5f5f7;
  font-size: 17px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.form-input::placeholder {
  color: #6e6e73;
}

.form-input:focus {
  border-color: #0071e3;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
}

.form-label {
  display: block;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #a1a1a6;
  margin-bottom: 8px;
}

.form-btn {
  width: 100%;
  padding: 14px 28px;
  background: #ff3b30;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.form-btn:hover {
  background: #ff453a;
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(255, 59, 48, 0.4);
}

.form-btn:active {
  transform: scale(0.98);
}

.form-message {
  margin-top: 20px;
  font-size: 15px;
  min-height: 24px;
  transition: opacity 0.3s ease;
}

.form-message--success {
  color: #30d158;
}

.form-message--error {
  color: #ff6961;
}

/* ---------- 404 Page ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  background: #000;
  position: relative;
  overflow: hidden;
}

.error-page .hero__bg {
  position: absolute;
  inset: 0;
}

.error-page__content {
  position: relative;
  z-index: 1;
}

.error-page__number {
  font-size: clamp(120px, 25vw, 200px);
  font-weight: 800;
  color: #f5f5f7;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f5f5f7 0%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-page__title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  color: #f5f5f7;
  margin-bottom: 16px;
}

.error-page__text {
  font-size: 17px;
  color: #a1a1a6;
  margin-bottom: 40px;
  max-width: 440px;
  line-height: 1.52;
}

/* ---------- Footer ---------- */
.footer {
  background: #f5f5f7;
  padding: 40px 24px;
  border-top: 1px solid #d2d2d7;
}

.footer__inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer__links a {
  font-size: 12px;
  color: #6e6e73;
  text-decoration: none;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: #1d1d1f;
  text-decoration: none;
}

.footer__copy {
  font-size: 12px;
  color: #86868b;
  text-align: center;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale--visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}

.reveal-fade--visible {
  opacity: 1;
}

/* Staggered delays for hero elements */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.25s; }
.stagger-3 { transition-delay: 0.4s; }
.stagger-4 { transition-delay: 0.55s; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body {
    opacity: 1;
    animation: none;
  }
  .reveal, .reveal-scale, .reveal-fade {
    opacity: 1;
    transform: none;
  }
  .hero__bg {
    animation: none;
  }
}

/* ---------- Hero Enhancements ---------- */
.hero__eyebrow {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0071e3;
  margin-bottom: 16px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta--outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #f5f5f7;
}

.hero__cta--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px rgba(255,255,255,0.1);
  color: #fff;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  padding: 60px 24px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: #f5f5f7;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat__label {
  display: block;
  font-size: 14px;
  color: #86868b;
  margin-top: 6px;
  font-weight: 500;
}

/* ---------- Featured Game Cards ---------- */
.games-featured {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 32px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.game-card__badge {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  letter-spacing: 0.02em;
}

.game-card__icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.game-card__info {
  flex: 1;
  min-width: 0;
}

.game-card__name {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.game-card__desc {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 10px;
}

.game-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.game-card__rating {
  font-size: 13px;
  font-weight: 600;
  color: #ff9500;
}

.game-card__tag {
  font-size: 11px;
  font-weight: 500;
  color: #6e6e73;
  background: #f5f5f7;
  padding: 3px 10px;
  border-radius: 100px;
}

.game-card__arrow {
  flex-shrink: 0;
  font-size: 22px;
  color: #0071e3;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .game-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
  .game-card__badge {
    position: static;
    margin-bottom: 8px;
  }
  .game-card__meta {
    justify-content: center;
  }
  .game-card__arrow {
    display: none;
  }
}

/* ---------- All Games Grid ---------- */
.section__subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 28px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.game-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}

.game-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
}

.game-tile__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.35s ease;
}

.game-tile:hover .game-tile__icon {
  transform: scale(1.08);
}

.game-tile__name {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: center;
  line-height: 1.3;
}

.section__cta-wrap {
  text-align: center;
  margin-top: 16px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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