/* ============================================================
   HotNews.co.il — Profile Page CSS
   עמוד פרופיל ציבורי - אישיות / מפלגה / ארגון
   ============================================================ */

.profile-page-wrap {
  padding: 24px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* פירורי לחם - margin קטן יותר כי המבנה הכללי כבר עם gap */
.breadcrumb.profile-breadcrumb {
  margin-bottom: 0;
}

/* ───────────────────────────────────────────────────────────
   Hero - תמונה גדולה + שם + תפקיד + תקציר + רשתות
   ─────────────────────────────────────────────────────────── */
.profile-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.profile-hero-image {
  width: 280px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
}
.profile-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #566174, #111827);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.profile-hero-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 35%);
}
.profile-placeholder-mark {
  font-size: 100px;
  font-weight: 900;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  letter-spacing: -3px;
  user-select: none;
  position: relative;
  z-index: 1;
}

.profile-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.profile-name {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--text-main);
}

/* ז"ל לדמויות שנפטרו */
.profile-zl {
  font-size: 0.55em;
  font-weight: 600;
  color: #6b7280;
  vertical-align: middle;
  margin-right: 8px;
  letter-spacing: 0.5px;
}

.profile-role {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  background: var(--brand-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
}

.profile-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 12px;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: 0.15s ease;
}
.profile-group-badge:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.profile-short-bio {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ───────────────────────────────────────────────────────────
   רשתות חברתיות
   ─────────────────────────────────────────────────────────── */
.profile-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.profile-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.profile-social-link:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  transform: translateY(-2px);
}
.psl-icon {
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
}

/* ───────────────────────────────────────────────────────────
   כרטיסיות תוכן (תעודת זהות, ביוגרפיה, כתבות)
   ─────────────────────────────────────────────────────────── */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
}

.profile-section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

/* ───────────────────────────────────────────────────────────
   תעודת זהות - גריד פרטים
   ─────────────────────────────────────────────────────────── */
.profile-id-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.profile-id-item {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
}
.profile-id-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.profile-id-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

/* ערך ריק - "לא צוין רשמית" - מעט דהוי ופחות בולט */
.profile-id-empty {
  color: #94a3b8;
  font-weight: 500;
  font-size: 14px;
  font-style: italic;
}
.profile-id-secondary {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-right: 4px;
}

/* כרטיסיה של דמות שנפטרה - גוון אפור עדין */
.profile-id-deceased {
  background: #f9fafb;
  border-color: #d1d5db;
}
.profile-id-deceased .profile-id-label {
  color: #6b7280;
}
.profile-id-extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ───────────────────────────────────────────────────────────
   ביוגרפיה
   ─────────────────────────────────────────────────────────── */
.profile-bio-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
}

/* ───────────────────────────────────────────────────────────
   כתבות הפרופיל
   ─────────────────────────────────────────────────────────── */
.profile-articles-count {
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-muted);
  padding: 4px 12px;
  border-radius: 999px;
}

.profile-articles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-article-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border-color);
  align-items: start;
}
.profile-article-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-art-thumb {
  display: block;
  width: 140px;
  height: 100px;
  border-radius: 10px;
  background: linear-gradient(135deg, #d3deea, #b1c0d6);
  flex-shrink: 0;
  overflow: hidden;
}
.profile-art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.profile-art-thumb-placeholder {
  background: linear-gradient(135deg, #566174, #111827);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.82);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.profile-art-body {
  min-width: 0;
}

.profile-art-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.profile-art-category:hover {
  text-decoration: underline;
}

.profile-art-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
}
.profile-art-title a {
  color: var(--text-main);
  text-decoration: none;
}
.profile-art-title a:hover {
  color: var(--brand-primary);
}

.profile-art-summary {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0 0 6px;
}

.profile-art-meta {
  font-size: 12px;
  color: var(--text-soft);
}

/* ───────────────────────────────────────────────────────────
   Pagination
   ─────────────────────────────────────────────────────────── */
.profile-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.profile-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.profile-page-link:hover:not(.profile-page-current):not(.profile-page-disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}
.profile-page-current {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  cursor: default;
}
.profile-page-disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  background: var(--bg-muted);
}
.profile-page-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--text-soft);
  font-weight: 700;
}
.profile-page-prev,
.profile-page-next {
  font-weight: 700;
}

/* ───────────────────────────────────────────────────────────
   Report Error - דווח על טעות
   ─────────────────────────────────────────────────────────── */
.profile-report-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-xl);
  padding: 16px 22px;
  flex-wrap: wrap;
}
.profile-report-text {
  font-size: 14px;
  font-weight: 600;
  color: #78350f;
}
.profile-report-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.profile-report-btn:hover {
  background: #d97706;
}

/* ───────────────────────────────────────────────────────────
   Mobile Responsive
   ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px;
    gap: 18px;
  }
  .profile-hero-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .profile-hero-content {
    align-items: center;
  }
  .profile-role {
    align-self: center;
  }
  .profile-social {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .profile-page-wrap {
    padding: 12px 0 32px;
    gap: 14px;
  }
  .profile-card {
    padding: 18px 16px;
  }
  .profile-section-title {
    font-size: 17px;
  }
  .profile-hero {
    padding: 18px 16px;
  }
  .profile-hero-image {
    width: 160px;
    height: 160px;
  }
  .profile-name {
    font-size: 26px;
  }
  .profile-short-bio {
    font-size: 14px;
  }
  .profile-id-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* כתבות במובייל - תמונה קטנה יותר */
  .profile-article-item {
    grid-template-columns: 96px 1fr;
    gap: 12px;
  }
  .profile-art-thumb {
    width: 96px;
    height: 72px;
  }
  .profile-art-title {
    font-size: 15px;
  }
  .profile-art-summary {
    display: none; /* חוסך מקום במובייל */
  }

  /* Pagination במובייל - מצומצם */
  .profile-page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  .profile-page-prev,
  .profile-page-next {
    flex-basis: 100%;
    margin: 4px 0;
  }

  /* Report במובייל */
  .profile-report-error {
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }
}
