/* ══════════════════════════════════════════
   LINKS PAGE - Modern Dark Theme
   Matches the main site aesthetic
   ══════════════════════════════════════════ */

/* ── Page Layout ── */
.links-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
}

.links-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(71, 206, 172, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(41, 192, 109, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}


/* ── Main Card ── */
.links-card {
  background: rgba(22, 22, 26, 0.85);
  border: 1px solid rgba(71, 206, 172, 0.12);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  max-width: 580px;
  width: 90%;
  animation: linksCardIn 0.7s ease forwards;
}

@keyframes linksCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* ── Profile ── */
.links-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.links-photo-wrap {
  position: relative;
  width: 110px;
  height: 110px;
}

.links-photo-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(71, 206, 172, 0.6);
  border-right-color: rgba(41, 192, 109, 0.4);
  animation: linksOrbit 6s linear infinite;
}

.links-photo-orbit::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--primary-color, #47ceac);
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(71, 206, 172, 0.7);
}

@keyframes linksOrbit {
  to { transform: rotate(360deg); }
}

.links-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(71, 206, 172, 0.3);
  box-shadow: 0 0 30px rgba(71, 206, 172, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.links-photo:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(71, 206, 172, 0.35);
}

.links-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.links-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'IBM Plex Sans Arabic', 'Poppins', sans-serif;
  text-decoration: none;
  color: var(--primary-color, #47ceac);
  background: transparent;
  border: 1.5px solid rgba(71, 206, 172, 0.35);
  transition: all 0.3s ease;
  cursor: pointer;
}

.links-about-btn:hover {
  background: rgba(71, 206, 172, 0.1);
  border-color: var(--primary-color, #47ceac);
  transform: translateY(-2px);
  color: var(--primary-color, #47ceac);
}


/* ── Section Title ── */
.links-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  margin-top: 32px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #47ceac, #29c06d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.links-section-title:first-of-type {
  margin-top: 0;
}


/* ── Unified Stats Grid ── */
.links-stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  animation: linksItemIn 0.5s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
  transform: translateY(10px);
}

.stat-cell {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  transition: background 0.3s ease;
}

.stat-main-icon-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.01);
  position: relative;
}

.stat-main-icon-cell::before,
.stat-main-icon-cell::after {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-main-icon-cell::before { left: 0; }
.stat-main-icon-cell::after { right: 0; }

/* Horizontal separator for the grid rows */
.stat-cell:nth-child(-n+3),
.stat-main-icon-cell:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-icon {
  font-size: 0.9rem;
  opacity: 0.9;
}

.big-stat-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.big-stat-icon.yt { color: #ff0000; }
.big-stat-icon.insta { color: #e1306c; }

.stat-icon.yt { color: #ff0000; }
.stat-icon.views { color: #47ceac; }
.stat-icon.insta { color: #e1306c; }
.stat-icon.insta-v { color: #f4852e; }

.stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.plus-sign {
  color: var(--primary-color, #47ceac);
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 1px;
}

.stats-update-text {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: -12px;
  margin-bottom: 24px;
  font-weight: 500;
}

.live-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
}

.live-dot {
  width: 4px;
  height: 4px;
  background-color: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 5px #ff3b30;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 450px) {
  .stat-value { font-size: 0.9rem; }
  .stat-label { font-size: 0.6rem; }
  .big-stat-icon { font-size: 1.8rem; }
}

/* ── Link Items ── */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.links-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: linksItemIn 0.5s ease forwards;
}

.links-item:nth-child(1) { animation-delay: 0.05s; }
.links-item:nth-child(2) { animation-delay: 0.10s; }
.links-item:nth-child(3) { animation-delay: 0.15s; }
.links-item:nth-child(4) { animation-delay: 0.20s; }
.links-item:nth-child(5) { animation-delay: 0.25s; }
.links-item:nth-child(6) { animation-delay: 0.30s; }

@keyframes linksItemIn {
  to { opacity: 1; transform: translateY(0); }
}

.links-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.links-item:hover::before {
  left: 120%;
}

.links-item:hover {
  border-color: rgba(71, 206, 172, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.links-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 1.02rem;
}

.links-item-left i {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.links-item-right {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* Icon colors */
.links-item .yt-icon   { color: #ff0000; }
.links-item .insta-icon { color: #e1306c; }
.links-item .dc-icon    { color: #5865f2; }
.links-item .li-icon    { color: #0a66c2; }
.links-item .gh-icon    { color: #fff; }
.links-item .ms-icon    { color: #00a4ef; }
.links-item .unity-icon { color: #22c55e; }
.links-item .soccer-icon { color: #47ceac; }


/* ── Featured Card (Plinkod) ── */
.links-featured {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed, #065fd4);
  border: none;
  box-shadow: 0 8px 28px rgba(99, 58, 237, 0.25);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  margin-bottom: 8px;
}

.links-featured::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.links-featured:hover::before { left: 120%; }

.links-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
  filter: brightness(1.08);
  color: #fff;
}

.links-featured-top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.links-featured-top img {
  border-radius: 10px;
}

.links-featured-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}


/* ── Unity Course Card ── */
.links-course {
  padding: 18px 20px;
  background: linear-gradient(135deg, #111827, #020617);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.links-course:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.2);
}

.links-course-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.links-course-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
}

.links-course-title i {
  color: #22c55e;
  font-size: 1.3rem;
}

.links-course-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}


/* ── Social Icons Row ── */
.links-icons-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.links-icon-btn {
  flex: 1;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.6);
}

.links-icon-btn i {
  font-size: 1.25rem;
}

.links-icon-btn:hover {
  border-color: rgba(71, 206, 172, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}


/* ── Footer ── */
.links-footer {
  margin-top: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.82rem;
}

.links-footer a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.links-footer a:hover {
  color: var(--primary-color, #47ceac);
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 600px) {
  .links-page {
    padding: 40px 14px;
  }

  .links-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .links-photo-wrap {
    width: 90px;
    height: 90px;
  }

  .links-name {
    font-size: 1.3rem;
  }

  .links-section-title {
    font-size: 1.3rem;
  }

  .links-item {
    padding: 14px 16px;
  }

  .links-icons-row {
    gap: 8px;
  }

  .links-icon-btn {
    height: 46px;
  }
}
