/* ═══ Static Pages — فَرّه FRH ═══ */

.page-body {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding-bottom: 48px;
}

.page-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(7, 7, 15, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  animation: pageNavIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pageNavIn {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.page-nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(34, 211, 238, 0.5); }
}

.page-nav-brand strong { font-size: 1rem; font-weight: 900; }
.page-nav-brand span { font-size: 0.72rem; color: var(--text-muted); display: block; }

.page-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-nav-links a {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}

.page-nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.page-nav-links a.active {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.page-nav-links a.btn-home {
  background: var(--gradient-2);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}

.page-nav-links a.btn-home:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.page-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

/* Hero */
.page-hero {
  position: relative;
  text-align: center;
  padding: 40px 28px 36px;
  margin-bottom: 28px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.14) 0%, rgba(34, 211, 238, 0.06) 50%, rgba(7, 7, 15, 0.5) 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: heroIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(34, 211, 238, 0.3), rgba(251, 191, 36, 0.35));
  background-size: 250% 250%;
  animation: heroBorderFlow 7s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes heroBorderFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.page-hero-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2), transparent 55%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.page-hero-icon {
  position: relative;
  font-size: 3.2rem;
  margin-bottom: 16px;
  display: inline-block;
  animation: heroIconFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

@keyframes heroIconFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.page-hero h1 {
  position: relative;
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-sub {
  position: relative;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-hero-meta {
  position: relative;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.page-hero-tagline {
  position: relative;
  margin-top: 16px;
  padding: 10px 18px;
  display: inline-block;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fde68a;
  animation: taglinePulse 3s ease-in-out infinite;
}

@keyframes taglinePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
}

.page-intro {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(244, 244, 248, 0.85);
}

.page-intro.reveal-on-scroll { --reveal-delay: 0.1s; }

/* TOC */
.page-toc {
  padding: 20px;
  margin-bottom: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.page-toc h2 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--primary-light);
}

.page-toc ol {
  list-style: none;
  display: grid;
  gap: 8px;
}

.page-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.page-toc a:hover {
  background: rgba(139, 92, 246, 0.12);
  color: var(--text);
  transform: translateX(-4px);
}

.page-toc-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

/* Sections */
.page-section {
  position: relative;
  padding: 24px 22px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}

.page-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  pointer-events: none;
}

.page-section:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.page-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.section-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.section-num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(34, 211, 238, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--primary-light);
  flex-shrink: 0;
}

.page-section h2 {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.4;
  padding-top: 8px;
}

.page-section p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(244, 244, 248, 0.82);
  margin-bottom: 12px;
}

.page-section p:last-child { margin-bottom: 0; }

.page-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-list li {
  position: relative;
  padding-right: 22px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(244, 244, 248, 0.78);
}

.page-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-2);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.page-list.danger li::before {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.5);
}

.page-list.gold li::before {
  background: var(--gradient-gold);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* Warning banner */
.page-warning {
  position: relative;
  padding: 24px 22px;
  margin: 32px 0 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(251, 191, 36, 0.08));
  border: 1px solid rgba(248, 113, 113, 0.3);
  overflow: hidden;
}

.page-warning::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.06), transparent);
  animation: warningScan 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes warningScan {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.page-warning-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.page-warning h3 {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fca5a5;
  margin-bottom: 10px;
}

.page-warning p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(244, 244, 248, 0.85);
}

/* About-specific */
.about-quote {
  text-align: center;
  padding: 28px 24px;
  margin: 28px 0;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.about-quote p {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.7;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.king-card {
  text-align: center;
  padding: 32px 24px;
  margin: 28px 0;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.18), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(251, 191, 36, 0.35);
  position: relative;
  overflow: hidden;
}

.king-card::before {
  content: '👑';
  position: absolute;
  font-size: 8rem;
  opacity: 0.06;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.king-card .crown {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: crownBounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.6));
}

@keyframes crownBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.king-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}

.king-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.feature-item {
  padding: 16px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.15);
}

.feature-item .fi-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}

.feature-item span {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  color: rgba(244, 244, 248, 0.85);
}

.page-cta {
  text-align: center;
  padding: 36px 24px;
  margin-top: 32px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.15), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.page-cta h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.page-cta p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.page-btn-primary {
  background: var(--gradient-2);
  color: #fff;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.page-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.55);
}

.page-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.page-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-footer {
  /* legacy alias — use .site-footer */
  display: none;
}

.site-footer--sidebar {
  padding: 0 0 12px;
  margin-bottom: 8px;
  text-align: center;
}

.site-footer--sidebar .site-footer-copy {
  font-size: 0.68rem;
  margin-bottom: 8px;
}

.site-footer--sidebar .site-footer-links {
  gap: 12px;
}

.site-footer--sidebar .site-footer-links a {
  font-size: 0.72rem;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 520px) {
  .page-nav { padding: 12px 14px; }
  .page-nav-links a:not(.btn-home) { padding: 8px 10px; font-size: 0.75rem; }
  .page-hero { padding: 32px 20px 28px; }
  .feature-grid { grid-template-columns: 1fr; }
  .page-section { padding: 20px 16px; }
}
