﻿/* ============================================================
   GYM HERO — Public Pages Shared CSS
   Dark Glassmorphism | RTL | Cairo + Tajawal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --bg-base:        #0a0a0a;
  --glass-bg:       rgba(15, 15, 15, 0.65);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-blur:     blur(12px);
  --radius-lg:      20px;
  --radius-md:      14px;
  --radius-sm:      8px;
  --accent-red:     #e61919;
  --accent-red-glow:rgba(230, 25, 25, 0.45);
  --accent-green:   #25D366;
  --accent-gold:    #FFD700;
  --accent-cyan:    #00bcd4;
  --text-primary:   #f0f0f0;
  --text-secondary: #9a9a9a;
  --text-muted:     #555;
  --font-heading:   "Cairo", sans-serif;
  --font-body:      "Tajawal", sans-serif;
  --transition:     0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-h:       70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { direction: rtl; scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('https://lh3.googleusercontent.com/d/1RMdh-2Ihum_Nzur9ZeI1CxnSk5swwE1u');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.8) 50%, rgba(10, 10, 10, 0.95) 100%);
  z-index: -1;
}

h1,h2,h3,h4,h5,h6,button,.btn,nav,.badge { font-family: var(--font-heading); }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p  { font-size: 1.05rem; color: var(--text-secondary); }
a  { color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
ul { list-style: none; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
}

.glass-hover { transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition); }
.glass-hover:hover { transform: translateY(-4px); border-color: rgba(230,25,25,0.35); box-shadow: 0 0 20px rgba(230,25,25,0.15); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all var(--transition);
  border: none; white-space: nowrap;
}
.btn-primary { background: var(--accent-red); color: #fff; box-shadow: 0 0 18px var(--accent-red-glow), 0 4px 15px rgba(0,0,0,0.4); }
.btn-primary:hover { background: #c41515; box-shadow: 0 0 30px var(--accent-red-glow); transform: translateY(-2px) scale(1.02); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 2px solid var(--glass-border); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
.btn-gold { background: var(--accent-gold); color: #000; box-shadow: 0 0 18px rgba(255,215,0,0.35); }
.btn-gold:hover { background: #e6c300; transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,215,0,0.5); }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 0 18px rgba(37,211,102,0.35); }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.9rem; }
.btn-lg { padding: 18px 44px; font-size: 1.15rem; }
.btn-full { width: 100%; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}
.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}

.section-title { font-family: var(--font-heading); font-weight: 900; text-align: center; margin-bottom: 12px; }
.section-title span { color: var(--accent-red); text-shadow: 0 0 20px var(--accent-red-glow); }
.section-subtitle { text-align: center; color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 48px; }

.glow-red  { color: var(--accent-red);  text-shadow: 0 0 20px var(--accent-red-glow); }
.glow-gold { color: var(--accent-gold); text-shadow: 0 0 20px rgba(255,215,0,0.4); }
.glow-green{ color: var(--accent-green);text-shadow: 0 0 20px rgba(37,211,102,0.4); }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  z-index: 1000; background: rgba(10,10,10,0.85); border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; }
.logo span { color: var(--accent-red); text-shadow: 0 0 12px var(--accent-red-glow); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); transition: color var(--transition); position: relative; padding-bottom: 4px; }
.main-nav a::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--accent-red); transition: width var(--transition); }
.main-nav a:hover { color: var(--text-primary); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--text-primary); }

/* ── Header Actions (Cart, Login, Hamburger) ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}

.action-icon:hover {
  background: rgba(230, 25, 25, 0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
}

.action-icon svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(230, 25, 25, 0.4);
}

/* ── زرار القائمة الزجاجي (Hamburger) ── */
.hamburger { 
  display: none; flex-direction: column; gap: 4px; cursor: pointer; 
  padding: 12px; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50%;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition); outline: none;
}

/* الخطوط وهي مقفولة (حيلة لتخطي الوضع المظلم) */
.hamburger span { 
  display: block; width: 22px; height: 2.5px; 
  background-color: transparent !important; 
  background-image: linear-gradient(to right, #ffffff, #ffffff) !important; 
  border-radius: 4px; transition: all 0.3s ease; 
}

/* تأثير الهوفر لما العميل يقف عليها */
.hamburger:hover {
  border-color: var(--accent-red) !important;
  background: rgba(230, 25, 25, 0.15);
}

/* وهي مفتوحة علامة X (أحمر زي Hossam) */
.hamburger.open { 
  border-color: var(--accent-red) !important; 
  background: rgba(230, 25, 25, 0.08); 
}
.hamburger.open span { 
  background-image: linear-gradient(to right, var(--accent-red), var(--accent-red)) !important; 
}

/* حركة التحول لعلامة X */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ── Mobile Navigation ── */
.mobile-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: rgba(10,10,10,0.97); backdrop-filter: blur(20px); padding: 24px; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--glass-border); z-index: 999; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); padding: 12px 0; border-bottom: 1px solid var(--glass-border); transition: color var(--transition); }
.mobile-nav a:hover { color: var(--accent-red); }
main { padding-top: var(--header-h); }

/* ── Footer ── */
.site-footer { background: rgba(10,10,10,0.9); border-top: 1px solid var(--glass-border); backdrop-filter: blur(16px); padding: 50px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { font-size: 1.8rem; margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-red); display: inline-block; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.95rem; color: var(--text-secondary); transition: color var(--transition), padding-right var(--transition); }
.footer-links a:hover { color: var(--accent-red); padding-right: 6px; }
.social-links { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.social-link { width: 42px; height: 42px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; transition: all var(--transition); color: var(--text-secondary); font-size: 1.1rem; }
.social-link:hover { background: var(--accent-red); border-color: var(--accent-red); color: #fff; transform: translateY(-3px); box-shadow: 0 0 16px var(--accent-red-glow); }
.social-link.wa:hover { background: #25D366; border-color: #25D366; box-shadow: 0 0 16px rgba(37,211,102,0.4); }
.social-link.fb:hover { background: #1877f2; border-color: #1877f2; }
.social-link.ig:hover { background: #e1306c; border-color: #e1306c; }
.social-link.tk:hover { background: #010101; border-color: #69C9D0; }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.9rem; color: var(--text-muted); }
.footer-bottom a { color: var(--accent-red); }

/* ── Breadcrumbs ── */
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 0.9rem; color: var(--text-muted); padding: 16px 0; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-secondary); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--accent-red); }
.breadcrumbs .sep { color: var(--text-muted); font-size: 0.8rem; }
.breadcrumbs .current { color: var(--accent-red); }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; font-family: var(--font-heading); background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-secondary); transition: all var(--transition); cursor: default; }
.badge-red  { border-color: var(--accent-red);   color: var(--accent-red);   background: rgba(230,25,25,0.12); }
.badge-gold { border-color: var(--accent-gold);  color: var(--accent-gold);  background: rgba(255,215,0,0.12); }
.badge-cyan { border-color: var(--accent-cyan);  color: var(--accent-cyan);  background: rgba(0,188,212,0.12); }
.badge-green{ border-color: var(--accent-green); color: var(--accent-green); background: rgba(37,211,102,0.12); }

/* ── Back to Top ── */
#back-to-top { position: fixed; bottom: 32px; left: 24px; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-red); color: #fff; border: none; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 900; opacity: 0; transform: translateY(20px); transition: opacity var(--transition), transform var(--transition); box-shadow: 0 0 16px var(--accent-red-glow); }
#back-to-top.visible { opacity: 1; transform: translateY(0); }

/* ── Divider ── */
.divider { height: 1px; background: linear-gradient(to left, transparent, var(--accent-red), transparent); margin: 48px 0; }

/* ── Scroll Strip ── */
.scroll-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; -ms-overflow-style: none; }
.scroll-strip::-webkit-scrollbar { display: none; }

/* ── Info Box ── */
.info-box { background: rgba(0,188,212,0.08); border: 1px solid rgba(0,188,212,0.3); border-right: 4px solid var(--accent-cyan); border-radius: var(--radius-md); padding: 20px 22px; margin: 28px 0; }
.info-box.gold { background: rgba(255,215,0,0.08); border-color: rgba(255,215,0,0.3); border-right-color: var(--accent-gold); }
.info-box.red  { background: rgba(230,25,25,0.08); border-color: rgba(230,25,25,0.3); border-right-color: var(--accent-red); }
.info-box-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: var(--accent-cyan); display: flex; align-items: center; gap: 8px; }
.info-box.gold .info-box-title { color: var(--accent-gold); }
.info-box.red  .info-box-title { color: var(--accent-red); }

/* ── Stat Number ── */
.stat-number { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 900; color: var(--accent-red); text-shadow: 0 0 20px var(--accent-red-glow); line-height: 1; }

/* ── Lightbox ── */
#lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
#lightbox-overlay.open { display: flex; }
#lightbox-overlay img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius-lg); object-fit: contain; box-shadow: 0 0 60px rgba(0,0,0,0.8); }
#lightbox-close { position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-primary); font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: background var(--transition); }
#lightbox-close:hover { background: var(--accent-red); }

/* ── Form Controls ── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-label { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.form-control { width: 100%; padding: 14px 18px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-body); font-size: 1rem; transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus { border-color: var(--accent-red); box-shadow: 0 0 0 3px rgba(230,25,25,0.15); }

/* ── Animations ── */
@keyframes pulse-red { 0%,100%{box-shadow:0 0 18px var(--accent-red-glow),0 4px 15px rgba(0,0,0,0.4)}50%{box-shadow:0 0 36px var(--accent-red-glow),0 4px 25px rgba(0,0,0,0.5)} }
.btn-pulse { animation: pulse-red 2s ease-in-out infinite; }
@keyframes glow-border-anim { 0%,100%{border-color:rgba(230,25,25,0.2)}50%{border-color:rgba(230,25,25,0.55)} }
.glow-border { animation: glow-border-anim 3s ease-in-out infinite; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 768px) { 
  :root { --header-h: 62px; }
  .main-nav { display: none; }
  /* نجعل الأيقونات بجانب زر القائمة في الهواتف */
  .hamburger { display: flex; }
  .action-icon { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) { .grid-4{grid-template-columns:1fr} h1{font-size:2rem} .btn-lg{padding:16px 28px;font-size:1rem} }