/* ═══════════════════════════════════════════════════════════════
   SPECTRUM AWARDS 2026 — CONTACTS PAGE
═══════════════════════════════════════════════════════════════ */

/* ─── PAGE WRAPPER ─────────────────────────────────────────── */
.contact_modal {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 0 100px;
  animation: ctc-enter .22s ease both;
}

@keyframes ctc-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── PAGE HEADER ──────────────────────────────────────────── */
.ctc-header {
  padding: 32px 24px 20px;
}

.ctc-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.ctc-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── SECTION LABEL ────────────────────────────────────────── */
.ctc-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 24px 12px;
}

/* ─── CONTACT LIST ─────────────────────────────────────────── */
.contact_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

/* ─── CARD ─────────────────────────────────────────────────── */
.contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  position: relative;
  overflow: hidden;
  animation: ctc-card-in .28s ease both;
}

/* Gold left accent on hover */
.contact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--red));
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity .2s ease;
}

.contact:hover::before { opacity: 1; }

.contact:nth-child(1) { animation-delay:   0ms; }
.contact:nth-child(2) { animation-delay:  50ms; }
.contact:nth-child(3) { animation-delay: 100ms; }
.contact:nth-child(4) { animation-delay: 150ms; }
.contact:nth-child(5) { animation-delay: 200ms; }
.contact:nth-child(6) { animation-delay: 250ms; }

@keyframes ctc-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contact:hover {
  border-color: rgba(232, 184, 75, .3);
  box-shadow: 0 6px 28px rgba(0, 0, 0, .22);
  transform: translateY(-2px);
}

.contact:active { transform: translateY(0); }

/* ─── AVATAR ───────────────────────────────────────────────── */
.contact_profile {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: var(--panel);
  border: 2px solid var(--border-md);
  flex-shrink: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact:hover .contact_profile {
  border-color: var(--gold-glow);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, .12);
}

/* ─── NAME + ROLES ─────────────────────────────────────────── */
.name_and_role {
  flex: 1;
  min-width: 0;
}

.name_and_role name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.ctc-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ctc-role-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── VIEW BUTTON ───────────────────────────────────────────── */
.Contact_links { flex-shrink: 0; }

.Contact_links .view_profile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border: 1.5px solid rgba(232, 184, 75, .25);
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
  cursor: pointer;
}

.Contact_links .view_profile::after {
  content: '→';
  font-size: 12px;
  transition: transform .18s;
}

.contact:hover .Contact_links .view_profile {
  background: rgba(232, 184, 75, .15);
  border-color: rgba(232, 184, 75, .5);
}

.contact:hover .Contact_links .view_profile::after {
  transform: translateX(3px);
}

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.ctc-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE MODAL  —  WhatsApp-style
═══════════════════════════════════════════════════════════════ */

.contact_profile_modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (min-width: 540px) {
  .contact_profile_modal {
    align-items: center;
    padding: 24px;
  }
}

.contact_profile_modal.active {
  opacity: 1;
  visibility: visible;
}

/* ─── SHEET ─────────────────────────────────────────────────── */
.contact_profile_content {
  background: var(--surface);
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(40px);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1);
  box-shadow: 0 -4px 48px rgba(0, 0, 0, .5);
}

@media (min-width: 540px) {
  .contact_profile_content {
    border-radius: 20px;
    transform: translateY(16px) scale(.97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
    max-height: 88vh;
  }
}

.contact_profile_modal.active .contact_profile_content {
  transform: translateY(0) scale(1);
}

/* ─── FULL-BLEED PHOTO ──────────────────────────────────────── */
.cpm-photo {
  position: relative;
  height: 260px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center top;
  background-color: var(--panel);
}

/* Bottom scrim — name readable over any photo */
.cpm-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1)  0%,
    rgba(0,0,0,.05) 40%,
    rgba(0,0,0,.55) 72%,
    rgba(0,0,0,.82) 100%
  );
  border-radius: inherit;
}

/* ─── BACK BUTTON ───────────────────────────────────────────── */
.cpm-back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  backdrop-filter: blur(4px);
}

.cpm-back:hover { background: rgba(0, 0, 0, .55); }

/* ─── NAME OVERLAY ──────────────────────────────────────────── */
.cpm-name-block {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 16px 20px 18px;
}

.cpm-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.cpm-role-line {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  margin-top: 3px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ─── QUICK-ACTION BUTTONS ──────────────────────────────────── */
.cpm-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 18px 20px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.cpm-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cpm-action-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1.5px solid rgba(232, 184, 75, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background .15s, transform .15s;
}

.cpm-action-icon svg {
  width: 20px;
  height: 20px;
}

.cpm-action-btn:hover .cpm-action-icon {
  background: rgba(232, 184, 75, .18);
  transform: scale(1.07);
}

.cpm-action-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ─── SCROLLABLE BODY ───────────────────────────────────────── */
.cpm-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
}

.cpm-body::-webkit-scrollbar { width: 3px; }
.cpm-body::-webkit-scrollbar-track { background: transparent; }
.cpm-body::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }

/* ─── BIO ───────────────────────────────────────────────────── */
.cpm-bio {
  padding: 16px 20px 4px;
  border-bottom: 1px solid var(--border);
}

.cpm-bio-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  font-style: italic;
  position: relative;
  padding-left: 14px;
  border-left: 2px solid var(--gold-glow);
}

/* ─── INFO ROWS (WhatsApp-style) ────────────────────────────── */
.cpm-info-list {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.cpm-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

a.cpm-info-row:hover {
  background: var(--panel);
}

.cpm-info-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpm-info-icon svg {
  width: 20px;
  height: 20px;
}

.cpm-info-value {
  flex: 1;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Links get the gold tint */
a.cpm-info-row .cpm-info-value {
  color: var(--gold);
}

.cpm-info-arrow {
  color: var(--muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform .15s, color .15s;
}

a.cpm-info-row:hover .cpm-info-arrow {
  transform: translateX(3px);
  color: var(--gold);
}

/* ─── HIDDEN COMPAT ─────────────────────────────────────────── */
.profile_contact_info,
.profile_achievements,
.profile_vision,
.profile_header,
.profile_body,
.profile_social_links,
.profile_actions { display: none; }

/* ─── MOBILE ────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .contact_modal  { padding: 0 0 96px; }
  .contact_list   { padding: 0 12px; gap: 8px; }
  .contact        { padding: 13px 14px; gap: 12px; }
  .contact_profile { width: 46px; height: 46px; }
  .name_and_role name { font-size: 14px; }
  .Contact_links .view_profile { padding: 6px 12px; font-size: 12px; }
  .ctc-header { padding: 24px 16px 16px; }
  .ctc-section-label { padding: 4px 16px 10px; }
  .cpm-photo { height: 220px; }
  .cpm-actions { gap: 16px; }
}
