/* البشوات العقارية — صفحة الروابط */

:root {
  --gold: #D4B06A;
  --gold-light: #EAD7A4;
  --gold-dark: #A8843A;
  --gold-gradient: linear-gradient(135deg, #EAD7A4 0%, #D4B06A 48%, #A8843A 100%);
  --teal: #071412;
  --teal-mid: #0C1F1D;
  --teal-light: #163330;
  --surface: rgba(18, 41, 39, 0.72);
  --surface-hover: rgba(28, 58, 54, 0.88);
  --white: #F7F4EC;
  --muted: #9AAEA6;
  --whatsapp: #1F9E57;
  --facebook: #1877F2;
  --instagram: #E4405F;
  --youtube: #FF0000;
  --radius: 14px;
  --font: 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--white);
  background: var(--teal);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 50% -12%, rgba(212, 176, 106, 0.16), transparent 55%),
    radial-gradient(700px 420px at 100% 40%, rgba(31, 158, 87, 0.06), transparent 50%),
    radial-gradient(600px 380px at 0% 80%, rgba(212, 176, 106, 0.05), transparent 45%),
    linear-gradient(180deg, #0a1c1a 0%, var(--teal) 42%, #050f0d 100%);
}

.atmosphere__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 14s var(--ease) infinite alternate;
}

.atmosphere__glow--gold {
  width: min(70vw, 320px);
  height: min(70vw, 320px);
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(212, 176, 106, 0.22);
}

.atmosphere__glow--teal {
  width: min(80vw, 380px);
  height: min(80vw, 380px);
  bottom: 5%;
  right: -18%;
  background: rgba(74, 173, 130, 0.1);
  animation-delay: -4s;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12px, 18px, 0) scale(1.08); }
}

.atmosphere__glow--gold {
  animation-name: driftGold;
}

@keyframes driftGold {
  from { transform: translateX(-50%) translate3d(0, 0, 0) scale(1); }
  to { transform: translateX(-50%) translate3d(0, 16px, 0) scale(1.06); }
}

/* Page shell */
.links-page {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin-inline: auto;
  padding: max(1.75rem, env(safe-area-inset-top)) 1.15rem calc(2.25rem + var(--safe-bottom));
}

/* Profile */
.profile {
  text-align: center;
  margin-bottom: 1.65rem;
  animation: rise 0.7s var(--ease) both;
}

.profile__logo-wrap {
  width: min(186px, 48vw);
  margin: 0 auto 1rem;
  background: transparent;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.45));
  animation: logoFloat 5.5s ease-in-out infinite;
}

.profile__logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
  display: block;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.profile__brand {
  font-size: clamp(1.55rem, 6.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-light);
  margin-bottom: 0.3rem;
}

.profile__tagline {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.profile__person {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: rgba(18, 41, 39, 0.65);
  border: 1px solid rgba(212, 176, 106, 0.2);
  text-align: start;
}

.profile__person-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid rgba(212, 176, 106, 0.45);
}

.profile__person strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.profile__person span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.profile__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 176, 106, 0.28);
  background: rgba(212, 176, 106, 0.08);
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.pill:hover,
.pill:focus-visible {
  background: rgba(212, 176, 106, 0.16);
  border-color: rgba(212, 176, 106, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.pill--wa {
  background: rgba(31, 158, 87, 0.16);
  border-color: rgba(31, 158, 87, 0.4);
  color: #8fdfb0;
}

.pill--wa:hover,
.pill--wa:focus-visible {
  background: rgba(31, 158, 87, 0.28);
  border-color: rgba(31, 158, 87, 0.65);
}

/* Link stack */
.link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.link-stack__label {
  margin-top: 0.55rem;
  margin-bottom: 0.1rem;
  padding-inline: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.link-stack__label:first-child {
  margin-top: 0;
}

.link-btn {
  --delay: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 68px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(212, 176, 106, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
  animation: rise 0.65s var(--ease) both;
  animation-delay: calc(0.05s + var(--delay));
}

.link-stack > .link-btn:nth-of-type(1) { --delay: 0.04s; }
.link-stack > .link-btn:nth-of-type(2) { --delay: 0.08s; }
.link-stack > .link-btn:nth-of-type(3) { --delay: 0.12s; }
.link-stack > .link-btn:nth-of-type(4) { --delay: 0.16s; }
.link-stack > .link-btn:nth-of-type(5) { --delay: 0.2s; }
.link-stack > .link-btn:nth-of-type(6) { --delay: 0.24s; }
.link-stack > .link-btn:nth-of-type(7) { --delay: 0.28s; }
.link-stack > .link-btn:nth-of-type(8) { --delay: 0.32s; }
.link-stack > .link-btn:nth-of-type(9) { --delay: 0.36s; }
.link-stack > .link-btn:nth-of-type(10) { --delay: 0.4s; }
.link-stack > .link-btn:nth-of-type(11) { --delay: 0.44s; }
.link-stack > .link-btn:nth-of-type(12) { --delay: 0.48s; }
.link-stack > .link-btn:nth-of-type(13) { --delay: 0.52s; }

.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
  background: var(--surface-hover);
  border-color: rgba(212, 176, 106, 0.38);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(212, 176, 106, 0.08);
  outline: none;
}

.link-btn:active {
  transform: translateY(0) scale(0.995);
}

.link-btn--featured {
  background: linear-gradient(135deg, rgba(31, 158, 87, 0.28), rgba(18, 41, 39, 0.85));
  border-color: rgba(31, 158, 87, 0.45);
  box-shadow: 0 12px 32px rgba(31, 158, 87, 0.12), 0 10px 28px rgba(0, 0, 0, 0.2);
}

.link-btn--featured:hover,
.link-btn--featured:focus-visible {
  border-color: rgba(31, 158, 87, 0.7);
  background: linear-gradient(135deg, rgba(31, 158, 87, 0.38), rgba(22, 51, 48, 0.92));
}

.link-btn__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 176, 106, 0.1);
  color: var(--gold-light);
}

.link-btn__icon--wa {
  background: rgba(31, 158, 87, 0.18);
  color: #6fd398;
}

.link-btn__icon--fb {
  background: rgba(24, 119, 242, 0.16);
  color: #7db3ff;
}

.link-btn__icon--ig {
  background: rgba(228, 64, 95, 0.16);
  color: #f28aa0;
}

.link-btn__icon--yt {
  background: rgba(255, 0, 0, 0.14);
  color: #ff7a7a;
}

.link-btn__icon--gold {
  background: rgba(212, 176, 106, 0.14);
  color: var(--gold);
}

.link-btn__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: start;
}

.link-btn__text strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
}

.link-btn__text small {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-btn__arrow {
  flex-shrink: 0;
  color: rgba(212, 176, 106, 0.55);
  font-size: 1rem;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
}

.link-btn:hover .link-btn__arrow,
.link-btn:focus-visible .link-btn__arrow {
  color: var(--gold);
  transform: translateX(-3px);
}

/* Footer */
.links-footer {
  margin-top: 2.4rem;
  text-align: center;
  color: var(--muted);
  animation: rise 0.7s var(--ease) 0.55s both;
}

.links-footer img {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.7rem;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.3));
}

.links-footer p {
  font-size: 0.84rem;
}

.links-footer__copy {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  opacity: 0.7;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 480px) {
  .links-page {
    padding-top: 2.5rem;
  }

  .link-btn {
    min-height: 72px;
    padding: 0.95rem 1.15rem;
  }
}
