/* ========================================
   Charlène Lingerie — Link-in-Bio
   ======================================== */

:root {
  --primary: #e878a1;
  --primary-light: #fce7ef;
  --bg-gradient: linear-gradient(135deg, #fff0f5, #fff, #fafafa);
  --text-heading: #111827;
  --text-body: #374151;
  --text-meta: #6B7280;
  --border: #E5E7EB;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* Container */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

/* ---- Avatar ---- */
.avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

/* ---- Name ---- */
.name-section {
  text-align: center;
  margin-bottom: 20px;
}

.name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-meta);
  margin-top: 4px;
}

/* ---- Social Icons ---- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: background var(--transition), box-shadow var(--transition);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-heading);
  transition: fill var(--transition);
}

.social-icon:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

.social-icon:hover svg {
  fill: var(--primary);
}

/* ---- Link Cards ---- */
.link-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.link-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.link-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.link-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ---- Affiliations ---- */
.affiliations {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 14px;
  text-align: center;
}

.affiliate-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.affiliate-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.affiliate-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow);
}

.affiliate-card .partner-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.affiliate-card .partner-info {
  flex: 1;
  min-width: 0;
}

.affiliate-card .partner-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
}

.affiliate-card .promo-detail {
  font-size: 14px;
  color: var(--text-meta);
  margin-top: 4px;
}

.affiliate-card .promo-code {
  margin-top: 8px;
}

.code-badge {
  display: inline-block;
  padding: 6px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px dashed var(--primary);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition), color var(--transition);
}

.code-badge:active {
  background: var(--primary);
  color: var(--white);
}

.code-badge.copied {
  background: var(--primary);
  color: var(--white);
}

/* ---- Contact ---- */
.contact-section {
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow);
}

.contact-card .contact-icon {
  width: 28px;
  height: 28px;
  fill: var(--primary);
  flex-shrink: 0;
}

.contact-card span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding-bottom: 40px;
  font-size: 12px;
  color: var(--text-meta);
}

.footer a {
  color: var(--text-meta);
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--primary);
}

.footer-sep {
  margin: 0 4px;
}
