/* components/WebSite/shared/article_single.css */
/* Stili unificati e responsive per la pagina del Singolo Articolo del Blog */

.article-detail-wrap {
  padding: 48px 24px 100px;
  max-width: 860px;
  margin: 0 auto;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 28px;
  transition: all 0.2s ease;
}
.article-back-link:hover {
  color: var(--theme-primary);
  transform: translateX(-3px);
}

/* Header Articolo */
.article-header {
  margin-bottom: 32px;
}
.article-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--theme-text-muted);
  margin-bottom: 16px;
}
.article-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(104, 34, 255, 0.12);
  color: var(--theme-primary);
  border: 1px solid rgba(104, 34, 255, 0.25);
}
.meta-dot {
  opacity: 0.5;
}
.meta-date, .meta-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-main-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* Scheda Autore Header */
.article-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--theme-surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius, 12px);
  width: fit-content;
}
.article-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-primary);
  flex-shrink: 0;
}
.article-author-info {
  display: flex;
  flex-direction: column;
}
.article-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-text);
}
.article-author-role {
  font-size: 12px;
  color: var(--theme-text-muted);
}

/* Cover Image & Overlay Badges */
.article-cover-container {
  position: relative;
  width: 100%;
  border-radius: var(--theme-radius, 12px);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--theme-border);
}
.article-cover-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.article-cover-overlay-badges {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}
.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.cover-badge-cat {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.cover-badge-tag {
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* Contenuto Articolo */
.article-content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--theme-text);
  margin-bottom: 40px;
}
.article-content h2, .article-content h3 {
  margin: 36px 0 16px;
  line-height: 1.3;
}
.article-content h2 { font-size: 26px; }
.article-content h3 { font-size: 21px; }
.article-content p {
  margin-bottom: 22px;
}
.article-content blockquote {
  border-left: 4px solid var(--theme-primary);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--theme-surface, rgba(255, 255, 255, 0.03));
  border-radius: 0 var(--theme-radius, 8px) var(--theme-radius, 8px) 0;
  font-style: italic;
  font-size: 19px;
  color: var(--theme-text);
}
.article-content a {
  color: var(--theme-accent, var(--theme-primary));
  text-decoration: underline;
}

/* Tag / Etichette Fondo Articolo */
.article-tags-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
  margin-bottom: 32px;
}
.tags-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-text-muted);
}
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tag-item {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--theme-surface, rgba(255, 255, 255, 0.04));
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
}

/* Autore Fondo Articolo */
.article-author-footer-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--theme-surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius, 12px);
  margin-bottom: 36px;
}
.author-footer-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-primary);
  flex-shrink: 0;
}
.author-footer-details {
  flex: 1;
}
.author-footer-title {
  font-size: 15px;
  color: var(--theme-text);
  margin-bottom: 4px;
}
.author-footer-bio {
  font-size: 14px;
  color: var(--theme-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Pulsanti Condivisione Social Articolo */
.article-social-share-wrap {
  padding: 28px 24px;
  background: var(--theme-surface, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius, 12px);
  margin-bottom: 44px;
  text-align: center;
}
.social-share-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--theme-text);
}
.article-social-buttons-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.art-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  border: 1px solid transparent;
}
.art-social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.art-social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.art-social-fb { background: #1877f2; }
.art-social-x { background: #000; border-color: rgba(255, 255, 255, 0.2); }
.art-social-li { background: #0a66c2; }
.art-social-wa { background: #25d366; }
.art-social-tg { background: #229ed9; }
.art-social-copy {
  background: var(--theme-primary);
  border: none;
  font-family: inherit;
}

/* Box Figo CTA a Fine Articolo (DIV con CTA) */
.article-cta-box {
  position: relative;
  overflow: hidden;
  padding: 48px 36px;
  border-radius: var(--theme-radius, 16px);
  background: linear-gradient(135deg, var(--theme-surface, #1e293b) 0%, rgba(104, 34, 255, 0.15) 100%);
  border: 1px solid var(--theme-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  margin-bottom: 64px;
}
.article-cta-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--theme-primary) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.article-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-primary);
  margin-bottom: 14px;
}
.article-cta-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--theme-text);
}
.article-cta-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--theme-text-muted);
  margin-bottom: 24px;
  max-width: 640px;
}
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--theme-radius, 10px);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background: var(--theme-primary);
  color: #fff;
  transition: all 0.25s ease;
  border: none;
}
.article-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  filter: brightness(1.1);
}

/* Sezione Articoli Suggeriti in Fondo */
.article-suggested-section {
  padding-top: 40px;
  border-top: 1px solid var(--theme-border);
}
.suggested-header {
  margin-bottom: 28px;
}
.suggested-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--theme-primary);
  margin-bottom: 6px;
}
.suggested-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--theme-text);
}
.suggested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.suggested-card {
  display: flex;
  flex-direction: column;
  background: var(--theme-surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius, 12px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.suggested-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.suggested-card-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  display: block;
  overflow: hidden;
}
.suggested-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.suggested-card:hover .suggested-card-img-wrap img {
  transform: scale(1.05);
}
.suggested-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  backdrop-filter: blur(8px);
}
.suggested-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.suggested-card-meta {
  font-size: 12px;
  color: var(--theme-text-muted);
  margin-bottom: 8px;
}
.suggested-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--theme-text);
}
.suggested-card-title a {
  color: inherit;
  text-decoration: none;
}
.suggested-card-title a:hover {
  color: var(--theme-primary);
}
.suggested-card-excerpt {
  font-size: 13px;
  color: var(--theme-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.suggested-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-primary);
  text-decoration: none;
  margin-top: auto;
}
.suggested-card-link:hover {
  gap: 8px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .article-detail-wrap { padding: 32px 16px 60px; }
  .article-main-title { font-size: 28px; }
  .article-cta-box { padding: 32px 20px; }
  .article-cta-title { font-size: 22px; }
  .suggested-grid { grid-template-columns: 1fr; }
}
