/* main.css - GameTime Corner
   @petr started 12.05, @mike touched header 28.05
   last refactor: skipped on purpose :) */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gt-bg: #0a0e17;
  --gt-panel: #111827;
  --gt-card: #1a2235;
  --app-neon-cyan: #00f5ff;
  --app-neon-pink: #ff00aa;
  --app-neon-green: #39ff14;
  --gt-text: #e8edf5;
  --gt-muted: #94a3b8;
  --gt-border: rgba(0, 245, 255, 0.25);
  --gt-glow: 0 0 20px rgba(0, 245, 255, 0.35);
  --font-head: "Orbitron", sans-serif;
  --font-base: "Exo 2", sans-serif;
  --radius: 12px;
  --header-h: 72px;
  --ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--gt-text);
  background-color: var(--gt-bg);
  min-height: 100vh;
}

body > main,
body > .main-footer {
  position: relative;
  z-index: 1;
}

.error-page__action {
  margin-top: 28px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 500;
  padding: 12px 20px;
  font-weight: 700;
  color: var(--gt-bg);
  background: var(--app-neon-cyan);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--app-neon-cyan);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--app-neon-green);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--app-neon-cyan);
  outline-offset: 3px;
}

.container,
.gt-container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---- header ---- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--gt-bg);
  border-bottom: 1px solid var(--gt-border);
}

.main-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gt-text);
  letter-spacing: 0.04em;
}

.logo-img {
  width: 36px;
  height: 36px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gt-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--app-neon-cyan);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--gt-border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--app-neon-cyan);
  transition:
    transform var(--ease),
    opacity var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile panel - @mike: Safari bug with transform, keep will-change off */
.mobile-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--ease),
    visibility var(--ease);
}

.mobile-panel-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 201;
  width: min(320px, 85vw);
  height: 100vh;
  padding: 90px 32px 32px;
  background: var(--gt-panel);
  border-left: 1px solid var(--gt-border);
  transform: translateX(100%);
  transition: transform var(--ease);
}

.mobile-panel.is-open {
  transform: translateX(0);
}

.mobile-panel__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  color: var(--app-neon-cyan);
  background: transparent;
  border: 1px solid var(--gt-border);
  border-radius: 8px;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav__link {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gt-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* hero */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-section .hero-baner,
.hero-section .hero-section__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-section .hero-baner img,
.hero-section .hero-section__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 14, 23, 0.22);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.heroLead {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.125rem;
  color: var(--gt-muted);
}

.page-section {
  padding: 72px 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

.secton-dark,
.page-section--alt {
  background: var(--gt-panel);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.game-card,
.pricin-card {
  display: flex;
  flex-direction: column;
  background: var(--gt-card);
  border: 1px solid var(--gt-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--ease);
}

.game-card:hover,
.pricin-card:hover {
  border-color: var(--app-neon-cyan);
}

.game-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__body {
  padding: 24px;
}

.game-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.game-card__desc {
  color: var(--gt-muted);
  margin-bottom: 16px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--app-neon-green);
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 999px;
}

.game-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 22px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gt-bg);
  background: var(--app-neon-cyan);
  border-radius: 8px;
  transition:
    filter var(--ease),
    box-shadow var(--ease);
}

.game-card__btn:hover {
  filter: brightness(1.1);
  color: var(--gt-bg);
  box-shadow: var(--gt-glow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-block {
  padding: 32px 24px;
  background: var(--gt-card);
  border: 1px solid var(--gt-border);
  border-radius: var(--radius);
}

.feature-block__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.feature-block__icon svg {
  display: block;
  width: 48px;
  height: 48px;
}

.feature-block__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-block__text {
  color: var(--gt-muted);
  font-size: 0.95rem;
}

.faq-list {
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--gt-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--gt-text);
  background: var(--gt-card);
  border: none;
  cursor: pointer;
  transition:
    color var(--ease),
    background var(--ease);
}

.faq-item__q:hover,
.faq-item__q[aria-expanded="true"] {
  color: var(--app-neon-cyan);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition:
    transform var(--ease),
    opacity var(--ease);
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item__q[aria-expanded="true"] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--ease);
}

.faq-item__panel.is-open {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__a {
  padding: 0 24px 20px;
  color: var(--gt-muted);
  background: var(--gt-card);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  padding: 24px;
  background: var(--gt-card);
  border: 1px solid var(--gt-border);
  border-radius: var(--radius);
}

.review-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.review-card__date {
  font-size: 0.8rem;
  color: var(--gt-muted);
}

.review-card__stars {
  font-size: 0.9rem;
  color: #fbbf24;
  letter-spacing: 2px;
}

.review-card__author {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.review-card__text {
  font-size: 0.92rem;
  color: var(--gt-muted);
  margin-bottom: 12px;
}

.review-card__game {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-neon-cyan);
}

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 48px;
  text-align: center;
  border-bottom: 1px solid var(--gt-border);
}

.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

.page-hero__meta {
  margin-top: 12px;
  color: var(--gt-muted);
  font-size: 0.95rem;
}

.content-block {
  padding: 56px 0 80px;
}

.content-block__inner {
  max-width: 800px;
  margin-inline: auto;
}

.content-block p {
  margin-bottom: 1.25rem;
  color: var(--gt-muted);
}

.content-block h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
  color: var(--gt-text);
}

.content-block h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--app-neon-cyan);
}

.content-block h4 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--gt-text);
}

.content-block ul,
.content-block ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--gt-muted);
}

.content-block li {
  margin-bottom: 0.5rem;
}

.section-lead {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--gt-muted);
  font-size: 1rem;
}

.about-mission-note {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 20px 24px;
  text-align: center;
  color: var(--gt-muted);
  background: var(--gt-card);
  border: 1px solid var(--gt-border);
  border-radius: var(--radius);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  padding: 28px 24px;
  background: var(--gt-card);
  border: 1px solid var(--gt-border);
  border-radius: var(--radius);
}

.step-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.step-card__text {
  font-size: 0.92rem;
  color: var(--gt-muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 0 80px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
  padding: 12px 16px;
  font-family: var(--font-base);
  font-size: 1rem;
  color: var(--gt-text);
  background: var(--gt-card);
  border: 1px solid var(--gt-border);
  border-radius: 8px;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--gt-muted);
}

.card-btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background var(--ease),
    box-shadow var(--ease);
}

.btn-primary {
  color: var(--gt-bg);
  background: var(--app-neon-cyan);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gt-text);
  background: transparent;
  border: 1px solid var(--gt-border);
  border-radius: 8px;
  cursor: pointer;
}

.contact-side__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-side__text {
  color: var(--gt-muted);
  margin-bottom: 24px;
}

.contact-side__row {
  margin-bottom: 16px;
}

.contact-side__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--app-neon-pink);
}

.map-wrap {
  margin-top: 32px;
  border: 1px solid var(--gt-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.main-footer {
  padding: 56px 0 32px;
  background: var(--gt-panel);
  border-top: 1px solid var(--gt-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--gt-muted);
  margin-bottom: 16px;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--gt-muted);
  font-style: normal;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--app-neon-cyan);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--gt-muted);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gt-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gt-muted);
}

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 20px;
  background: var(--gt-panel);
  border-top: 1px solid var(--gt-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.cookie-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1140px, 100%);
  margin-inline: auto;
}

.cookie-bar__text {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  color: var(--gt-muted);
}

.cookie-bar__actions {
  display: flex;
  gap: 12px;
}

.ui-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--ease),
    visibility var(--ease);
}

.ui-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.ui-modal {
  width: min(480px, 100%);
  padding: 40px 32px;
  text-align: center;
  background: var(--gt-panel);
  border: 1px solid var(--gt-border);
  border-radius: var(--radius);
  transform: scale(0.9);
  transition: transform var(--ease);
}

.ui-modal-overlay.is-visible .ui-modal {
  transform: scale(1);
}

.ui-modal__title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.ui-modal__text {
  color: var(--gt-muted);
  margin-bottom: 24px;
}

/* about page - team strip, temp layout @tom 18.06 */
.gt-teamStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.gt-teamStrip__pill {
  padding: 8px 18px;
  font-size: 0.85rem;
  background: var(--gt-card);
  border: 1px solid var(--gt-border);
  border-radius: 999px;
  color: var(--gt-muted);
}

/* criteria - old card-fix class kept for analytics hooks */
.card-fix-2026 {
  /* noop, legacy selector from Q1 redesign */
}

@media (max-width: 992px) {
  .features-grid,
  .steps-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar__actions {
    flex-direction: column;
  }
}
