/* ============================================
   MEMBER PROFILE RENDERER - Modern Styles v2.0
   Shared across all pages that display profile content
   ============================================ */

/* ===== TEXT ===== */
.mpr-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #334155;
}

.mpr-rich-text h1,
.mpr-rich-text h2,
.mpr-rich-text h3 {
  margin: 0.5em 0 0.3em;
  color: #1e293b;
}

.mpr-rich-text p {
  margin: 0.3em 0;
}

.mpr-rich-text a {
  color: var(--primary-color, #2563eb);
}

/* ===== HTML ===== */
.mpr-html {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #334155;
}

/* ===== TABLE ===== */
.mpr-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.mpr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.mpr-table thead th {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #cbd5e1;
}

.mpr-table tbody td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.mpr-table tbody tr:hover {
  background: #f8fafc;
}

.mpr-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== TIMELINE ===== */
.mpr-timeline {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.mpr-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color, #2563eb), rgba(37,99,235,0.15));
  border-radius: 2px;
}

.mpr-tl-event {
  position: relative;
  padding-bottom: 1.25rem;
}

.mpr-tl-event.mpr-tl-last {
  padding-bottom: 0;
}

.mpr-tl-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  background: var(--primary-color, #2563eb);
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-color, #2563eb);
  z-index: 1;
}

.mpr-tl-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-color, #2563eb);
  margin-bottom: 0.15rem;
}

.mpr-tl-title {
  font-size: 0.88rem;
  font-weight: 650;
  color: #1e293b;
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.mpr-tl-desc {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

/* ===== LIST ===== */
.mpr-list {
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}

.mpr-list li {
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #475569;
}

.mpr-list-ordered {
  list-style-type: decimal;
}

.mpr-list-unordered {
  list-style-type: disc;
}

/* ===== CARD ===== */
.mpr-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}

.mpr-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mpr-card-img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.mpr-card-body {
  padding: 0.85rem 1rem;
}

.mpr-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.mpr-card-content {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.mpr-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-color, #2563eb);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(37,99,235,0.06);
  transition: all 0.2s ease;
}

.mpr-card-link:hover {
  background: var(--primary-color, #2563eb);
  color: #fff;
}

.mpr-card-footer {
  padding: 0.55rem 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.72rem;
  color: #94a3b8;
  background: #fafbfc;
}

/* ===== GALLERY ===== */
.mpr-gallery {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0;
}

.mpr-gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f5f9;
  aspect-ratio: 4/3;
}

.mpr-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mpr-gallery-item:hover img {
  transform: scale(1.05);
}

.mpr-gallery-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.5rem;
  background: #f1f5f9;
}

.mpr-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.68rem;
  text-align: center;
}

/* ===== SOCIAL LINKS ===== */
.mpr-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.25rem 0;
}

.mpr-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mpr-social-btn i {
  font-size: 1rem;
  color: var(--brand-color, #64748b);
}

.mpr-social-btn:hover {
  border-color: var(--brand-color, #2563eb);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.mpr-social-btn:hover i {
  color: var(--brand-color, #2563eb);
}

/* ===== LIST PAPER ===== */
.mpr-list-paper {
  padding-left: 1.5rem;
  margin: 0.25rem 0;
}

.mpr-list-paper li {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #475569;
}

.mpr-paper-link {
  color: var(--primary-color, #2563eb);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.mpr-paper-link:hover {
  border-bottom-color: var(--primary-color, #2563eb);
}

.mpr-paper-text {
  font-weight: 500;
  color: #334155;
}

/* ===== LIGHTBOX ===== */
.mpr-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: mprFadeIn 0.2s ease;
}

.mpr-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.mpr-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mpr-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

@keyframes mprFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
