/* ─── Design Tokens ─── */
:root {
  --bg-deep:       #050c05;
  --bg-main:       #08130a;
  --bg-surface:    #0c1c0e;
  --bg-card:       #101f12;
  --bg-card-hover: #152815;

  --gold:          #46bb3c;
  --gold-light:    #72d469;
  --gold-dim:      #2a7a24;
  --gold-glow:     rgba(70, 187, 60, 0.18);

  --text-primary:  #e8f5e6;
  --text-secondary:#82b87e;
  --text-dim:      #4a6e47;

  --border:        rgba(70, 187, 60, 0.22);
  --border-hover:  rgba(70, 187, 60, 0.55);

  --radius:        14px;
  --radius-lg:     20px;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', 'Amiri', serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  direction: rtl;
}

a { text-decoration: none; }

.page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(70, 187, 60, 0.12) 0%, transparent 70%),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(70, 187, 60, 0.025) 0deg,
      transparent 30deg,
      rgba(70, 187, 60, 0.025) 60deg,
      transparent 90deg
    ),
    linear-gradient(rgba(70, 187, 60, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 187, 60, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 60px 60px, 60px 60px;
  pointer-events: none;
}

.bg-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='rgba(70,187,60,0.07)' stroke-width='0.5'%3E%3Cpolygon points='40,4 52,16 68,16 68,32 76,40 68,48 68,64 52,64 40,76 28,64 12,64 12,48 4,40 12,32 12,16 28,16'/%3E%3Cpolygon points='40,14 50,22 62,22 62,34 70,40 62,46 62,58 50,58 40,66 30,58 18,58 18,46 10,40 18,34 18,22 30,22'/%3E%3Cline x1='40' y1='4' x2='40' y2='76'/%3E%3Cline x1='4' y1='40' x2='76' y2='40'/%3E%3Cline x1='16' y1='16' x2='64' y2='64'/%3E%3Cline x1='64' y1='16' x2='16' y2='64'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.6;
}

.shimmer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(70, 187, 60, 0.08) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 48px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  text-align: center;
  animation: fade-up 0.7s ease both;
}

.mosque-emblem {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mosque-logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 22px;
  background: #ffffff;
  padding: 10px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 2px var(--gold),
    0 0 28px rgba(70, 187, 60, 0.4),
    0 4px 16px rgba(0,0,0,0.5);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-5px); }
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: pulse-ring 3s ease-out infinite;
}

.ring-1 {
  width: 130px;
  height: 130px;
  animation-delay: 0s;
}

.ring-2 {
  width: 150px;
  height: 150px;
  animation-delay: 1s;
  border-color: rgba(70, 187, 60, 0.1);
}

@keyframes pulse-ring {
  0%   { opacity: 0.7; transform: scale(0.92); }
  50%  { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(0.92); }
}

.mosque-name {
  font-family: 'Amiri', serif;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.3;
  text-shadow:
    0 0 30px rgba(70, 187, 60, 0.4),
    0 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.02em;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 260px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.divider-ornament {
  color: var(--gold);
  font-size: 0.65rem;
  opacity: 0.7;
}

.mosque-tagline {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
  animation: fade-up 0.6s ease both;
}

.link-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent, var(--gold)), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 3px 0 0 3px;
}

.link-card::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-start: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  transition: inset-inline-start 0.5s ease;
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.4),
    0 0 0 1px rgba(70, 187, 60, 0.12),
    inset 0 1px 0 rgba(70, 187, 60, 0.08);
}

.link-card:hover::before { opacity: 1; }
.link-card:hover::after  { inset-inline-start: 140%; }
.link-card:active { transform: translateY(0px); }

.link-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent, var(--gold));
  transition: background 0.2s, box-shadow 0.2s;
}

.link-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.link-card:hover .link-icon-wrap {
  background: rgba(255,255,255,0.09);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, var(--gold)) 30%, transparent);
}

.link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.link-label {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.link-sublabel {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-arrow {
  color: var(--gold-dim);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transform: scaleX(-1);
}

.link-card:hover .link-arrow {
  opacity: 1;
  color: var(--gold);
  transform: translateX(-3px);
}

.page-footer {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-ornament {
  font-family: 'Amiri', serif;
  font-size: 1.4rem;
  color: var(--gold-dim);
  opacity: 0.6;
  text-align: center;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.link-card:nth-child(1) { animation-delay: 0.15s; }
.link-card:nth-child(2) { animation-delay: 0.22s; }
.link-card:nth-child(3) { animation-delay: 0.29s; }
.link-card:nth-child(4) { animation-delay: 0.36s; }
.link-card:nth-child(5) { animation-delay: 0.43s; }
.link-card:nth-child(6) { animation-delay: 0.50s; }
.link-card:nth-child(7) { animation-delay: 0.57s; }

@media (max-width: 480px) {
  .content { padding: 36px 16px 48px; }
  .mosque-name { font-size: 1.5rem; }
  .link-card { padding: 14px 16px; }
  .link-icon-wrap { width: 40px; height: 40px; }
}
