* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #2f2d2d;
  color: #fff;
}

.he {
  position: relative;
  width: 100%;
  height: 200px;
  background-image: url("img/mm.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px 0;
  z-index: 9999;
}

.he::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  z-index: 1;
}

.he>* {
  position: relative;
  z-index: 3;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 80px;
  position: relative;
  z-index: 5;
}

.hero img {
  height: 60px;
}

.nav-link {
  display: flex;
  list-style: none;
  gap: 25px;
  transition: all 0.4s ease;
}

.nav-link a,
.explore-toggle {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.nav-link a:hover,
.explore-toggle:hover {
  color: #00ff9d;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  z-index: 3;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #05c79a;
  border-radius: 3px;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.explore-window {
  position: absolute;
  top: 70px;
  inset-inline-end: 80px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  padding: 10px 20px;
  width: min(220px, calc(100vw - 32px));
  max-inline-size: calc(100vw - 32px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.hidden {
  display: none;
}

.explore-window h3 {
  margin-bottom: 10px;
  color: #00ff9d;
  font-size: 18px;
}

.explore-window ul {
  list-style: none;
  padding-inline-start: 0;
}

.explore-window a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s;
}

.explore-window a:hover {
  color: #00ff9d;
}

nav,
.hero,
.hamburger {
  position: relative;
  z-index: 10;
}

.search {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 500px;
  max-width: 90%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: all;
}

.search:hover {
  background: rgba(255, 255, 255, 0.25);
}

.search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 14px 18px;
  font-size: 16px;
  color: #fff;
  outline: none;
  z-index: 16;
  position: relative;
  text-align: start;
}

/* Stable image cards, loading feedback, and the full-screen viewer. */
.gallery-item { position: relative; overflow: hidden; }
.gallery-item img.gallery-image-loading { background: linear-gradient(100deg,#252a2d 20%,#394044 38%,#252a2d 56%); background-size: 220% 100%; animation: image-skeleton 1.25s ease-in-out infinite; }
@keyframes image-skeleton { to { background-position-x: -220%; } }
.gallery-item.image-failed { min-height: 180px; background: #20272b; }
.gallery-item.image-failed::after { content: "Image unavailable"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); color: #b9c2c7; font: 14px/1.4 system-ui,sans-serif; }
.gallery-item img.gallery-image-failed { visibility: hidden; }
.gallery-feed-status { padding: 14px; color: #d6e0e4; text-align: center; }
.gallery-feed-status.is-error { color: #ffb4ab; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 10020; display: none; overflow: auto; align-items: center; justify-content: center; padding: 24px; background: rgb(0 0 0 / 94%); }
.gallery-lightbox.is-open { display: flex; }
body.lightbox-open { overflow: hidden; }
.lightbox-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%,1000px); max-height: 100%; }
.lightbox-content > img { display: block; width: auto; height: auto; max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: 8px; }
.lightbox-title { max-width: 100%; margin: 0; color: #fff; text-align: center; overflow-wrap: anywhere; }
.lightbox-close { position: absolute; inset-block-start: 0; inset-inline-end: 0; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: rgb(0 0 0 / 72%); font-size: 32px; cursor: pointer; }
.lightbox-actions { display: flex; justify-content: center; gap: 14px; }
.lightbox-action { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 54px; min-height: 44px; padding: 5px 9px; border: 1px solid #52615b; border-radius: 8px; color: #fff; background: #20272b; cursor: pointer; }
.lightbox-action > span { font-size: 20px; line-height: 1; }
.lightbox-action small, .lightbox-download small { font: 11px/1.2 system-ui,sans-serif; }
.lightbox-action.is-liked { color: #ff5b75; }
.lightbox-download { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 16px; border: 0; border-radius: 8px; color: #06120d; background: #00e676; font: 600 15px/1.2 system-ui,sans-serif; cursor: pointer; }
.lightbox-download svg { width: 20px; height: 20px; fill: currentColor; }
.lightbox-download:disabled { opacity: .65; cursor: progress; }
.download-status { min-height: 1.4em; margin: 0; color: #b9f6ca; text-align: center; font: 14px/1.4 system-ui,sans-serif; }
.download-status.is-error { color: #ffb4ab; }
.gallery-login-overlay { position: fixed; inset: 0; z-index: 10030; display: none; align-items: center; justify-content: center; padding: 16px; background: rgb(0 0 0 / 78%); }
.gallery-login-overlay.is-open { display: flex; }
.gallery-login-card { width: min(100%,380px); padding: 24px; border: 1px solid #36413c; border-radius: 14px; color: #fff; background: #101614; text-align: center; }
.gallery-login-card h2 { margin: 0 0 10px; }
.gallery-login-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.gallery-login-actions a, .gallery-login-actions button { min-height: 42px; padding: 10px 16px; border: 1px solid #00e676; border-radius: 8px; color: #06120d; background: #00e676; font: 600 14px/1.2 system-ui,sans-serif; text-decoration: none; cursor: pointer; }
.gallery-login-actions button { color: #fff; background: transparent; border-color: #52615b; }
.language-picker-wrap { align-self: center; }
html[dir="rtl"] .nav-link { text-align: end; }
html[dir="rtl"] .lightbox-content { direction: rtl; }
html[dir="rtl"] .gallery-item.image-failed::after { content: "تعذر تحميل الصورة"; }
@media (max-width: 600px) {
  .gallery-lightbox { padding: 12px; }
  .lightbox-content > img { max-height: 65vh; }
  .explore-window { inset-inline-end: 10px; }
}

.search-btn,
.clear-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 12px 15px;
  cursor: pointer;
}
.search-btn{flex:0 0 48px;padding-inline:10px}.clear-btn{flex:0 0 42px;padding-inline:8px}

.search-btn svg {
  width: 30px;
  height: 15px;
  fill: currentColor;
}

@media (max-width: 768px) {
  header.ho {
    min-height: 140px;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  nav {
    padding: 12px 10px;
    z-index: 5;
    gap: 10px;
  }

  .hero img { height: 42px; width: auto; }

  .hamburger {
    display: flex;
    z-index: 6;
  }

  .nav-link {
    flex-direction: column;
    position: absolute;
    top: 80px;
    inset-inline-end: 15px;
    background: rgba(0, 0, 0, 0.9);
    width: 180px;
    border-radius: 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    
    /* 🛑 التعديل الرئيسي: رفع القيمة لتكون في المقدمة */
    z-index: 999; 
}

  .nav-link.active {
    padding: 10px 0;
    max-height: 300px;
    opacity: 1;
  }

  .search {
    top: 75%;
    width: 85%;
    z-index: 2;
  }

  .explore-window {
    top: 70px;
    inset-inline-end: 12px;
  }

  .search-box {
    margin-top: 50px;
  }

  .nav-link a,
  .explore-toggle {
    color: white;
    padding: 10px;
    text-align: center;
    transition: background 0.3s ease;
  }

  .nav-link a:hover,
  header {
    min-height: 150px;
  }
}

.search input {
  pointer-events: all;
}

.search input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  transition: all 0.4s ease;
}

.search:focus-within {
  transform: translate(-50%, -50%) scale(1.03);
  border-color: rgba(0, 255, 157, 0.6);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
  background: rgba(255, 255, 255, 0.25);
}

.search-btn {
  position: relative;
  transition: all 0.3s ease;
}

.search-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 60%;
  width: 0;
  height: 1px;
  background: #00ff9d;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.search-btn:hover {
  color: #00ff9d;
  transform: scale(1.3);
}

.search-btn:hover::after {
  width: 30%;
  opacity: 1;
}

.search {
  transform-origin: center;
  animation: fadeSlideIn 0.6s ease both;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.search:focus-within {
  animation: pulseGlow 0.6s ease-in-out;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 157, 0);
  }

  50% {
    box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
  }

  100% {
    box-shadow: 0 0 0 rgba(0, 255, 157, 0);
  }
}

/*

*/

.gallery {
  padding: 40px 10px;
  background-color: #0a0a0a;
}

.gallery h2 {
  text-align: center;
  margin-top: 45px;
  color: #00ff9d;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 1px;
}

/* 📱 تحسين للهواتف */
@media (max-width: 600px) {
  #scrollTopBtn {
    width: 50px;
    height: 50px;
    font-size: 22px;
    right: 20px;
    bottom: 25px;
  }
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ============================
   🔝 زر الرجوع للأعلى الاحترافي
   ============================ */
#scrollTopBtn {
  position: fixed;
  bottom: 35px;
  inset-inline-end: 35px;
  z-index: 10000;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #00ffcc, #0077ff);
  color: #fff;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5), 0 0 40px rgba(0, 119, 255, 0.3);
}

/* ✨ تأثير السهم */
#scrollTopBtn .arrow {
  position: relative;
  top: 0;
  animation: floatUp 1s infinite alternate;
}

@keyframes floatUp {
  0% {
    top: 3px;
  }

  100% {
    top: -3px;
  }
}

/* 💫 تأثير عند المرور */
#scrollTopBtn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.7), 0 0 60px rgba(0, 119, 255, 0.5);
  background: linear-gradient(135deg, #00ccff, #00ff88);
}

.site-footer {
  background: #070707;
  color: #bfc7c5;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.footer-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand img {
  border-radius: 6px;
  display: block;
}

.brand-text strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

.brand-text small {
  color: #9aa7a3;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #bfc7c5;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social a {
  color: #bfc7c5;
  display: inline-flex;
  padding: 6px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.footer-meta {
  text-align: center;
  margin-top: 16px;
  color: #9aa7a3;
  font-size: 13px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-meta .small {
  margin-top: 6px;
  font-size: 12px;
  color: #8b9b98;
}

.footer-meta a {
  color: #bfc7c5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width:640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    order: 3;
    width: 100%;
  }

  .footer-social {
    order: 2;
  }

  .footer-brand {
    order: 1;
  }

  .footer-meta {
    text-align: left;
  }
}

/* ===== قسم الوصف النصي ===== */
.page-description {
  background-color: #000;
  /* الخلفية سوداء */
  color: #fff;
  /* لون النص أبيض */
  /* min-height: 100vh;             يغطي طول الشاشة */
  display: flex;
  /* علشان نقدر نوسّط المحتوى */
  flex-direction: column;
  /* يخلي النص تحت العنوان */
  justify-content: center;
  /* محاذاة عمودية في المنتصف */
  align-items: center;
  /* محاذاة أفقية في المنتصف */
  text-align: center;
  /* توسيط النصوص */
  padding: 40px 20px;
  /* مسافة داخلية مناسبة */
}

/* ===== العنوان داخل القسم ===== */
.page-description h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #00ffcc;
  /* لون مميز للعناوين */
}

/* ===== النص داخل القسم ===== */
.page-description p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 700px;
  /* عرض النص ما يزيدش عن 700px */
  color: #ccc;
}

/* أنيميشن نزول لطيف */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 3s ease;
}

.gallery-item.visible {
  animation: slideDownFade 5s ease forwards;
}

.quote {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #00ff9d;
  /* خط جانبي أنيق */
  color: #e0e0e0;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 6px 10px;
  margin: 8px 0;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 255, 157, 0.15);
}

.quote {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideUp 0.8s ease forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* زر تسجيل الدخول */
.action-button.login-btn {
    background-color: #00fc65; /* أخضر */
    color: #fff;              /* أبيض */
    padding: 8px 16px;
    border: none;
    border-radius: 6px;       /* ممكن تزود لو عايز النعومة */
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s ease;
}

/* تأثير عند المرور بالماوس */
.action-button.login-btn:hover {
    background-color: #218838; /* أخضر أغمق */
}


/* صورة البروفايل */
.action-button.profile-btn {
    width: 50px;              /* حجم صغير */
    height: 50px;
    border-radius: 50%;       /* دائرية */
    object-fit: cover;        /* عشان تبقى مظبوطة */
    cursor: pointer;
    border: 2px solid #fff;   /* شكل لطيف - اختياري */
    box-shadow: 0 0 5px rgba(0,0,0,0.15);
}
/* 💡 إضافة هذا التنسيق داخل وسم <style> */

/* تنسيق الزر العائم */
.floating-login-btn {
    position: fixed; /* يثبت الزر بالنسبة لإطار العرض */
    bottom: 30px; /* المسافة من الأسفل */
    left: 30px; /* المسافة من اليمين */
    background-color: var(--accent-green); /* اللون المميز */
    color: var(--dark-bg);
    border: none;
    border-radius: 50px; /* شكل دائري/كبسولي */
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000; /* يضمن ظهوره فوق العناصر الأخرى */
    transition: transform 0.3s, background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-login-btn:hover {
    background-color: #00e08c; /* لون أغمق قليلاً عند التحويم */
    transform: translateY(-2px); /* تأثير ارتفاع طفيف */
}

/* ⚠️ مهم: تأكد من أن زر الهيدر (العادي) له نفس التنسيق الأساسي إذا أردت استخدامه */
.action-button {
    /* تنسيق عام لأزرار الهيدر */
    cursor: pointer;
}

.profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-green);
    transition: transform 0.2s;
}

.profile-btn:hover {
    transform: scale(1.05);
}
:root{--site-accent:#00e6a0;--site-text:#eff5fb;--site-muted:#acb8c8;--site-surface:#111a26;--site-border:#28384a;--site-content:1280px;--site-reading:860px}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}
img{max-width:100%}
button,a,input,textarea,select{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #64efbd;outline-offset:3px}
.editorial-content{width:min(var(--site-reading),calc(100% - 40px));margin:34px auto 64px;padding:clamp(18px,3vw,34px);border:1px solid #29394b;border-radius:20px;background:linear-gradient(145deg,#121b27,#0d131b);box-sizing:border-box}
.editorial-content h1{margin:0 0 18px!important;color:#6bf0b8!important;font-size:clamp(1.8rem,4vw,2.55rem);line-height:1.15}
.editorial-content h2,.editorial-content h3{margin:28px 0 9px!important;color:#d9f7ed!important;font-size:clamp(1.05rem,2vw,1.35rem)}
.editorial-content p,.editorial-content li{max-width:75ch;color:#c1cbd7;font-size:1rem;line-height:1.75}
.editorial-content p{margin:9px 0 14px!important}.editorial-content ul{padding-inline-start:24px}
.editorial-page{min-height:100vh;background:#090e15!important;color:#eff5fb!important}
@media(max-width:600px){.editorial-content{width:calc(100% - 24px);margin:20px auto 42px;padding:20px 16px}.editorial-content p,.editorial-content li{font-size:.96rem}}
.page-description{justify-content:flex-start;gap:10px;padding-block:32px}.page-description h1{font-size:clamp(1.55rem,3vw,2rem);line-height:1.2}.page-description p{max-width:68ch;font-size:1rem;line-height:1.7}
.gallery-item{transition:opacity .22s ease,transform .22s ease}.gallery-item.visible{animation:slideDownFade .22s ease forwards}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
