/* ============================================
   PICKLEHTX — Member Profile Card Styles
   ============================================ */

:root {
  --purple-50: #f2eeff;
  --purple-100: #e0d1ff;
  --purple-200: #c4a8ff;
  --purple-300: #a87eff;
  --purple-500: #8C52FF;
  --purple-600: #7040d4;
  --purple-700: #5430aa;
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --gray-900: #222222;
  --gray-700: #4a4a4a;
  --gray-600: #666666;
  --gray-500: #888888;
  --gray-300: #cccccc;
  --gray-200: #e5e5e5;
  --gray-100: #f2f2f2;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: #f0f0f5;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================================
   PAGE WRAPPER
   ============================================ */
.profile-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ============================================
   HEADER — LOGO & TAGLINE
   ============================================ */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--black);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.profile-logo span {
  color: var(--purple-500);
}

.profile-tagline {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gray-600);
  text-transform: uppercase;
}

/* ============================================
   PHOTO RING
   ============================================ */
.profile-photo-ring {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--purple-500),
    var(--purple-200),
    var(--purple-500),
    var(--purple-700),
    var(--purple-500)
  );
  padding: 4px;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.profile-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  border: 3px solid var(--white);
}

.profile-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ============================================
   NAME & ROLE
   ============================================ */
.profile-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.profile-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--purple-500);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
}

/* ============================================
   CONTACT ICON BUTTONS
   ============================================ */
.profile-contacts {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  width: 100%;
  justify-content: center;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--gray-700);
  flex: 1;
  max-width: 90px;
}

.contact-icon {
  width: 58px;
  height: 58px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}

.contact-btn:hover .contact-icon {
  background: var(--purple-50);
  border-color: var(--purple-200);
  transform: translateY(-2px);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gray-900);
}

.contact-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-600);
  text-align: center;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  border: none;
}

.btn-save {
  background: var(--black);
  color: var(--white);
  margin-bottom: 0.75rem;
}

.btn-save:hover {
  background: var(--purple-700);
  transform: translateY(-1px);
}

.btn-exchange {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--gray-300);
  margin-bottom: 2rem;
}

.btn-exchange:hover {
  border-color: var(--purple-500);
  color: var(--purple-600);
  transform: translateY(-1px);
}

.btn-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   LINK CARDS
   ============================================ */
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 2.5rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--dark);
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.link-card:hover {
  border-color: var(--purple-300);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(140, 82, 255, 0.12);
}

.link-card-accent {
  background: var(--purple-50);
  border-color: var(--purple-200);
}

.link-card-accent:hover {
  background: var(--purple-100);
  border-color: var(--purple-400);
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-card-accent .link-icon {
  background: var(--purple-500);
}

.link-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gray-900);
}

.link-card-accent .link-icon svg {
  stroke: var(--white);
}

.link-text {
  flex: 1;
  min-width: 0;
}

.link-text h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-text p {
  font-size: 0.72rem;
  color: var(--gray-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  color: var(--gray-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--gray-400);
}

.link-card-accent .link-arrow svg {
  stroke: var(--purple-500);
}

/* ============================================
   QR CODE SECTION
   ============================================ */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
}

.qr-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gray-500);
  text-transform: uppercase;
  text-align: center;
}

.qr-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.qr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.qr-card img {
  width: 180px;
  height: 180px;
  display: block;
}

.qr-tap {
  font-size: 0.7rem;
  color: var(--purple-500);
  font-weight: 500;
}

/* QR Modal */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.qr-modal.open {
  display: flex;
}

.qr-modal-inner {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 320px;
  width: 90%;
}

.qr-modal-inner img {
  width: 240px;
  height: 240px;
}

.qr-modal-close {
  font-size: 0.8rem;
  color: var(--gray-600);
  cursor: pointer;
  font-weight: 500;
  background: none;
  border: none;
  font-family: var(--font-sans);
  padding: 0.5rem 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.profile-footer {
  text-align: center;
}

.profile-footer p {
  font-size: 0.72rem;
  color: var(--gray-500);
}

/* ============================================
   DIVIDER
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 1.5rem 0;
}
