/*
Theme Name: Hello Elementor Child - RupeeGames
Theme URI: https://rupeegames.online
Description: High-performance, dark esports & gaming child theme for RupeeGames.online. Inspired by modern cinematic UI with electric blue and purple accents, glassmorphic surfaces, and responsive layouts.
Author: RupeeGames Engineering
Author URI: https://rupeegames.online
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

:root {
  --rg-bg-deep: #080b11;
  --rg-bg-surface: #0f1422;
  --rg-bg-surface-elevated: #161d31;
  --rg-bg-card: rgba(15, 20, 34, 0.85);
  --rg-bg-glass: rgba(15, 20, 34, 0.7);
  --rg-cyan: #00d4ff;
  --rg-cyan-glow: rgba(0, 212, 255, 0.35);
  --rg-purple: #8b5cf6;
  --rg-purple-glow: rgba(139, 92, 246, 0.35);
  --rg-yellow: #f5b700;
  --rg-green: #10b981;
  --rg-red: #ef4444;
  --rg-text: #f1f5f9;
  --rg-text-muted: #94a3b8;
  --rg-text-subtle: #64748b;
  --rg-border: rgba(255, 255, 255, 0.08);
  --rg-border-hover: rgba(0, 212, 255, 0.4);
  --rg-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rg-font-heading: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --rg-grad-brand: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
  --rg-grad-surface: linear-gradient(180deg, rgba(22, 29, 49, 0.8) 0%, rgba(15, 20, 34, 0.95) 100%);
  --rg-radius: 12px;
  --rg-radius-sm: 6px;
  --rg-radius-lg: 16px;
  --rg-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background-color: var(--rg-bg-deep) !important;
  color: var(--rg-text) !important;
  font-family: var(--rg-font-sans) !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--rg-cyan);
  text-decoration: none;
  transition: var(--rg-transition);
}
a:hover {
  color: #fff;
}

/* Layout Containers */
.rg-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.rg-section {
  padding: 60px 0;
}
.rg-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.rg-section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rg-section-subtitle {
  font-size: 14px;
  color: var(--rg-text-muted);
  margin: 0;
}
.rg-view-all {
  color: var(--rg-cyan);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rg-view-all:hover {
  transform: translateX(4px);
  color: #fff;
}

/* Header & Nav */
.rg-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(8, 11, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rg-border);
  transition: var(--rg-transition);
}
.rg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.rg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
}
.rg-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rg-grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080b11;
  box-shadow: 0 0 16px var(--rg-cyan-glow);
}
.rg-logo .brand-part1 { color: #fff; }
.rg-logo .brand-part2 {
  background: var(--rg-grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rg-logo .brand-tld {
  font-size: 13px;
  color: var(--rg-text-subtle);
  font-weight: 500;
}

/* Nav Links */
.rg-main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rg-nav-link {
  color: var(--rg-text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: var(--rg-transition);
  position: relative;
  padding: 8px 0;
}
.rg-nav-link:hover, .rg-nav-link.active {
  color: #fff;
}
.rg-nav-link:hover::after, .rg-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rg-cyan);
  box-shadow: 0 0 8px var(--rg-cyan-glow);
}

/* Header Right: Search & Actions */
.rg-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rg-search-wrapper {
  position: relative;
  width: 240px;
}
.rg-search-input {
  width: 100%;
  background: var(--rg-bg-surface);
  border: 1px solid var(--rg-border);
  border-radius: 20px;
  padding: 8px 16px 8px 36px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: var(--rg-transition);
  box-sizing: border-box;
}
.rg-search-input:focus {
  border-color: var(--rg-cyan);
  box-shadow: 0 0 12px var(--rg-cyan-glow);
  width: 280px;
}
.rg-search-icon-pos {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rg-text-subtle);
  pointer-events: none;
}
.rg-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  background: var(--rg-bg-surface-elevated);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}
.rg-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: var(--rg-transition);
}
.rg-search-item:hover, .rg-search-item.is-active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--rg-cyan);
}
.rg-search-thumb, .rg-search-thumb-ph {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rg-search-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.rg-search-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.rg-search-type {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.rg-type-games { background: rgba(0, 212, 255, 0.2); color: var(--rg-cyan); }
.rg-type-tools { background: rgba(139, 92, 246, 0.2); color: var(--rg-purple); }
.rg-type-guides { background: rgba(16, 185, 129, 0.2); color: var(--rg-green); }
.rg-type-news { background: rgba(245, 183, 0, 0.2); color: var(--rg-yellow); }
.rg-type-redeem_codes { background: rgba(239, 68, 68, 0.2); color: var(--rg-red); }
.rg-search-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--rg-text-muted);
  text-align: center;
}

/* Buttons */
.rg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--rg-transition);
  border: none;
  text-decoration: none;
}
.rg-btn-primary {
  background: var(--rg-grad-brand);
  color: #080b11 !important;
  box-shadow: 0 4px 14px var(--rg-cyan-glow);
}
.rg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
  color: #080b11 !important;
}
.rg-btn-secondary {
  background: var(--rg-bg-surface-elevated);
  color: #fff !important;
  border: 1px solid var(--rg-border);
}
.rg-btn-secondary:hover {
  background: var(--rg-bg-surface);
  border-color: var(--rg-cyan);
  color: var(--rg-cyan) !important;
  transform: translateY(-2px);
}
.rg-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

/* Category Pills Bar */
.rg-category-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rg-category-bar::-webkit-scrollbar { display: none; }
.rg-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rg-bg-surface);
  border: 1px solid var(--rg-border);
  padding: 10px 18px;
  border-radius: 30px;
  color: var(--rg-text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--rg-transition);
}
.rg-category-pill:hover, .rg-category-pill.is-active {
  background: var(--rg-bg-surface-elevated);
  border-color: var(--rg-cyan);
  color: #fff;
  transform: translateY(-2px);
}
.rg-category-pill svg {
  color: var(--rg-cyan);
}

/* Game Card Grid */
.rg-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.rg-game-card {
  background: var(--rg-bg-card);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  overflow: hidden;
  transition: var(--rg-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.rg-game-card:hover {
  transform: translateY(-6px);
  border-color: var(--rg-border-hover);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--rg-cyan-glow);
}
.rg-game-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.rg-game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.rg-game-card:hover .rg-game-thumb {
  transform: scale(1.05);
}
.rg-game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(8, 11, 17, 0.85);
  border: 1px solid var(--rg-border);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--rg-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rg-game-mode-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.rg-game-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.rg-game-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.rg-game-card-meta {
  font-size: 12px;
  color: var(--rg-text-subtle);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rg-game-card-desc {
  font-size: 13px;
  color: var(--rg-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}
.rg-game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rg-border);
  padding-top: 12px;
  margin-top: auto;
}

/* Tools Card Grid */
.rg-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.rg-tool-card {
  background: var(--rg-grad-surface);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  padding: 24px;
  transition: var(--rg-transition);
  position: relative;
  overflow: hidden;
}
.rg-tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--rg-purple);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 18px var(--rg-purple-glow);
}
.rg-tool-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rg-purple);
  margin-bottom: 16px;
}
.rg-tool-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}
.rg-tool-card-desc {
  font-size: 13px;
  color: var(--rg-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Redeem Codes Cards */
.rg-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.rg-code-card {
  background: var(--rg-bg-card);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius);
  padding: 20px;
  transition: var(--rg-transition);
}
.rg-code-card:hover {
  border-color: var(--rg-border-hover);
}
.rg-code-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.rg-code-game-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.rg-code-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.rg-status-active { background: rgba(16, 185, 129, 0.2); color: var(--rg-green); border: 1px solid rgba(16, 185, 129, 0.4); }
.rg-status-expiring { background: rgba(245, 183, 0, 0.2); color: var(--rg-yellow); border: 1px solid rgba(245, 183, 0, 0.4); }
.rg-status-expired { background: rgba(239, 68, 68, 0.2); color: var(--rg-red); border: 1px solid rgba(239, 68, 68, 0.4); }
.rg-code-box {
  background: #080b11;
  border: 1px dashed var(--rg-border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rg-code-text {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--rg-cyan);
  letter-spacing: 1px;
}
.rg-code-copy-btn {
  background: var(--rg-bg-surface-elevated);
  border: 1px solid var(--rg-border);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--rg-transition);
}
.rg-code-copy-btn:hover {
  background: var(--rg-cyan);
  color: #080b11;
}

/* Tool Interactive Calculator Engine Containers */
.rg-tool-engine-wrapper {
  background: var(--rg-bg-surface);
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  padding: 32px;
  margin: 30px 0;
}
.rg-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rg-calc-field {
  margin-bottom: 18px;
}
.rg-calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rg-text-muted);
  margin-bottom: 8px;
}
.rg-calc-input, .rg-calc-select {
  width: 100%;
  background: #080b11;
  border: 1px solid var(--rg-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
  outline: none;
  transition: var(--rg-transition);
}
.rg-calc-input:focus, .rg-calc-select:focus {
  border-color: var(--rg-cyan);
  box-shadow: 0 0 12px var(--rg-cyan-glow);
}
.rg-calc-result-box {
  background: var(--rg-bg-surface-elevated);
  border: 1px solid var(--rg-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rg-calc-result-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rg-text-subtle);
  margin-bottom: 6px;
}
.rg-calc-result-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--rg-cyan);
  line-height: 1;
}
.rg-calc-disclaimer {
  font-size: 12px;
  color: var(--rg-text-subtle);
  background: rgba(0,0,0,0.25);
  border-left: 3px solid var(--rg-cyan);
  padding: 10px 14px;
  margin-top: 24px;
  border-radius: 0 6px 6px 0;
}

/* Ping Diagnostics Results */
.rg-ping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.rg-ping-card {
  background: #080b11;
  border: 1px solid var(--rg-border);
  border-radius: 10px;
  padding: 18px;
}
.rg-ping-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.rg-ping-card-name { font-size: 14px; font-weight: 700; color: #fff; }
.rg-ping-card-region { font-size: 11px; color: var(--rg-text-subtle); }
.rg-ping-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.rg-ping-badge.is-great { background: rgba(16, 185, 129, 0.2); color: var(--rg-green); }
.rg-ping-badge.is-good { background: rgba(0, 212, 255, 0.2); color: var(--rg-cyan); }
.rg-ping-badge.is-fair { background: rgba(245, 183, 0, 0.2); color: var(--rg-yellow); }
.rg-ping-badge.is-bad { background: rgba(239, 68, 68, 0.2); color: var(--rg-red); }
.rg-ping-badge.is-testing { background: rgba(139, 92, 246, 0.2); color: var(--rg-purple); }
.rg-ping-main-val { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.rg-ping-unit { font-size: 14px; color: var(--rg-text-subtle); font-weight: normal; margin-left: 4px; }
.rg-ping-stats-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--rg-text-subtle); }

/* Playable Game Player Sandbox */
.rg-player-container {
  background: #000;
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  overflow: hidden;
  margin: 30px 0;
  position: relative;
}
.rg-player-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.rg-player-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.rg-player-toolbar {
  background: var(--rg-bg-surface);
  border-top: 1px solid var(--rg-border);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rg-player-actions {
  display: flex;
  gap: 10px;
}

/* Tabbed Hub */
.rg-hub-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--rg-border);
  margin-bottom: 30px;
  overflow-x: auto;
}
.rg-hub-tab-btn {
  background: transparent;
  border: none;
  color: var(--rg-text-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: var(--rg-transition);
}
.rg-hub-tab-btn:hover { color: #fff; }
.rg-hub-tab-btn.is-active {
  color: var(--rg-cyan);
}
.rg-hub-tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--rg-cyan);
  box-shadow: 0 0 8px var(--rg-cyan-glow);
}
.rg-tab-panel { display: none; }
.rg-tab-panel.is-active { display: block; animation: rgFadeIn 0.3s ease; }

@keyframes rgFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.rg-site-footer {
  background: #05070a;
  border-top: 1px solid var(--rg-border);
  padding: 60px 0 30px;
  color: var(--rg-text-muted);
  font-size: 13px;
  margin-top: 80px;
}
.rg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.rg-footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px 0;
}
.rg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rg-footer-links li {
  margin-bottom: 10px;
}
.rg-footer-links a {
  color: var(--rg-text-muted);
  transition: var(--rg-transition);
}
.rg-footer-links a:hover {
  color: var(--rg-cyan);
  padding-left: 4px;
}
.rg-footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: var(--rg-text-subtle);
  border-top: 1px solid var(--rg-border);
  padding-top: 24px;
  margin-top: 30px;
}
.rg-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rg-border);
  padding-top: 24px;
  font-size: 12px;
  color: var(--rg-text-subtle);
}

/* Mobile Nav Drawer */
.rg-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}
.rg-mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--rg-bg-deep);
  z-index: 998;
  padding: 24px;
  overflow-y: auto;
}
.rg-mobile-drawer.is-open { display: block; }
.rg-mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.rg-mobile-nav li { margin-bottom: 16px; }
.rg-mobile-nav a { font-size: 18px; font-weight: 700; color: #fff; }

@media (max-width: 991px) {
  .rg-main-nav, .rg-search-wrapper { display: none; }
  .rg-mobile-toggle { display: block; }
  .rg-footer-grid { grid-template-columns: 1fr 1fr; }
  .rg-calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rg-footer-grid { grid-template-columns: 1fr; }
  .rg-section { padding: 40px 0; }
  .rg-section-title { font-size: 22px; }
  .rg-calc-result-number { font-size: 32px; }
}
