/* public/css/profile.css */

/* ---- Global profile layout ---- */
#viewProfile .panel {
  max-width: 980px;
  margin: 0 auto;
}

#viewProfile .panelHead {
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* ---- Header "profil" ---- */
#profileHeader {
  gap: 14px;
}

#profileHeader .h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

#profileHeader .small {
  opacity: .9;
}

/* ---- Header buttons ---- */
#profileHeader .btn,
#profileHeader .btn-ghost {
  border-radius: 12px;
}

/* ---- Stat chips ---- */
#profileHeader .profileChips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#profileHeader .profileChip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
}

/* ---- Cards spacing ---- */
#viewProfile .card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

#viewProfile .card .h3 {
  margin-bottom: 6px;
}

/* ---- Accordions (details/summary) ---- */
#viewProfile details > summary.card {
  list-style: none;
  user-select: none;
}

#viewProfile details > summary.card::-webkit-details-marker {
  display: none;
}

#viewProfile details > summary.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

#viewProfile details > summary.card::after {
  content: "▾";
  opacity: .7;
  font-size: 14px;
  transform: translateY(-1px);
  transition: transform .15s ease;
}

#viewProfile details[open] > summary.card::after {
  transform: rotate(180deg);
}

/* ---- Inside lists: make cards feel like list items ---- */
#profileMyContribCalsBody .card,
#profileMyContribFilsBody .card {
  padding: 12px 14px;
  margin-top: 10px;
  background: rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.06);
}

/* ---- Responsive: two columns on desktop for contributions ---- */
@media (min-width: 900px) {
  #viewProfile .profileGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
  }

  #viewProfile details {
    margin-top: 0 !important;
  }

  #profileStats,
  #profileFavorites {
    grid-column: span 2;
  }
}


/* ---- Favorites cards ---- */
#profileFavoritesBody .profileFavoriteCard {
  cursor: pointer;
  padding: 14px 14px;
  margin-top: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.14));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

#profileFavoritesBody .profileFavoriteCard:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.16));
}

#profileFavoritesBody .profileFavoriteTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#profileFavoritesBody .profileFavoriteBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  font-weight: 700;
}

#profileFavoritesBody .profileFavoriteDate {
  white-space: nowrap;
  opacity: .85;
}

#profileFavoritesBody .profileFavoriteTitle {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

#profileFavoritesBody .profileFavoriteMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  opacity: .9;
}

#profileFavoritesBody .profileFavoriteChips {
  margin-top: 8px;
}

#profileFavoritesBody .profileFavoriteAction {
  margin-top: 10px;
  opacity: .8;
}

/* ---- Targeted calibration highlight ---- */
.calibration-target {
  position: relative;
  border-color: rgba(255, 210, 90, 0.95) !important;
  box-shadow:
    0 0 0 2px rgba(255, 210, 90, 0.22),
    0 14px 34px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(255, 210, 90, 0.12);
  background: linear-gradient(180deg, rgba(255, 210, 90, 0.08), rgba(255,255,255,0.02));
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.calibration-target-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 210, 90, 0.16);
  border: 1px solid rgba(255, 210, 90, 0.45);
  color: #ffe08a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}


/* ---- My calibrations cards ---- */
#profileMyContribCalsBody .profileCalCard {
  padding: 14px 14px;
  margin-top: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.14));
  border: 1px solid rgba(255,255,255,.08);
}

#profileMyContribCalsBody .profileCalTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#profileMyContribCalsBody .profileCalBadge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  font-weight: 700;
}

#profileMyContribCalsBody .profileCalDate {
  white-space: nowrap;
  opacity: .85;
}

#profileMyContribCalsBody .profileCalTitle {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

#profileMyContribCalsBody .profileCalMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  opacity: .9;
}

#profileMyContribCalsBody .profileCalReason {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

#profileMyContribCalsBody .profileCalCard--approved .profileCalBadge {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.28);
}

#profileMyContribCalsBody .profileCalCard--rejected .profileCalBadge {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.28);
}

#profileMyContribCalsBody .profileCalCard--pending .profileCalBadge {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
}
/* ---- My filaments cards ---- */
#profileMyContribFilsBody .profileFilCard {
  padding: 14px 14px;
  margin-top: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.14));
  border: 1px solid rgba(255,255,255,.08);
}

#profileMyContribFilsBody .profileFilTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#profileMyContribFilsBody .profileFilBadge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 12px;
  font-weight: 700;
}

#profileMyContribFilsBody .profileFilDate {
  white-space: nowrap;
  opacity: .85;
}

#profileMyContribFilsBody .profileFilTitle {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

#profileMyContribFilsBody .profileFilNote {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

#profileMyContribFilsBody .profileFilCard--approved .profileFilBadge {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.28);
}

#profileMyContribFilsBody .profileFilCard--rejected .profileFilBadge {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.28);
}

#profileMyContribFilsBody .profileFilCard--pending .profileFilBadge {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
}

/* ---- Profile page structure polish ---- */
#viewProfile .profileSectionCard,
#viewProfile .profileAccordionBody {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.14));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

#viewProfile .profileSectionHead {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#viewProfile .profileSectionTitle {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

#viewProfile .profileSectionSub {
  font-size: 12px;
  line-height: 1.45;
  opacity: .82;
}

#viewProfile .profileSummaryCard {
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

#viewProfile .profileSummaryCard:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(0,0,0,.15));
}

#viewProfile .profileSummaryText {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#viewProfile .profileAccordionBody {
  overflow: hidden;
}