/* ============================================
   gate.css — تصميم صفحات البوابات
   ============================================ */

/* Hero البوابة */
.gate-hero {
  position: relative;
  height: 45vh;
  display: flex;
  align-items: flex-end;
  background: var(--bg-card);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.gate-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 10, 6, 0.95) 0%,
    rgba(13, 10, 6, 0.30) 100%
  );
}

.gate-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 4rem 3rem 2rem;
  padding-right: 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: calc(100% - 110px);
}
.gate-hero-icon {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.gate-hero-city {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-family: var(--font-body);
}

.gate-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #F9F5EE;
  line-height: 1;
}

.gate-hero-desc {
  font-size: 1rem;
  color: rgba(249, 245, 238, 0.70);
  max-width: 500px;
  margin-top: 0.25rem;
}

.back-btn {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: letter-spacing var(--transition);
  z-index: 1000;
position: relative;
}

.back-btn:hover {
  letter-spacing: 0.05em;
}

/* ============================================
   محتوى البوابة
   ============================================ */
.gate-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.gate-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.gate-section:last-child {
  border-bottom: none;
}

.gate-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text);
  position: relative;
  padding-right: 1rem;
}

.gate-section h2::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.2em;
  height: 1.2em;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.gate-section p {
  color: var(--text-muted);
  line-height: 2;
  font-size: 1.1rem;
}

/* بطاقات المعلومات */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.info-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  transition: border-color var(--transition);
}

.info-card:hover { border-color: var(--gold); }

.info-card h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* اقتباس */
.gate-quote {
  padding: 2rem 2.5rem;
  border-right: 3px solid var(--gold);
  background: var(--bg-card);
  border-radius: 0 4px 4px 0;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .info-cards { grid-template-columns: 1fr; }

  .gate-hero-content {
    padding: 2rem 1.25rem;
    padding-left: 1.25rem;
    max-width: 100%;
  }

  .gate-hero h1 { font-size: 2.5rem; }
}

/* ============================================
   Watermark
   ============================================ */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background-image: url('../images/Logo.PNG');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

[data-theme="light"] body::before {
  mix-blend-mode: multiply;
  opacity: 0.06;
}
/* ============================================
   Animations — البوابات
   ============================================ */

/* ── Keyframes ── */
@keyframes gFadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gFadeDown {
  from { opacity: 0; transform: translateY(-15px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gBlurIn {
  from { opacity: 0; filter: blur(6px); transform: translateY(20px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}
@keyframes gScaleIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Hero — ظهور تسلسلي تلقائي ── */
.back-btn {
  opacity: 0;
  animation: gFadeDown 0.6s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
.gate-hero-icon {
  opacity: 0;
  animation: gScaleIn 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.25s forwards;
}
.gate-hero-city {
  opacity: 0;
  animation: gFadeDown 0.6s cubic-bezier(0.16,1,0.3,1) 0.35s forwards;
}
.gate-hero h1 {
  opacity: 0;
  animation: gBlurIn 1s cubic-bezier(0.16,1,0.3,1) 0.45s forwards;
}
.gate-hero-desc {
  opacity: 0;
  animation: gFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.7s forwards;
}

/* ── Scroll Reveal — عناصر المحتوى ── */
.gate-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.gate-section.animate { opacity: 1; transform: translateY(0); }

.gate-section h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.gate-section h2.animate { opacity: 1; transform: translateY(0); }

.gate-section > p {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.gate-section > p.animate { opacity: 1; transform: translateY(0); }

/* بطاقات info-card */
.info-card {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
              transform 0.55s cubic-bezier(0.16,1,0.3,1),
              border-color var(--transition);
}
.info-card.animate { opacity: 1; transform: translateY(0); }

/* بطاقات gate-card */
.gate-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1),
              border-color var(--transition),
              box-shadow var(--transition);
}
.gate-card.animate { opacity: 1; transform: translateY(0); }

/* اقتباس */
.gate-quote {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.gate-quote.animate { opacity: 1; transform: translateX(0); }

/* Footer */
.footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.footer.animate { opacity: 1; transform: translateY(0); }

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .back-btn, .gate-hero-icon, .gate-hero-city,
  .gate-hero h1, .gate-hero-desc,
  .gate-section, .gate-section h2, .gate-section > p,
  .info-card, .gate-card, .gate-quote, .footer {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}