/* ==========================================================================
   ALLMODS - Mobile Gaming Discovery Theme
   High-performance, mobile-first responsive dark styles
   ========================================================================== */

:root {
  --bg-main: #090a12;
  --bg-card: #121524;
  --bg-card-secondary: #0d101c;
  --border-color: #1e2438;
  --border-glow: rgba(168, 85, 247, 0.4);
  --purple-primary: #9333ea;
  --purple-light: #c084fc;
  --indigo-accent: #6366f1;
  --cyan-accent: #06b6d4;
  --emerald-accent: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-gaming: 'Chakra Petch', 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* Typography */
.font-gaming {
  font-family: var(--font-gaming);
}

/* Container */
.app-container {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 10, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
}

.header-inner {
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-gaming);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-logo span {
  color: var(--purple-light);
}

/* Hero Section */
.hero-section {
  padding: 24px 0 16px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-gaming);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 8px;
}

.hero-title span {
  background: linear-gradient(90deg, #c084fc, #818cf8, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto 18px;
}

.hero-cta {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 14px 20px;
  background: linear-gradient(90deg, #9333ea, #6366f1);
  color: #ffffff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(147, 51, 234, 0.35);
  transition: transform 0.15s ease;
}

.hero-cta:active {
  transform: scale(0.98);
}

/* Search Bar */
.search-wrapper {
  margin: 20px 0 12px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 13px 16px 13px 40px;
  border-radius: 14px;
  background: #111422;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  width: 16px;
  height: 16px;
}

/* Category Filters */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #111422;
  color: #cbd5e1;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn.active {
  background: linear-gradient(90deg, #9333ea, #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
}

/* Games Section */
.section-title {
  font-family: var(--font-gaming);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Game Card */
.game-card {
  background: linear-gradient(180deg, #131728 0%, #0c0f1b 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.game-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #000;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(9, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
}

.game-card-body {
  padding: 16px;
}

.game-title {
  font-family: var(--font-gaming);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.game-description {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.game-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.info-item {
  background: rgba(17, 20, 34, 0.6);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.info-label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.info-val {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #9333ea, #6366f1, #9333ea);
  background-size: 200% auto;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(147, 51, 234, 0.3);
  transition: all 0.2s ease;
}

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

/* Floating Notification */
.notification-toast {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  max-width: 360px;
  margin: 0 auto;
  background: rgba(16, 19, 34, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 50;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.toast-hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.toast-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(9, 11, 20, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 40;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-item.active {
  color: var(--purple-light);
}

/* Accordion FAQs */
.faq-item {
  background: #111422;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Legal Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 16px;
  }
}

.modal-dialog {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  background: #0f1220;
  border-top: 1px solid var(--border-glow);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}

@media (min-width: 640px) {
  .modal-dialog {
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #14182a;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-family: var(--font-gaming);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.modal-tabs {
  display: flex;
  background: #0a0c16;
  border-bottom: 1px solid var(--border-color);
}

.modal-tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tab-btn.active {
  color: var(--purple-light);
  border-bottom-color: var(--purple-primary);
  background: rgba(147, 51, 234, 0.1);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}

.modal-body h3 {
  color: #fff;
  font-size: 14px;
  margin: 14px 0 6px;
}

.modal-body p {
  margin-bottom: 10px;
}

.modal-footer {
  padding: 14px 20px;
  background: #14182a;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

/* Trust Badges Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.trust-item {
  background: rgba(17, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}

.trust-item-val {
  font-family: var(--font-gaming);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: block;
}

.trust-item-lbl {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
}

