/**
 * CMS Speakers – Public Styles (Archive + Card)
 * Theme: Violet / Purple (#8b5cf6)
 * Prefix: .sp-
 *
 * Card-Height: 350px (FEST – nie abweichen)
 *
 * @package CMS_Speakers
 * @since   2.0.0
 */

/* ═══════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Speaker Violet Palette ──────────────────────────────── */
  --sp-primary:       #8b5cf6;
  --sp-primary-h:     #7c3aed;
  --sp-accent:        #a855f7;
  --sp-secondary:     #6d28d9;
  --sp-card-bg:       #faf5ff;
  --sp-card-top-bg:   #ede9fe;
  --sp-hdr-from:      #4c1d95;
  --sp-hdr-to:        #8b5cf6;
  --sp-hdr-title:     #ffffff;
  --sp-border:        #ddd6fe;
  --sp-text:          #1f2937;
  --sp-text-m:        #6b7280;
  --sp-radius:        16px;
  --sp-shadow:        0 4px 16px rgba(139, 92, 246, .08);
  --sp-shadow-lg:     0 12px 32px rgba(139, 92, 246, .16);
  --sp-card-height:   300px;

  /* ── Shared Neutrals ─────────────────────────────────────── */
  --network-text-base:   #1e293b;
  --network-text-medium: #475569;
  --network-text-subtle: #94a3b8;
  --network-bg-page:     #f8fafc;
  --network-border:      #e2e8f0;
  --network-radius-sm:   8px;
  --network-radius-md:   12px;
  --network-radius-lg:   16px;
  --network-ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE WRAPPER
   ═══════════════════════════════════════════════════════════════ */

.sp-archive {
  max-width: var(--max, 1140px);
  margin: 0 auto;
  padding: 0 0 2.5rem;
  border-left:  1px solid var(--post-column-border, var(--rule, #e2e0d8));
  border-right: 1px solid var(--post-column-border, var(--rule, #e2e0d8));
}

/* ═══════════════════════════════════════════════════════════════
   ARCHIVE HEADER (Gradient)
   ═══════════════════════════════════════════════════════════════ */

.sp-archive-header {
  background: linear-gradient(135deg, var(--sp-hdr-from) 0%, var(--sp-hdr-to) 100%);
  border-radius: 0;
  padding: 2.5rem 2rem;
  min-height: 160px;
  overflow: hidden;
}

.sp-archive-header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sp-archive-header-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.sp-archive-header-title {
  margin: 0 0 .3rem;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--sp-hdr-title);
}

.sp-archive-subtitle {
  margin: 0;
  font-size: .9375rem;
  color: var(--sp-hdr-title);
  opacity: .85;
}

.sp-archive-count {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: .6rem 1.1rem;
  color: var(--sp-hdr-title);
}

.sp-archive-count-num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.sp-archive-count-lbl {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .8;
}

/* ═══════════════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════════════ */

.sp-filter-bar {
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 10px;
  box-shadow: var(--sp-shadow);
  margin: 1.5rem 1.5rem 1.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.sp-filter-input {
  flex-grow: 1;
  position: relative;
  min-width: 150px;
}

.sp-filter-input input {
  width: 100%;
  padding: 9px 10px 9px 34px;
  border: 1px solid var(--network-border);
  border-radius: 6px;
  font-size: .9rem;
  box-sizing: border-box;
  background: var(--network-bg-page);
  color: var(--sp-text);
  transition: border-color .15s, box-shadow .15s;
}

.sp-filter-input input:focus {
  outline: none;
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
}

.sp-filter-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--network-text-subtle);
  font-size: .95rem;
  line-height: 1;
  pointer-events: none;
}

.sp-filter-select {
  padding: 9px 10px;
  border: 1px solid var(--network-border);
  border-radius: 6px;
  background: var(--network-bg-page);
  color: var(--sp-text);
  font-size: .9rem;
  height: 38px;
  transition: border-color .15s, box-shadow .15s;
}

.sp-filter-select:focus {
  outline: none;
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
}

/* ═══════════════════════════════════════════════════════════════
   GRID
   ═══════════════════════════════════════════════════════════════ */

.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0 1.5rem;
}

@media (max-width: 1024px) {
  .sp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sp-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */

.sp-empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--network-bg-page);
  border: 1px solid var(--network-border);
  border-radius: var(--sp-radius);
  color: var(--network-text-medium);
  margin: 1.5rem;
}

.sp-empty-icon {
  font-size: 3.5rem;
  margin-bottom: .75rem;
}

.sp-empty-state h3 {
  margin: 0 0 .5rem;
  color: var(--sp-text);
}

.sp-empty-state p {
  margin: 0 0 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.sp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding: 2rem 1.5rem 1rem;
}

.sp-page-btn {
  padding: .4rem 1rem;
  border: 1px solid var(--network-border);
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--network-text-medium);
  text-decoration: none;
  background: #fff;
  transition: all .15s var(--network-ease);
}

.sp-page-btn:hover {
  border-color: var(--sp-primary);
  color: var(--sp-primary);
}

.sp-page-info {
  font-size: .875rem;
  color: var(--network-text-subtle);
}

/* ═══════════════════════════════════════════════════════════════
   SPEAKER CARD – 300 px  (Layout = Expert Card, Farben = Violet)
   ═══════════════════════════════════════════════════════════════ */

/* ── Card Base ─────────────────────────────────────────────── */

.sp-card {
  height:     var(--sp-card-height);
  max-height: var(--sp-card-height);
  min-height: var(--sp-card-height);
  background: var(--sp-card-bg);
  padding: 0;
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-shadow);
  transition: all .15s var(--network-ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.sp-card--overview {
  height:     300px;
  max-height: 300px;
  min-height: 300px;
  background: var(--sp-card-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.sp-card:hover,
.sp-card--overview:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow-lg);
}

/* ── Status Badges (Tab-Style, absolute top) ───────────────── */

.sp-card-status-badges {
  position: absolute;
  top: 0;
  left: 16px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.sp-card-corner-badge {
  position: absolute;
  top: 0;
  padding: 1px 10px;
  line-height: 13px;
  border-radius: 0 0 8px 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  font-weight: 700;
  background: #111827;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  max-height: 17px;
}

.sp-card-status-badges .sp-card-corner-badge {
  position: relative;
  left: auto;
  right: auto;
}

.sp-card-corner-badge span { color: #ffffff; }

.sp-badge-featured {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  border-color: rgba(139,92,246,.5);
}

.sp-badge-verified {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: rgba(5,150,105,.4);
}

/* Availability Badge – rechts */
.sp-card-availability {
  top: 0;
  right: 16px;
  left: auto;
  border-radius: 0 0 8px 8px;
}

.sp-card-availability--available {
  background: #14532d;
  border-color: rgba(34,197,94,.9);
}

.sp-card-availability--limited {
  background: #7c4a03;
  border-color: rgba(234,179,8,.9);
}

.sp-card-availability--booked {
  background: #7f1d1d;
  border-color: rgba(239,68,68,.9);
}

/* ── Card Top: Avatar + Header Text ────────────────────────── */

.sp-card--overview .sp-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 16px 16px;
  border-bottom: 1px solid rgba(221,214,254,.4);
  background: var(--sp-card-top-bg);
}

.sp-card--overview .sp-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 0;
  overflow: hidden;
  background: var(--sp-card-top-bg);
  flex-shrink: 0;
  position: relative;
}

.sp-card--overview .sp-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sp-primary), var(--sp-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.sp-card--overview .sp-card-header-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-align: left;
  width: 100%;
}

.sp-card--overview .sp-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--sp-text);
}

.sp-card--overview .sp-card-name a {
  color: inherit;
  text-decoration: none;
}

.sp-card--overview .sp-card-name a:hover {
  color: var(--sp-primary);
}

.sp-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 4px;
}

.sp-card--overview .sp-card-title {
  font-size: .85rem;
  margin: 0;
  color: var(--sp-text-m);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-card-info-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.sp-card-location-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2px;
  margin-bottom: -2px;
}

.sp-card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--sp-text-m);
}

.sp-card-company {
  font-size: .78rem;
  color: var(--network-text-subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Expertise / Themen Banner ─────────────────────────────── */

.sp-card--overview .sp-card-expertise-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
  border-top: 1px solid rgba(139,92,246,.12);
  border-bottom: 1px solid rgba(139,92,246,.12);
  max-height: 40px;
  min-height: 35px;
  overflow: hidden;
  flex-shrink: 0;
}

.sp-card--overview .sp-expertise-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--sp-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .8;
}

.sp-card--overview .sp-expertise-value {
  font-size: .85rem;
  font-weight: 600;
  color: #4c1d95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Vortragsformate (Format-Pills) ────────────────────────── */

.sp-card--overview .sp-card-formats {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 6px 5px;
  flex-shrink: 0;
  overflow: hidden;
}

.sp-card--overview .sp-format-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2px;
  padding: 4px 5px;
  font-size: .68rem;
  font-weight: 600;
  color: #5b21b6;
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.15);
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.4;
}

/* ── Card Body: Skills + Social ────────────────────────────── */

.sp-card--overview .sp-card-body {
  padding: 10px 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: var(--sp-card-bg);
  justify-content: space-evenly;
}

.sp-card--overview .sp-card-competencies {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.sp-card--overview .sp-card-skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  width: 100%;
}

.sp-skill-pill {
  font-size: .72rem;
  padding: 5px 2px;
  border-radius: 6px;
  background: #e4e1f3;
  border: 1px solid rgba(139,92,246,.15);
  color: #5b21b6;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* ── Social Icons Band (wie Themen-Banner) ─────────────────── */
.sp-card-social {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 6px 0;
  margin-top: auto;
  background: linear-gradient(135deg, #f3e8ff 0%, #faf5ff 100%);
  border-top: 1px solid rgba(139,92,246,.12);
  border-bottom: 1px solid rgba(139,92,246,.12);
  min-height: 34px;
  flex-shrink: 0;
}

.sp-card-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(139,92,246,.10);
  color: #5b21b6;
  transition: all .15s var(--network-ease);
  text-decoration: none;
}

.sp-card-social a:hover {
  background: var(--sp-primary);
  color: #ffffff;
}

.sp-card-social a.social-disabled {
  opacity: .25;
  pointer-events: none;
  cursor: default;
}

.social-icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* ── CTA Button ────────────────────────────────────────────── */

.sp-card--overview .sp-card-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 16px;
  text-align: center;
  background: var(--sp-secondary);
  color: #ffffff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border-radius: 0 0 var(--sp-radius) var(--sp-radius);
  transition: all .15s var(--network-ease);
}

.sp-card--overview .sp-card-cta:hover {
  filter: brightness(1.15);
  color: #ede9fe;
}

.sp-card-cta .cta-arrow {
  font-size: 1.2em;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS (shared)
   ═══════════════════════════════════════════════════════════════ */

.sp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--sp-primary);
  color: #ffffff;
  text-decoration: none;
  transition: background .2s var(--network-ease);
  cursor: pointer;
}

.sp-btn-primary:hover {
  background: var(--sp-primary-h);
}

.sp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--network-border);
  background: #f1f5f9;
  color: var(--network-text-medium);
  text-decoration: none;
  transition: background .2s var(--network-ease);
  cursor: pointer;
}

.sp-btn-ghost:hover {
  background: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .sp-archive-header {
    padding: 1.5rem 1.25rem;
  }

  .sp-archive-count {
    display: none;
  }

  .sp-filter-bar {
    margin: 1rem;
  }

  .sp-filter-select {
    width: 100%;
  }

  .sp-grid {
    padding: 0 1rem;
  }
}
