/* ========================================
   Revora Tech — style.css
   موقع مراجعات الإلكترونيات وأجهزة المطبخ
   ======================================== */

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

/* ── المتغيرات ── */
:root {
  --primary:       #0f172a;
  --primary-light: #1e293b;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --accent-light:  #fef3c7;
  --red:           #ef4444;
  --green:         #22c55e;
  --blue:          #3b82f6;
  --text:          #0f172a;
  --text-muted:    #64748b;
  --text-light:    #94a3b8;
  --bg:            #ffffff;
  --bg-soft:       #f8fafc;
  --bg-card:       #ffffff;
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.12);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --font-head:     'Cairo', sans-serif;
  --font-body:     'Tajawal', sans-serif;
  --transition:    .2s ease;
}

/* ── ريست وأساسيات ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.3; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 18px; font-weight: 900; font-family: var(--font-head);
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--primary); }
.logo-text span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-soft); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.btn-search {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: var(--transition);
}
.btn-search:hover { border-color: var(--accent); color: var(--accent); }
.btn-nav-cta {
  padding: 9px 20px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 600; font-family: var(--font-head);
  transition: var(--transition);
}
.btn-nav-cta:hover { background: var(--accent); color: var(--primary); }

.menu-toggle {
  display: none; width: 38px; height: 38px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  align-items: center; justify-content: center; flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  width: 18px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}

/* ── Hero ── */
.hero {
  background: var(--primary);
  padding: 80px 0 100px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(245,158,11,.12) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 60px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3);
  color: var(--accent); border-radius: 100px;
  padding: 6px 16px; font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h1 {
  font-size: clamp(32px, 4vw, 52px); color: #fff;
  line-height: 1.2; margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 17px; color: #94a3b8; margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--primary);
  font-size: 15px; font-weight: 700; font-family: var(--font-head);
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline {
  padding: 14px 32px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 15px; font-weight: 600; font-family: var(--font-head);
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 28px; font-weight: 900; color: var(--accent); font-family: var(--font-head); }
.hero-stat .lbl { font-size: 13px; color: #64748b; margin-top: 2px; }

.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: relative;
}
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: var(--transition);
}
.hero-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.hero-card.featured {
  grid-column: span 2;
  flex-direction: row; align-items: center; gap: 16px;
  background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3);
}
.hero-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.hero-card-icon.blue { background: rgba(59,130,246,.2); }
.hero-card-icon.green { background: rgba(34,197,94,.2); }
.hero-card .card-title { font-size: 14px; font-weight: 600; color: #fff; }
.hero-card .card-sub { font-size: 12px; color: #64748b; }
.hero-card .card-price { font-size: 18px; font-weight: 800; color: var(--accent); font-family: var(--font-head); }
.rating-stars { color: var(--accent); font-size: 12px; letter-spacing: 1px; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-muted); font-weight: 500;
}
.trust-item svg { color: var(--accent); }

/* ── Section Titles ── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block; padding: 5px 16px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent-dark);
  font-size: 13px; font-weight: 700; margin-bottom: 14px; font-family: var(--font-head);
}
.section-head h2 { font-size: clamp(24px, 3vw, 36px); color: var(--text); margin-bottom: 12px; }
.section-head p { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Categories ── */
.categories { padding: 72px 0; }
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.cat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 16px;
  text-align: center; cursor: pointer;
  transition: var(--transition); position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transition: var(--transition);
}
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-card:hover::before { transform: scaleX(1); }
.cat-icon { font-size: 36px; margin-bottom: 12px; }
.cat-name { font-size: 14px; font-weight: 600; color: var(--text); font-family: var(--font-head); margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--text-muted); }

/* ── Product Cards ── */
.products { padding: 72px 0; background: var(--bg-soft); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: transparent; }
.product-card.featured-card { border: 2px solid var(--accent); }

.product-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; z-index: 1;
}
.badge-best { background: var(--accent); color: var(--primary); }
.badge-new { background: var(--blue); color: #fff; }
.badge-sale { background: var(--red); color: #fff; }
.badge-hot { background: #f97316; color: #fff; }

.product-img {
  height: 220px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; position: relative; overflow: hidden;
}
.product-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.04));
}

.product-body { padding: 20px; }
.product-category {
  font-size: 11px; font-weight: 700; color: var(--accent-dark);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}
.product-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.4; font-family: var(--font-head); }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.stars { color: var(--accent); font-size: 13px; }
.rating-num { font-size: 13px; font-weight: 700; color: var(--text); }
.rating-count { font-size: 12px; color: var(--text-muted); }

.product-pros { margin-bottom: 16px; }
.product-pros li {
  font-size: 13px; color: var(--text-muted);
  padding: 3px 0; display: flex; align-items: center; gap: 8px;
}
.product-pros li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-light); }
.product-price { font-size: 22px; font-weight: 900; color: var(--text); font-family: var(--font-head); }
.product-price small { font-size: 12px; color: var(--text-muted); font-weight: 400; display: block; }
.btn-buy {
  padding: 10px 20px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 700; font-family: var(--font-head);
  transition: var(--transition);
}
.btn-buy:hover { background: var(--accent); color: var(--primary); transform: scale(1.04); }

/* ── Reviews Section ── */
.reviews { padding: 72px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.review-img {
  height: 180px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; font-size: 64px;
  position: relative;
}
.review-score {
  position: absolute; bottom: 12px; left: 16px;
  background: var(--primary); color: var(--accent);
  padding: 4px 12px; border-radius: 100px;
  font-size: 13px; font-weight: 800; font-family: var(--font-head);
}
.review-body { padding: 20px; }
.review-category { font-size: 11px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.review-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; font-family: var(--font-head); line-height: 1.4; }
.review-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.review-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-light); }
.review-meta { font-size: 12px; color: var(--text-muted); }
.review-link { font-size: 13px; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.review-link:hover { color: var(--accent); }

/* ── Deals Banner ── */
.deals-banner {
  background: var(--primary); padding: 64px 0; margin: 0;
}
.deals-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
  align-items: center;
}
.deals-banner h2 { font-size: 32px; color: #fff; margin-bottom: 12px; }
.deals-banner p { font-size: 16px; color: #94a3b8; }
.deals-banner h2 span { color: var(--accent); }
.deal-counter { display: flex; gap: 12px; }
.counter-box {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: 14px 18px; text-align: center; min-width: 70px;
}
.counter-box .num { font-size: 28px; font-weight: 900; color: var(--accent); font-family: var(--font-head); }
.counter-box .lbl { font-size: 11px; color: #64748b; margin-top: 2px; }

/* ── Why Us ── */
.why-us { padding: 80px 0; background: var(--bg-soft); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.why-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
}
.why-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--accent-light); display: flex; align-items: center;
  justify-content: center; font-size: 28px; margin: 0 auto 20px;
}
.why-card h3 { font-size: 17px; margin-bottom: 10px; font-family: var(--font-head); }
.why-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── Newsletter ── */
.newsletter { padding: 80px 0; }
.newsletter-box {
  background: var(--primary); border-radius: var(--radius-lg);
  padding: 60px 40px; text-align: center; position: relative; overflow: hidden;
}
.newsletter-box::before {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(245,158,11,.1); top: -100px; right: -60px;
}
.newsletter-box h2 { font-size: 30px; color: #fff; margin-bottom: 12px; position: relative; }
.newsletter-box p { font-size: 16px; color: #94a3b8; margin-bottom: 32px; position: relative; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto; position: relative;
}
.newsletter-form input {
  flex: 1; padding: 14px 20px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.08);
  color: #fff; font-size: 15px; font-family: var(--font-body);
  outline: none; transition: var(--transition);
}
.newsletter-form input::placeholder { color: #64748b; }
.newsletter-form input:focus { border-color: var(--accent); background: rgba(255,255,255,.12); }
.btn-subscribe {
  padding: 14px 28px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--primary);
  font-size: 15px; font-weight: 700; font-family: var(--font-head);
  transition: var(--transition); white-space: nowrap;
}
.btn-subscribe:hover { background: #fff; transform: scale(1.02); }

/* ── Footer ── */
.footer {
  background: var(--primary); color: #94a3b8;
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin: 16px 0 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 16px; transition: var(--transition);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }

.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 20px; font-family: var(--font-head); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #64748b; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: #475569; }
.footer-bottom a { color: var(--accent); }
.disclosure {
  font-size: 12px; color: #334155; text-align: center;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,.04);
}

/* ── Back to Top ── */
.back-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); font-size: 18px;
  opacity: 0; pointer-events: none; transition: var(--transition);
  z-index: 99;
}
.back-top.show { opacity: 1; pointer-events: all; }
.back-top:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .btn-nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 60px 0 80px; }
  .deals-inner { grid-template-columns: 1fr; text-align: center; }
  .deal-counter { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .trust-inner { gap: 20px; }
  .hero-stats { justify-content: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Mobile Nav ── */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.5);
}
.mobile-nav.open { display: flex; }
.mobile-nav-inner {
  width: 280px; background: var(--bg); height: 100%;
  padding: 24px; display: flex; flex-direction: column; gap: 8px;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.mobile-nav a { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--text); display: block; }
.mobile-nav a:hover { background: var(--bg-soft); color: var(--accent); }
.close-nav { font-size: 22px; margin-bottom: 16px; }

/* ── Search Overlay ── */
.search-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 300;
  align-items: flex-start; justify-content: center; padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-box {
  background: var(--bg); border-radius: var(--radius);
  padding: 8px; width: 100%; max-width: 560px; display: flex; gap: 8px;
  box-shadow: var(--shadow-lg);
}
.search-box input {
  flex: 1; padding: 12px 16px; border: none; outline: none;
  font-size: 16px; font-family: var(--font-body); color: var(--text); background: none;
}
.search-box button {
  padding: 12px 20px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; font-family: var(--font-head);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
