/* ===================================================
   OKI GAMES / TALKITO GAMES - PORTAL VITRINI
   Modern Glassmorphism & Cyberpunk Theme
   =================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background-color: #070e1c;
  background-image: 
    radial-gradient(at 10% 20%, rgba(9, 132, 227, 0.2) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(0, 206, 201, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(108, 92, 231, 0.12) 0px, transparent 60%);
  background-attachment: fixed;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==================== Top Navbar ==================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  background: rgba(7, 14, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0984e3, #00cec9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(0, 206, 201, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff, #00cec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 11px;
  color: #74b9ff;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Search Box */
.nav-search {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 20px;
}

.nav-search input {
  width: 100%;
  padding: 10px 18px 10px 42px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.25s ease;
}

.nav-search input:focus {
  border-color: #00cec9;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 206, 201, 0.35);
}

.nav-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  fill: #a4b0be;
  pointer-events: none;
}

.nav-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-tag {
  background: rgba(0, 206, 201, 0.15);
  border: 1px solid rgba(0, 206, 201, 0.4);
  color: #00cec9;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== Main Container ==================== */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 60px 24px;
}

/* ==================== Spotlight Hero Banner ==================== */
.hero-spotlight {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(19, 39, 79, 0.95), rgba(8, 17, 36, 0.98));
  border: 2px solid rgba(0, 206, 201, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 206, 201, 0.15);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px;
  margin-bottom: 36px;
}

.hero-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 206, 201, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-info {
  max-width: 600px;
  z-index: 2;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-featured {
  background: linear-gradient(135deg, #ff7675, #d63031);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(214, 48, 49, 0.4);
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, #00cec9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #b2bec3;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #dfe6e9;
}

.btn-play-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 34px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #071329;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.btn-play-large:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.12);
  box-shadow: 0 12px 28px rgba(0, 206, 201, 0.6);
}

.btn-play-large:active {
  transform: translateY(1px);
}

.hero-artwork {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-showcase-box {
  width: 220px;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cube {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #feca57, #ff9f43);
  border: 4px solid #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(254, 202, 87, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  color: #1e272e;
  animation: floatAnim 3.2s ease-in-out infinite;
}

@keyframes floatAnim {
  0%, 100% { transform: translateY(0) rotate(6deg); }
  50% { transform: translateY(-16px) rotate(-6deg); }
}

/* ==================== Category Navigation ==================== */
.section-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dfe6e9;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.nav-tab.active {
  background: linear-gradient(135deg, #0984e3, #00cec9);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 206, 201, 0.35);
}

/* ==================== Games Grid ==================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* Game Card */
.game-card {
  position: relative;
  background: rgba(13, 27, 56, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 206, 201, 0.6);
  box-shadow: 0 16px 36px rgba(0, 206, 201, 0.25);
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0d1b38;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  z-index: 2;
}

.card-badge-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(254, 202, 87, 0.4);
  color: #feca57;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-info {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 12px;
  color: #a4b0be;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-players {
  font-size: 12px;
  color: #74b9ff;
  font-weight: 600;
}

.btn-card-play {
  background: linear-gradient(135deg, #0984e3, #00cec9);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 206, 201, 0.3);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.game-card:hover .btn-card-play {
  filter: brightness(1.15);
  transform: scale(1.05);
}

/* ==================== Fullscreen / Theater Game Player Modal ==================== */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #060c18;
  z-index: 999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.game-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  height: 56px;
  background: rgba(10, 20, 44, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

.modal-btn-back {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.modal-btn-back:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-game-title {
  font-size: 16px;
  font-weight: 800;
  color: #00cec9;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-btn-icon:hover {
  background: rgba(255, 255, 255, 0.22);
}

.modal-iframe-container {
  flex-grow: 1;
  width: 100%;
  height: calc(100vh - 56px);
  position: relative;
  background: #000;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .hero-spotlight {
    flex-direction: column;
    padding: 30px 24px;
    text-align: center;
  }
  .hero-info {
    max-width: 100%;
  }
  .hero-badge-row, .hero-meta {
    justify-content: center;
  }
  .cube-showcase-box {
    margin-top: 24px;
  }
  .nav-search {
    display: none;
  }
}
