/* ══════════════════════════════════════════════════════════════════════════
   Hall of Fame — archive-dphish_hof.php, single-dphish_hof.php, hof-card.php
   Loaded only on those views (see functions.php). Prefix: dp-hof-*
   ══════════════════════════════════════════════════════════════════════════ */

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Hero (archive + profile) ─────────────────────────────────────────── */
.dp-hof-hero {
  position: relative; overflow: hidden; color: #fff; padding: 7rem 0 3rem;
  background: #0A0029;   /* glow, aurora shader and fades come from template-parts/hof-hero-bg.php (same as the home hero) */
}
@media (min-width: 1024px) { .dp-hof-hero { padding: 9rem 0 4.5rem; } }
.dp-hof-hero-inner { max-width: 52rem; }
.dp-hof-kicker { margin: 0 0 .85rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #03F9F9; }
.dp-hof-h1 { margin: 0 0 1.25rem; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em; }
.dp-hof-lead { margin: 0 0 2rem; max-width: 40rem; font-size: 1.0625rem; line-height: 1.75; color: #94a3b8; }

.dp-hof-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 0; }
.dp-hof-stats > div { min-width: 7rem; }
.dp-hof-stats dt { order: 2; margin-top: .2rem; font-size: .8125rem; color: #94a3b8; }
.dp-hof-stats dd { order: 1; margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 2.25rem; font-weight: 700; line-height: 1;
  background: linear-gradient(90deg, #03F9F9, #3B82F6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dp-hof-stats > div { display: flex; flex-direction: column; }

/* ── Archive grid ─────────────────────────────────────────────────────── */
.dp-hof-section { padding: 1rem 0 5rem; color: #fff; background: linear-gradient(180deg, #0A0029 0%, #0d1033 100%); }
.dp-hof-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 560px)  { .dp-hof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .dp-hof-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .dp-hof-grid { grid-template-columns: repeat(4, 1fr); } }

/* Tall gradient "trading card": company logo on top, photo fading into the card, name + divider below */
.dp-hof-card {
  position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: inherit;
  border-radius: 1.1rem; border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(120% 60% at 18% 8%, rgba(255,255,255,.10) 0%, transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 2px, transparent 2px 15px),
    linear-gradient(180deg, #0a1733 0%, #0c3260 28%, #0e6f93 62%, #0a3d5c 100%);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.dp-hof-card:hover, .dp-hof-card:focus-visible {
  transform: translateY(-4px); border-color: rgba(3,249,249,.55); box-shadow: 0 22px 55px rgba(3,117,249,.28); outline: none;
}

/* Logo zone (top of the card) */
.dp-hof-logozone { display: flex; align-items: center; justify-content: center; min-height: 5rem; padding: 1.1rem 1rem .5rem; }
.dp-hof-companytxt { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: rgba(255,255,255,.8); }
/* Transparent logo: shown as uploaded straight on the card (use a light logo with a transparent background) */
.dp-hof-logo { display: inline-flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; background: none; }
.dp-hof-logo img { display: block; height: 2.25rem; width: auto; max-width: 100%; object-fit: contain; }

/* Photo: edge to edge, fading into the card at top and bottom */
.dp-hof-photo { position: relative; display: block; aspect-ratio: 1 / 1.12; overflow: hidden; }
/* Soft edges: overlays tinted like the card gradient at the photo's top and bottom (no mask-image needed) */
.dp-hof-photo::before, .dp-hof-photo::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.dp-hof-photo::before { top: 0;    height: 14%; background: linear-gradient(to bottom, #0b2547 0%, rgba(11,37,71,0) 100%); }
.dp-hof-photo::after  { bottom: 0; height: 20%; background: linear-gradient(to top, #0d6788 0%, rgba(13,103,136,0) 100%); }
.dp-hof-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.dp-hof-initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: 4rem; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.85);
}
.dp-hof-photo .dp-hof-initials { inset: 12% 22%; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); }

.dp-hof-body { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .25rem 1.1rem 1.15rem; flex: 1; text-align: center; }
.dp-hof-name {
  position: relative; padding-bottom: .7rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700;
  line-height: 1.25; letter-spacing: .09em; text-transform: uppercase; color: #fff;
}
.dp-hof-name::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(3,249,249,.85), transparent); }
.dp-hof-role { font-size: .8125rem; line-height: 1.45; color: rgba(226,238,250,.85); }
.dp-hof-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .15rem 0 0; padding: 0; list-style: none; }
.dp-hof-card .dp-hof-badges { justify-content: center; align-items: center; gap: .5rem; }
.dp-hof-badge { display: inline-flex; }
.dp-hof-badge img { display: block; height: 2.4rem; width: auto; max-width: 3rem; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(4,12,40,.45)); }
.dp-hof-chip {
  display: inline-block; padding: .22rem .65rem; border-radius: 9999px; font-size: .72rem; font-weight: 600; line-height: 1.4;
  color: #03F9F9; background: rgba(3,249,249,.1); border: 1px solid rgba(3,249,249,.28);
}
.dp-hof-chip-more { color: #cbd5e1; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.dp-hof-recs {
  display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; margin-top: auto; padding-top: .9rem; white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,.14); font-size: .74rem; color: rgba(226,238,250,.85);
}
.dp-hof-recs-ico {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  color: #FBBF24; background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.38); box-shadow: 0 0 14px rgba(251,191,36,.18);
}
.dp-hof-recs-ico svg { display: block; transform-origin: 30% 80%; }
.dp-hof-card:hover .dp-hof-recs-ico svg { animation: dpHofPop .7s ease; }
@keyframes dpHofPop { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(-14deg) scale(1.2); } 60% { transform: rotate(10deg) scale(1.1); } 100% { transform: rotate(0) scale(1); } }
.dp-hof-recs strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: #fff; }
.dp-hof-view {
  display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; margin-left: .15rem; border-radius: 50%;
  color: #0A0029; background: #fff; transition: transform .3s ease, background .3s ease, color .3s ease;
}
.dp-hof-view svg { color: inherit; }   /* the arrow follows the circle's colour (it used to inherit cyan and vanish on hover) */
.dp-hof-card:hover .dp-hof-view, .dp-hof-card:focus-visible .dp-hof-view { transform: translateX(3px); background: #0375F9; color: #fff; }

.dp-hof-empty { max-width: 34rem; margin: 3rem auto; padding: 3rem 1.5rem; text-align: center; border-radius: 1.25rem;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.2); }
.dp-hof-empty h2 { margin: 0 0 .5rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; color: #fff; }
.dp-hof-empty p { margin: 0; color: #94a3b8; }

.dp-hof-pagination { margin-top: 2.5rem; }
.dp-hof-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.dp-hof-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border-radius: 9999px;
  text-decoration: none; color: #e2e8f0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
}
.dp-hof-pagination .page-numbers.current, .dp-hof-pagination a.page-numbers:hover { color: #0A0029; background: #03F9F9; border-color: #03F9F9; }

/* ── Profile (single): portfolio header + one compact card row ─────────── */
/* The profile fills the first screen, so the footer starts below it instead of sitting right
   under a short profile (both share the same navy background). The content stays at the top. */
.dp-hofp {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh; padding: 6rem 0 3.5rem;
  color: #fff; background: #0A0029; border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (min-width: 1024px) { .dp-hofp { padding: 6.25rem 0 5.5rem; } }
.dp-hofp-inner { width: 100%; }
/* A profile with no cards under the header does not need the full screen. */
.dp-hofp.dp-hofp-short { min-height: 0; }
.dp-hofp-back { display: inline-flex; align-self: flex-start; align-items: center; gap: .4rem; margin-bottom: .75rem; font-size: .8125rem; color: #94a3b8; text-decoration: none; }
.dp-hofp-back:hover { color: #03F9F9; }

.dp-hofp-hero { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .dp-hofp-hero { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }

.dp-hofp-meet { margin: 0 0 .15rem; font-size: 1.25rem; color: #cbd5e1; }
.dp-hofp-name { margin: 0 0 .5rem; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -.03em; color: #fff; }
.dp-hofp-role { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1.1rem; }
.dp-hofp-title {
  font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.12;
  background: linear-gradient(90deg, #22D3EE 0%, #3B82F6 55%, #8B5CF6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.dp-hofp-logo { display: inline-flex; }
.dp-hofp-logo img { display: block; height: 2.1rem; width: auto; max-width: 11rem; object-fit: contain; }
.dp-hofp-company { font-size: 1.05rem; color: #cbd5e1; }
.dp-hofp-intro { margin: 0 0 .9rem; max-width: 34rem; font-size: 1rem; line-height: 1.7; color: #94a3b8; }
.dp-hofp-prev { margin: 0 0 1.1rem; font-size: .8125rem; color: #cbd5e1; }
.dp-hofp-prev span { margin-right: .4rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }

.dp-hofp-share-label { margin-right: .15rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
/* Thin divider between the person's own account icons and the share icons. */
.dp-hofp-sep { flex: none; width: 1px; height: 1.5rem; margin: 0 .2rem; background: rgba(255,255,255,.22); }

.dp-hofp-actionrow { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.dp-hofp-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.dp-hofp-btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.4rem; border-radius: .6rem; border: 1px solid transparent;
  font-size: .9375rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.dp-hofp-btn[hidden] { display: none; }
.dp-hofp-btn-primary { color: #fff; background: #0375F9; box-shadow: 0 10px 28px rgba(3,117,249,.38); }
.dp-hofp-btn-primary:hover { background: #0263D6; transform: translateY(-1px); }
.dp-hofp-btn-ghost { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.24); }
.dp-hofp-btn-ghost:hover { background: rgba(255,255,255,.1); }

.dp-hofp-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dp-hofp-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; cursor: pointer;
  color: #e2e8f0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.22); transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.dp-hofp-icon:hover, .dp-hofp-icon:focus-visible { color: #fff; background: #0375F9; border-color: #0375F9; outline: none; }
.dp-hofp-copied { position: absolute; left: 0; right: 0; top: 100%; margin-top: .45rem; font-size: .8rem; line-height: 1.4; color: #03F9F9; }

/* Round portrait with glowing rings, badges and a floating glass card */
.dp-hofp-visual { position: relative; display: flex; justify-content: center; padding: .5rem 0 2rem; }
.dp-hofp-portrait { position: relative; width: min(74vw, 320px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 90px rgba(59,130,246,.45); }
.dp-hofp-portrait > img, .dp-hofp-initials { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.dp-hofp-initials { display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 5rem; font-weight: 700; color: rgba(255,255,255,.85); background: linear-gradient(160deg, #0f2a56, #0e6a8c); }
.dp-hofp-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(59,130,246,.5); pointer-events: none; }
.dp-hofp-ring-a { inset: -16px; }
.dp-hofp-ring-b { inset: -40px; border-color: rgba(59,130,246,.25); }
.dp-hofp-badges {
  position: absolute; top: .5rem; left: 0; z-index: 2; display: flex; gap: .3rem; margin: 0; padding: .4rem .6rem; list-style: none; border-radius: .9rem;
  background: rgba(10,0,41,.6); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px);
}
.dp-hofp-badges img { display: block; width: 2.4rem; height: 2.4rem; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(4,12,40,.5)); }
.dp-hofp-float {
  position: absolute; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: .75rem; max-width: 22rem; padding: .8rem 1rem; border-radius: .9rem;
  background: rgba(14,20,60,.74); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); box-shadow: 0 18px 50px rgba(3,117,249,.25);
}
.dp-hofp-dot { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.25), 0 0 10px #22C55E; }
.dp-hofp-float p { margin: 0; }
.dp-hofp-float-title { font-size: .9rem; font-weight: 700; color: #fff; }
.dp-hofp-float-sub { margin-top: .15rem !important; font-size: .76rem; line-height: 1.4; color: #94a3b8; }
.dp-hofp-float-sub strong { color: #fff; }
.dp-hofp-float-ico { flex: none; color: #03F9F9; }
.dp-hofp-meta { display: contents; }   /* desktop: badges and the card float over the portrait */

/* Phones and tablets: a small portrait sits to the right of the name; everything else runs
   full width below it. The two wrappers dissolve so their children share one grid. */
@media (max-width: 959px) {
  .dp-hofp-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 0 1rem; }
  .dp-hofp-copy, .dp-hofp-visual { display: contents; }
  .dp-hofp-head { grid-column: 1; grid-row: 1; }
  /* Smaller name beside the portrait, so a long single name ("Abdulrahman") stays on one line. */
  .dp-hofp-name { font-size: clamp(1.75rem, 7.6vw, 2.75rem); line-height: 1.08; overflow-wrap: break-word; }
  .dp-hofp-role { margin-bottom: 0; }
  .dp-hofp-portrait {
    grid-column: 2; grid-row: 1; width: clamp(5.75rem, 27vw, 10rem); margin: 1rem 14px;   /* 14px = room for the outer ring */
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 0 36px rgba(59,130,246,.45);
  }
  .dp-hofp-ring-a { inset: -6px; }
  .dp-hofp-ring-b { inset: -14px; }
  .dp-hofp-initials { font-size: clamp(1.9rem, 9vw, 3.25rem); }
  .dp-hofp-intro, .dp-hofp-prev, .dp-hofp-social, .dp-hofp-actionrow, .dp-hofp-meta { grid-column: 1 / -1; }
  .dp-hofp-intro { margin-top: .75rem; }
  .dp-hofp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.75rem; }
  .dp-hofp-badges, .dp-hofp-float { position: static; }
  .dp-hofp-float { flex: 1 1 15rem; max-width: 100%; }
}

/* Card row: testimonial-style cards (white card like the reference, two glass cards) */
.dp-hofp-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); margin-top: 1rem; }
.dp-hofp-card { position: relative; display: flex; flex-direction: column; margin: 0; padding: 1.4rem 1.5rem 1.2rem; border-radius: 1.1rem; }
.dp-hofp-card-light { color: #0f172a; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 20px 50px rgba(3,117,249,.18); }
.dp-hofp-card-dark { color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); }
.dp-hofp-quote-mark { margin-bottom: .35rem; color: #d3d9e2; }
.dp-hofp-card-dark .dp-hofp-quote-mark { color: rgba(255,255,255,.22); }
.dp-hofp-card blockquote { flex: 1; margin: 0; }
.dp-hofp-quote-head { margin: 0 0 .6rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: #0f172a; }
.dp-hofp-card-dark .dp-hofp-quote-head { color: #fff; }
.dp-hofp-quote-rest { margin: 0; font-size: .875rem; line-height: 1.65; color: #64748b; }
.dp-hofp-card-dark .dp-hofp-quote-rest { color: #94a3b8; }
.dp-hofp-card figcaption { margin-top: 1rem; padding-top: .7rem; border-top: 1px solid #e2e8f0; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0375F9; }
.dp-hofp-card-dark figcaption { border-top-color: rgba(255,255,255,.14); color: #03F9F9; }
.dp-hofp-features h2 { margin: 0 0 .9rem; font-family: 'Space Grotesk', sans-serif; font-size: 1.0625rem; font-weight: 700; color: #fff; }
.dp-hofp-features ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.dp-hofp-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; line-height: 1.45; color: #e2e8f0; }
.dp-hofp-features li svg { flex: none; margin-top: .15rem; }

@media (prefers-reduced-motion: reduce) {
  .dp-hof-card, .dp-hof-photo > img, .dp-hof-view { transition: none; }
  .dp-hof-card:hover { transform: none; }
  .dp-hof-card:hover .dp-hof-recs-ico svg { animation: none; }
}
