/* ═══════════════════════════════════════════════════════════════
   css/press_detail.css — algo-freedom society
   Stili per press_detail.php (pagina di dettaglio Press)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero dettaglio ──────────────────────────────────────────── */
.prd-hero {
  background: linear-gradient(135deg, var(--nav-1) 0%, #2d5494 100%);
  padding: clamp(2rem, 5vw, 3.5rem) 0 0;
  position: relative;
  overflow: hidden;
}
.prd-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.prd-hero-inner {
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
}

/* ─── Breadcrumb ──────────────────────────────────────────────── */
.prd-breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .9rem;
  flex-wrap: wrap;
}
.prd-breadcrumb a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .15s;
}
.prd-breadcrumb a:hover { color: #fff; }
.prd-breadcrumb svg {
  width: 12px; height: 12px;
  stroke: currentColor; fill: none; stroke-width: 2;
  flex-shrink: 0;
}

/* ─── Chips (tipo, fonte, data, sezione) ──────────────────────── */
.prd-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .85rem;
}
.prd-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.prd-chip.type    { background: rgba(105,168,232,.22); color: var(--accent); border: 1px solid rgba(105,168,232,.3); }
.prd-chip.source  { background: rgba(255,255,255,.1);  color: rgba(255,255,255,.8);  border: 1px solid rgba(255,255,255,.15); }
.prd-chip.date    { background: rgba(255,255,255,.08); color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.12); }
.prd-chip.section { background: rgba(255,255,255,.08); color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.12); }

/* ─── Titolo e autori hero ────────────────────────────────────── */
.prd-title {
  font-size: clamp(1.3rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.28;
  color: #fff;
  margin: 0 0 .7rem;
}
.prd-authors {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-bottom: .5rem;
}

/* ─── Bottoni hero ────────────────────────────────────────────── */
.prd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.1rem;
}
.prd-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  border-radius: .4rem;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .15s;
}
.prd-btn svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
  flex-shrink: 0;
}
.prd-btn.solid         { background: var(--accent); color: #fff; }
.prd-btn.solid:hover   { background: var(--accent-2); }
.prd-btn.outline       { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.prd-btn.outline:hover { background: rgba(255,255,255,.18); }
.prd-btn.ghost         { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.prd-btn.ghost:hover   { background: rgba(29,78,216,.06); }

/* ─── Barra bozza ─────────────────────────────────────────────── */
.prd-draft-bar {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: .5rem;
  padding: .6rem 1rem;
  margin-bottom: 1rem;
  font-size: .82rem;
  font-weight: 700;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.prd-draft-bar svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none; stroke-width: 2.5;
  flex-shrink: 0;
}

/* ─── Body layout ─────────────────────────────────────────────── */
.prd-body {
  padding: clamp(1.5rem, 4vw, 2.8rem) 0 clamp(2rem, 5vw, 4rem);
}
.prd-body-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(1.5rem, 3vw, 2.2rem);
  align-items: start;
}
@media (max-width: 860px) {
  .prd-body-grid { grid-template-columns: 1fr; }
}

/* ─── Label sezione ───────────────────────────────────────────── */
.prd-section-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .5rem;
}

/* ─── Testi ───────────────────────────────────────────────────── */
.prd-abstract-text {
  font-size: .95rem;
  line-height: 1.8;
  color: #334155;
  white-space: pre-wrap;
  margin: 0;
}
.prd-body-text {
  font-size: .95rem;
  line-height: 1.8;
  color: #334155;
  margin: 0;
}
.prd-body-text p  { margin: 0 0 1em; }
.prd-body-text h2 { font-size: 1.15rem; font-weight: 800; color: var(--nav-1); margin: 1.5em 0 .45em; }

/* ─── Meta card sidebar ───────────────────────────────────────── */
.prd-meta-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: .6rem;
  overflow: hidden;
}
.prd-meta-card-title {
  padding: .75rem 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--nav-1);
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.prd-meta-row {
  display: flex;
  gap: .75rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: .83rem;
}
.prd-meta-row:last-child { border-bottom: none; }
.prd-meta-key {
  flex-shrink: 0;
  width: 80px;
  color: #94a3b8;
  font-weight: 600;
}
.prd-meta-val {
  color: #1e293b;
  word-break: break-word;
}

/* ─── Video embed ─────────────────────────────────────────────── */
.press-detail-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 28px;
  box-shadow: 0 8px 28px rgba(15,23,42,.12);
}
.press-detail-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ─── Galleria foto ───────────────────────────────────────────── */
.press-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.press-gallery-grid a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f5f9;
}
.press-gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
  display: block;
}
.press-gallery-grid a:hover img { transform: scale(1.05); }

/* ─── Chip membro AFS ─────────────────────────────────────────── */
.press-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: border-color .14s, background .14s;
}
.press-member-chip:hover { background: #e2e8f0; border-color: var(--accent); }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1111px) {
  .prd-title { font-size: clamp(1.1rem, 3vw, 1.6rem); }
}
