/* ═══════════════════════════════════════════
   game-pro.css — صفحة اللعبة الاحترافية
   ═══════════════════════════════════════════ */

.gp-page {
  --gp-color: #1e3a5f;
  --gp-color-soft: color-mix(in srgb, var(--gp-color) 12%, transparent);
  --gp-color-glow: color-mix(in srgb, var(--gp-color) 35%, transparent);
  background: var(--bg-0);
  min-height: 100vh;
}

/* ═══ HERO ═══ */
.gp-hero {
  position: relative;
  padding: 32px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-2);
}
.gp-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, var(--gp-color-glow) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, var(--gp-color-soft) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-0), var(--bg-0));
  z-index: 0;
}
.gp-hero .container { position: relative; z-index: 1; }

.gp-breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 28px;
}
.gp-breadcrumb a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.gp-breadcrumb a:hover { color: var(--accent); }
.gp-bc-sep { opacity: 0.5; }
.gp-bc-current { color: var(--text-1); font-weight: 500; }

.gp-hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 48px;
  align-items: center;
}

.gp-hero-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 64px -20px rgba(0,0,0,0.5), 0 16px 32px -8px var(--gp-color-glow);
}
.gp-hero-cover .game-cover,
.gp-hero-cover .game-cover-book {
  width: 100%; height: 100%;
  border-radius: 24px;
}
.gp-cover-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(circle, var(--gp-color-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(24px);
}

.gp-hero-text { display: flex; flex-direction: column; gap: 16px; }
.gp-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.gp-cats .tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-raised); border: 1px solid var(--line-2);
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 12px; text-decoration: none; color: var(--text-1);
  transition: all .15s;
}
.gp-cats .tag-pill:hover { border-color: var(--gp-color); background: var(--gp-color-soft); }

.gp-title {
  font-family: var(--font-ar);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin: 0;
  color: var(--text-0);
}
.gp-promise {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  max-width: 540px;
}

.gp-rating {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2);
}
.gp-rating-stars { color: #fbbf24; font-size: 16px; letter-spacing: 2px; }
.gp-rating-num { font-weight: 700; color: var(--text-0); font-size: 16px; }
.gp-rating-count { color: var(--text-3); font-size: 13px; }
.gp-rating--new .gp-rating-stars { color: var(--line-3); }
.gp-hero-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.gp-hero-meta .maturity-badge { background: var(--bg-raised); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; color: var(--text-2); }

.gp-hero-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  margin-top: 8px;
}
/* GDT-B2: زر دليل اللعبة */
.gp-btn-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-1, #334155);
  border: 1.5px solid var(--line-2, #e2e8f0);
  padding: 10px 20px;
  border-radius: var(--r-lg, 10px);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  margin-left: 10px;
}
.gp-btn-guide:hover { background: #0a1628; color: #38bdf8; border-color: #0a1628; }
[data-theme=dark] .gp-btn-guide { border-color: #334155; color: #94a3b8; }
[data-theme=dark] .gp-btn-guide:hover { background: #1e3a5f; color: #38bdf8; }

.gp-btn-play {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 2px;
  background: linear-gradient(135deg, var(--gp-color), color-mix(in srgb, var(--gp-color) 70%, #000 30%));
  color: #fff;
  padding: 16px 32px;
  border: none; border-radius: var(--r-lg);
  font-family: var(--font-ar);
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 8px 24px var(--gp-color-glow);
  position: relative;
}
.gp-btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--gp-color-glow);
}
.gp-btn-play-icon { display: inline-block; margin-left: 6px; font-size: 14px; }
.gp-btn-play-text { font-size: 18px; font-weight: 700; line-height: 1; }
.gp-btn-play-meta { font-size: 11px; opacity: 0.85; font-weight: 400; }

.gp-note {
  font-size: 12px; color: var(--text-3);
  margin: 4px 0 0;
}

/* ═══ TRUST STRIP ═══ */
.gp-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: -28px 0 0;
  position: relative; z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.gp-trust-item {
  background: var(--bg-raised);
  padding: 20px 16px;
  text-align: center;
}
.gp-trust-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-0);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.gp-trust-item strong small { font-size: 0.75rem; color: var(--text-3); font-weight: 400; }
.gp-trust-item span { font-size: 12px; color: var(--text-3); }

/* ═══ SECTIONS ═══ */
.gp-section { padding: 48px 0; }
.gp-section--similar { background: var(--bg-1); border-top: 1px solid var(--line-2); }

.gp-h2 {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-ar);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-0);
  margin: 0 0 4px;
}
.gp-h2-icon { font-size: 1.5em; line-height: 1; }
.gp-h2-sub {
  font-size: 13px; color: var(--text-3);
  margin: 0 0 20px 36px;
}

/* ═══ STATS ═══ */
.gp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.gp-stat {
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, transform .15s;
}
.gp-stat:hover { border-color: var(--gp-color); transform: translateY(-2px); }
.gp-stat-icon { font-size: 28px; line-height: 1; }
.gp-stat strong {
  font-size: 1.5rem; font-weight: 700;
  color: var(--text-0);
  font-family: var(--font-mono);
}
.gp-stat span { font-size: 12px; color: var(--text-3); }

/* ═══ GAME DNA ═══ */
.gp-dna-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gp-dna {
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: border-color .15s;
}
.gp-dna:hover { border-color: var(--gp-color); }
.gp-dna-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.gp-dna-icon { font-size: 22px; line-height: 1; }
.gp-dna-name { font-size: 14px; font-weight: 600; color: var(--text-1); flex: 1; }
.gp-dna-val { font-size: 15px; font-weight: 700; color: var(--text-0); font-family: var(--font-mono); }
.gp-dna-max { font-size: 11px; color: var(--text-3); font-weight: 400; }
.gp-dna-bar {
  height: 8px;
  background: var(--bg-2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.gp-dna-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gp-color), color-mix(in srgb, var(--gp-color) 60%, #fff 40%));
  border-radius: var(--r-full);
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}

/* ═══ ABOUT ═══ */
.gp-about-card {
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 32px;
}
.gp-about-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-1);
  margin: 12px 0 0;
}

/* ═══ STEPS ═══ */
.gp-steps {
  display: grid;
  gap: 16px;
}
.gp-step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  transition: border-color .15s;
}
.gp-step:hover { border-color: var(--gp-color); }
.gp-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gp-color);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}
.gp-step-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
  padding-top: 8px;
}

/* ═══ SAMPLES ═══ */
.gp-samples { display: grid; gap: 12px; }
.gp-sample {
  display: flex; gap: 18px;
  background: var(--bg-raised);
  border-right: 4px solid var(--gp-color);
  border-radius: var(--r-md);
  padding: 18px 20px;
  align-items: flex-start;
}
.gp-sample-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gp-color);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 2px;
  opacity: 0.65;
}
.gp-sample p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-1);
}
.gp-empty {
  text-align: center; color: var(--text-3); padding: 24px;
  background: var(--bg-1); border-radius: var(--r-md);
}

/* ═══ FEATURES ═══ */
.gp-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.gp-feature {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 14px 18px;
  transition: all .15s;
}
.gp-feature:hover { border-color: var(--gp-color); background: var(--gp-color-soft); }
.gp-feature-icon { font-size: 22px; line-height: 1; }
.gp-feature strong { font-size: 14px; font-weight: 600; color: var(--text-1); }

/* ═══ RATINGS ═══ */
.gp-rating-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.gp-rating-big { text-align: center; padding: 20px; }
.gp-rating-big strong { display: block; font-size: 4rem; font-weight: 700; color: var(--text-0); line-height: 1; }
.gp-rating-big-stars { display: block; color: #fbbf24; font-size: 24px; letter-spacing: 4px; margin: 8px 0; }
.gp-rating-big small { color: var(--text-3); font-size: 13px; }
.gp-rating-empty {
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  color: var(--text-2);
}
.gp-rating-form { padding: 16px; background: var(--bg-2); border-radius: var(--r-md); }
.gp-rate-label { font-size: 13px; color: var(--text-2); margin: 0 0 10px; font-weight: 600; }
.gp-stars-input { display: flex; gap: 4px; }
.gp-star-btn {
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  font-size: 28px; color: var(--line-3);
  transition: color .1s, transform .1s;
}
.gp-star-btn:hover, .gp-star-btn.active { color: #fbbf24; transform: scale(1.1); }

.gp-reviews { display: flex; flex-direction: column; gap: 12px; }
.gp-review {
  background: var(--bg-raised);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px 20px;
}
.gp-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.gp-review-stars { color: #fbbf24; font-size: 14px; letter-spacing: 2px; }
.gp-review p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-1); }

.gp-ratings-loading { text-align: center; color: var(--text-3); padding: 24px; }

/* ═══ STICKY MOBILE CTA ═══ */
.gp-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: var(--bg-0);
  border-top: 1px solid var(--line-2);
  z-index: 100;
  transform: translateY(100%);
  transition: transform .3s;
}
.gp-sticky-cta.visible { transform: translateY(0); }
.gp-sticky-btn {
  display: block; width: 100%;
  padding: 14px;
  background: var(--gp-color);
  color: #fff;
  border-radius: var(--r-lg);
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}
@media (min-width: 768px) {
  .gp-sticky-cta { display: none; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .gp-hero { padding: 16px 0 40px; }
  .gp-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .gp-hero-cover { max-width: 280px; margin: 0 auto; }
  .gp-trust { grid-template-columns: 1fr 1fr 1fr; }
  .gp-trust-item { padding: 14px 6px; }
  .gp-trust-item strong { font-size: 1.3rem; }
  .gp-section { padding: 32px 0; }
  .gp-rating-summary { grid-template-columns: 1fr; }
  .gp-stats { grid-template-columns: repeat(2, 1fr); }
  .gp-page { padding-bottom: 80px; }
}

/* GDT-B1: Game Modes Section */
.gp-modes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; margin-top: 16px; }
.gp-mode-card { background: var(--bg-1,#f8fafc); border: 1.5px solid var(--line-2,#e2e8f0); border-radius: 12px; padding: 16px 14px; text-align: center; }
[data-theme=dark] .gp-mode-card { background: #1e293b; border-color: #334155; }
.gp-mode-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.gp-mode-card strong { display: block; font-size: 14px; color: var(--text-0,#0f172a); margin-bottom: 4px; }
[data-theme=dark] .gp-mode-card strong { color: #f1f5f9; }
.gp-mode-card p { font-size: 12px; color: var(--text-3,#94a3b8); margin: 0; line-height: 1.4; }
