/* pages.css - Shared styles for inner pages */
:root {
  --nav-bg: rgba(10, 13, 18, 0.95);
  --page-bg: #0A0D12;
  --panel: #131720;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #F2F4F7;
  --text-muted: #AEB6C3;
  --primary: #FF7A45;
  --primary-glow: rgba(255, 122, 69, 0.2);
  --secondary: #5B9BC4;
  --gold: #FFD700;
  --green: #4ADE80;
  --purple: #A78BFA;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

body {
  background-color: var(--page-bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
}

/* Typography Enhancements */
h1, h2, h3, h4 {
  color: #fff;
  font-family: 'Chakra Petch', sans-serif;
}

/* General Layout Elements */
.content, .legal-container, .blog-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  text-align: center;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  text-align: center;
}

/* Nav Logo specific for secondary pages */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-cta {
  background: var(--primary);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
}

.active {
  color: var(--primary) !important;
}

/* Hero Elements */
.hero-badge {
  display: inline-block;
  background: var(--border-strong);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Grids & Cards */
.section-grid, .contact-grid, .blog-grid, .games-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 40px;
}

.card, .contact-card, .support-form-card, .blog-card, .game-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover, .blog-card:hover, .game-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.card-icon, .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Badges & Tags */
.badge, .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 8px;
  margin-bottom: 8px;
}

.badge-gold, .tag-orange { background: rgba(255, 215, 0, 0.15); color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.3); }
.badge-blue, .tag-blue { background: rgba(91, 155, 196, 0.15); color: var(--secondary); border: 1px solid rgba(91, 155, 196, 0.3); }
.badge-green, .tag-green { background: rgba(74, 222, 128, 0.15); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.3); }
.tag-purple { background: rgba(167, 139, 250, 0.15); color: var(--purple); border: 1px solid rgba(167, 139, 250, 0.3); }

/* App Specific Cards */
.app-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.app-card-header img {
  border-radius: 12px;
}

.app-card-header-info h3 {
  margin: 0 0 5px 0;
  font-size: 1.5rem;
}

.app-badges {
  margin-bottom: 15px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s;
  margin-top: 15px;
}

.btn-play:hover {
  transform: translateY(-2px);
}

.coming-soon-badge, .coming-badge {
  background: var(--border);
  color: var(--text-muted);
  border: 1px dotted var(--text-muted);
}

.coming-soon {
  opacity: 0.7;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #000;
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
}

/* Blog Specific */
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.read-more {
  margin-top: auto;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  padding-top: 15px;
}

.read-more:hover {
  text-decoration: underline;
}

.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 768px) {
  .featured {
    grid-template-columns: 1fr;
  }
}

/* Game Specific */
.game-card {
  padding: 0;
  overflow: hidden;
}

.game-card-art {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

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

.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--border-strong);
  color: #fff;
}

.notify-section {
  background: linear-gradient(145deg, var(--panel), #0B0E14);
  padding: 60px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
  margin-top: 60px;
}

.notify-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 20px auto 0;
}

.notify-input {
  flex-grow: 1;
}

.btn-notify {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* Legal Pages */
.highlight-box {
  background: rgba(91, 155, 196, 0.1);
  border-left: 4px solid var(--secondary);
  padding: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 30px;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 30px;
}
