/* ==========================================================================
   KIXEYE static site — custom styles
   Uses Bootstrap 5 for the grid and carousel; this file handles everything else.
   ========================================================================== */

/* ---- Reset / Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: #000;
  color: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding-top: 56px; /* space below fixed header */
  -webkit-font-smoothing: antialiased;
}

/* ---- Fixed Header -------------------------------------------------------- */
#kx-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1050;
  border-bottom: 1px solid #222;
}

/* Hamburger button — position:relative + z-index ensures it stays above the
   absolutely-positioned logo link which would otherwise overlap it */
.kx-hamburger-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.kx-hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: background 0.15s;
}

.kx-hamburger-btn:hover span { background: #ccc; }

/* Logo (centered absolutely so it doesn't push other items) */
.kx-header-logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  line-height: 0;
}

.kx-header-logo {
  height: 30px;
  width: auto;
}

/* Spacer matches hamburger width to keep logo truly centered */
.kx-header-spacer {
  width: 38px;
  flex-shrink: 0;
}

/* ---- Click-outside overlay ----------------------------------------------- */
#kx-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1035;
  background: rgba(0, 0, 0, 0.55);
}

body.kx-menu-open #kx-overlay {
  display: block;
}

/* ---- Nav Drawer ---------------------------------------------------------- */
#kx-nav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: #111;
  z-index: 1040;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  max-height: calc(100vh - 56px);
  border-bottom: 1px solid #222;
}

body.kx-menu-open #kx-nav {
  transform: translateY(0);
}

#kx-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 16px;
}

/* Section headings inside nav */
.kx-nav-heading {
  padding: 18px 20px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  border-top: 1px solid #222;
}

#kx-nav ul li:first-child.kx-nav-heading {
  border-top: none;
}

#kx-nav li a {
  display: block;
  padding: 13px 20px;
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #1c1c1c;
  transition: color 0.15s, background 0.15s;
}

#kx-nav li a:hover,
#kx-nav li a:focus {
  color: #fff;
  background: #1a1a1a;
  outline: none;
}

/* ---- Home Page ----------------------------------------------------------- */
.kx-home-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 0 48px;
}

/* Section heading (Mobile Games / Desktop Games) */
.kx-home-section-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  padding: 24px 16px 10px;
  margin: 0;
}

/* Divider between the two sections */
.kx-section-divider {
  border: none;
  border-top: 3px solid #1a1a1a;
  margin: 8px 0 0;
}

.kx-home-game {
  width: 100%;
}

.kx-home-link {
  display: block;
  line-height: 0;
}

.kx-game-logo {
  width: 100%;
  display: block;
}

.kx-separator {
  border: none;
  border-top: 1px solid #1e1e1e;
  margin: 0;
}

/* ---- Game Detail Page ---------------------------------------------------- */
.kx-game-detail {
  max-width: 768px;
  margin: 0 auto;
  padding: 20px 16px 64px;
}

.kx-game-header {
  text-align: center;
  padding: 8px 0 16px;
}

.kx-back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: #888;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.kx-back-link:hover { color: #fff; }

.kx-game-detail-logo {
  max-width: 100%;
}

/* Trailer — 16:9 aspect ratio */
.kx-trailer-container {
  margin-bottom: 20px;
}

.kx-trailer-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}

.kx-trailer-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Value Props — 2-column grid */
.kx-value-props {
  padding: 12px 0 20px;
}

.kx-value-prop {
  text-align: center;
  padding: 14px 10px;
}

.kx-value-prop-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 10px;
}

.kx-value-prop-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin: 0 0 6px;
}

.kx-value-prop-body {
  font-size: 12px;
  color: #999;
  margin: 0;
  line-height: 1.5;
}

/* Screenshots Carousel */
.kx-carousel {
  margin-bottom: 28px;
  background: #000;
}

.kx-carousel .carousel-item img {
  max-height: 400px;
  object-fit: contain;
  background: #000;
}

/* Platform CTA */
.kx-cta-section {
  text-align: center;
  padding: 4px 0 20px;
}

.kx-splash-text {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 16px;
}

/* App store badge buttons — side by side */
.kx-store-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.kx-store-btn {
  display: inline-flex;
  line-height: 0;
}

.kx-store-badge {
  height: 44px;
  width: auto;
}

/* General outlined button */
.kx-btn {
  background: #2a2a2a;
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border-radius: 4px;
  transition: background 0.15s;
  letter-spacing: 0.04em;
}

.kx-btn:hover {
  background: #444;
  color: #fff;
}

/* ---- Footer -------------------------------------------------------------- */
#kx-footer {
  background: #0a0a0a;
  border-top: 1px solid #1a1a1a;
  text-align: center;
  padding: 22px 20px;
  color: #444;
  font-size: 12px;
}

#kx-footer p { margin: 0; }
