/* =============================================================
   pages/profil.css — Creator-Profilseiten

   Die Inhalte (Name, Bio, Statistiken, Social-Zahlen, Foto)
   werden zur Laufzeit aus einer Google-Tabelle geladen,
   siehe assets/js/modules/creator-profile.js.
   ============================================================= */

.profil {
  --p-gold:   #F0B000;
  --p-muted:  rgba(255, 255, 255, .5);
  --p-dim:    rgba(255, 255, 255, .2);
  --p-glass:  rgba(255, 255, 255, .04);
  --p-line:   rgba(255, 255, 255, .10);
  --p-radius: 18px;

  max-width: 1200px;
  margin-inline: auto;
  padding: 24px 1.5rem 5rem;
  font-family: var(--f-alt);
  color: var(--c-text-strong);
}

/* ---------- Kopfbereich: Infos links, Foto rechts ---------- */
.profil__hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 500px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: 24px;
  background: var(--p-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 16px 64px rgba(0, 0, 0, .5);
}

.profil__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 3rem;
}

.profil__name {
  font-family: var(--f-alt);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: none;
}

.profil__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: .75rem;
}
.profil__tag,
.profil__tag--follower {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: .04em;
}
.profil__tag {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .75);
  font-weight: 500;
}
.profil__tag--follower {
  background: var(--p-gold);
  color: #000;
  font-weight: 700;
}
/* Leere Schlagworte (noch keine Daten) bleiben unsichtbar. */
.profil__tag:empty,
.profil__tag--follower:empty,
.profil__tag[hidden] { display: none; }

.profil__bio {
  max-width: 520px;
  margin-top: 1.25rem;
  color: var(--p-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- Statistik-Tabelle ---------- */
.profil__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: 14px;
}
.profil__stats-col { padding: 1rem 1.25rem; }
.profil__stats-col + .profil__stats-col { border-left: 1px solid rgba(255, 255, 255, .08); }

.profil__stats-title {
  margin-bottom: .75rem;
  color: var(--p-dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}
.profil__stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
}
.profil__stats-label { color: var(--p-gold); font-size: 13px; font-weight: 500; }
.profil__stats-val   { color: rgba(255, 255, 255, .65); font-size: 13px; font-weight: 500; }

/* ---------- Foto ---------- */
.profil__photo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}
.profil__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(10, 10, 10, .6) 0%, transparent 40%);
}
.profil__photo a { display: block; width: 100%; height: 100%; }
.profil__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Social-Karten ---------- */
.profil__socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

/* Karten ohne Wert bleiben ausgeblendet; das Script zeigt sie ein. */
.social-card {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 110px;
  padding: 1.2rem;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  background: var(--p-glass);
  color: var(--c-text-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .3s cubic-bezier(.34, 1.2, .64, 1), background .2s;
}
.social-card.is-visible { display: flex; }
.social-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .07); }

.social-card__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
}
.social-card__icon svg { width: 30px; height: 30px; fill: currentColor; }

.social-card__icon--tiktok    { background: rgba(83, 74, 183, .18);  border: 1px solid rgba(83, 74, 183, .35); }
.social-card__icon--instagram { background: rgba(212, 83, 126, .18); border: 1px solid rgba(212, 83, 126, .35); }
.social-card__icon--youtube   { background: rgba(216, 48, 48, .18);  border: 1px solid rgba(216, 48, 48, .35); }
.social-card__icon--twitch    { background: rgba(100, 65, 165, .18); border: 1px solid rgba(100, 65, 165, .35); }
.social-card__icon--snapchat  { background: rgba(255, 252, 0, .12);  border: 1px solid rgba(255, 252, 0, .30); }
.social-card__icon--pinterest { background: rgba(230, 0, 35, .15);   border: 1px solid rgba(230, 0, 35, .30); }
.social-card__icon--facebook  { background: rgba(24, 119, 242, .15); border: 1px solid rgba(24, 119, 242, .30); }

.social-card__name  { margin: 0; font-size: 15px; font-weight: 600; line-height: 1; }
.social-card__count { margin: 6px 0 0; font-size: 24px; font-weight: 700; }

/* ---------- Anfragen-Button ---------- */
.profil__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}
.btn-anfragen {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--p-gold);
  color: #000;
  font-family: var(--f-alt);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.btn-anfragen:hover { opacity: .88; transform: translateY(-2px); color: #000; }
.btn-anfragen svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Videos ---------- */
.profil__label {
  margin-bottom: 1rem;
  color: var(--p-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profil__videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.video-card {
  overflow: hidden;
  border: 1px solid var(--p-line);
  border-radius: var(--p-radius);
  background: var(--p-glass);
}
.video-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}
.video-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-card__info  { padding: 12px 14px; }
.video-card__title { margin: 0; color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 500; }
.video-card__sub   { margin: 3px 0 0; color: var(--p-muted); font-size: 11px; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .profil__hero   { grid-template-columns: 1fr; }
  .profil__photo  { min-height: 320px; }
  .profil__stats  { grid-template-columns: 1fr; }
  .profil__stats-col + .profil__stats-col {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .profil__socials { grid-template-columns: repeat(2, 1fr); }

  .profil__videos {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .profil__videos::-webkit-scrollbar { display: none; }
  .video-card { flex-shrink: 0; min-width: 60vw; scroll-snap-align: start; }
}

/* ---------- Handy ---------- */
@media (max-width: 600px) {
  .profil { padding: 16px 1rem 3rem; }
  .profil__intro { padding: 1.5rem; }
  .profil__name  { font-size: clamp(32px, 8vw, 48px); }
  .profil__socials { grid-template-columns: 1fr; }
  .video-card { min-width: 78vw; }
}
