/* 40aWeek - components/cards - Extrait depuis style.css */

.no-winner-block,
.winner-block {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.no-winner-block img,
.no-winner-block i,
.winner-block img {
  max-width: 100%;
  height: auto;
}

.winner-block {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(99, 102, 241, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.winner-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.winner-block:hover {
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.6);
}

.winner-block-title {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 35px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.winner-block-content {
  display: flex;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.winner-block-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.winner-block-text {
  flex: 1;
  text-align: left;
}

.winner-block-text h3 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #111;
  line-height: 1.2;
}

.winner-block-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #4b5563;
}

.no-winner-block {
  border: 3px dashed var(--color-primary-light);
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
}

.vote-article {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #E8E4DF);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 260px;
}

.vote-article:hover {
  border-color: rgba(200, 73, 13, 0.3);
  box-shadow: 0 8px 24px rgba(200, 73, 13, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- FEED PROMO / EDITORIAL INFO CARDS --- */
.votes-list .vote-article.info-card-promo,
.info-card-promo {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  min-height: auto;
  max-height: none;
  border-radius: 12px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #E8E4DF);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  margin: 16px 0;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.votes-list .vote-article.info-card-promo:hover,
.info-card-promo:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 73, 13, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.card-promo-default {
  background: var(--bg-card, #ffffff);
  border-left: 4px solid var(--color-primary, #C8490D);
}

.card-promo-gold {
  background: linear-gradient(135deg, rgba(200, 73, 13, 0.04) 0%, var(--bg-card, #ffffff) 100%);
  border-left: 4px solid #D97706;
  border-color: rgba(217, 119, 6, 0.25);
}

.promo-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.card-promo-default .promo-badge-icon {
  background: rgba(200, 73, 13, 0.08);
  color: var(--color-primary, #C8490D);
  border: 1px solid rgba(200, 73, 13, 0.15);
}

.card-promo-gold .promo-badge-icon {
  background: rgba(217, 119, 6, 0.1);
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.promo-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary, #C8490D);
  display: inline-block;
  line-height: 1;
  margin-bottom: 2px;
}

.card-promo-gold .promo-tag {
  color: #D97706;
}

.promo-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-color, #111827);
  margin: 0;
  line-height: 1.2;
}

.promo-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-secondary, #4B5563);
  margin: 0;
  line-height: 1.45;
}

.promo-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.card-promo-default .promo-btn {
  background: #ffffff;
  color: var(--text-color, #111827);
  border: 1px solid var(--border-color, #E8E4DF);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-promo-default .promo-btn:hover {
  background: var(--color-primary, #C8490D);
  color: #ffffff;
  border-color: var(--color-primary, #C8490D);
  transform: translateX(2px);
}

.card-promo-gold .promo-btn {
  background: #D97706;
  color: #ffffff;
  border: 1px solid #D97706;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.2);
}

.card-promo-gold .promo-btn:hover {
  background: #B45309;
  border-color: #B45309;
  transform: translateX(2px);
}

.votes-list .vote-article {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 240px;
  max-height: 800px;
  margin: 12px 0;
  align-items: stretch;
}

.votes-list .article-carousel {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  border-right: 1px solid var(--border-color-light, #F0EBE5);
  background-color: var(--bg-subtle, #F5F0EA);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0);
  overflow: hidden;
  position: relative;
}

.votes-list .carousel-slide {
  position: relative;
  min-width: 100%;
  width: 100%;
  height: 100%;
  background-color: var(--bg-subtle, #F5F0EA);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.votes-list .carousel-slide .carousel-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  min-width: 0;
  display: block;
}

.votes-list .carousel-track {
  transition: transform 0.4s ease;
  will-change: transform;
}

.votes-list .carousel-prev,
.votes-list .carousel-next {
  display: none;
}

.votes-list .article-content {
  grid-column: 2;
  grid-row: 1;
  padding: 18px 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.votes-list .article-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  color: var(--text-color, #1C1C1C);
}

.votes-list .article-description {
  font-size: 0.9rem;
  color: var(--text-secondary, #6B6B6B);
  line-height: 1.6;
  margin: 4px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 15;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.votes-list .vote-buttons {
  grid-column: 2;
  grid-row: 2;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 52px;
  background: transparent;
}

.vote-buttons-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.votes-list .btn-soutien {
  padding: 0 16px;
  font-size: 0.88rem;
}

.votes-list .vote-article--no-image {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 1fr auto;
  min-height: 240px;
  max-height: 800px;
}

.votes-list .vote-article--no-image .article-content {
  grid-column: 1 / span 2;
  padding: 28px 30px 12px;
}

.votes-list .vote-article--no-image .article-title {
  font-size: 1.4rem;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.votes-list .vote-article--no-image .article-description {
  -webkit-line-clamp: 18;
}

.votes-list .vote-article--no-image .vote-buttons {
  grid-column: 2;
  justify-content: center;
  padding: 12px 22px;
}

.empty-state-card {
  text-align: center;
  padding: 40px 36px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}

.empty-state-icon {
  font-size: 4rem;
  background: -webkit-linear-gradient(45deg, var(--color-primary), #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.empty-state-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.empty-state-card p {
  color: var(--text-secondary, #595959);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.skeleton-winner-hero .winner-hero-media {
  border-radius: 12px;
}

.winner-hero-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  border-color: var(--border-color);
}

.winner-hero-card:hover {
  border-color: var(--color-primary-light, #cbd5e1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.winner-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.winner-hero-info {
  flex: 1;
  min-width: 260px;
}

.winner-hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}

.winner-hero-badge .badge-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  border: 1px solid #fff;
  padding: 4px 10px;
  border-radius: 6px;
  border-color: #F5C9AC;
}

.winner-hero-title {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-color, #111827);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
  font-family: var(--font-serif);
}

.winner-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.winner-hero-meta a {
  color: var(--text-color, #111827);
  text-decoration: none;
}

.winner-hero-meta a:hover {
  text-decoration: underline;
}

.winner-hero-meta .meta-dot {
  color: #E8E4DF;
}

.winner-hero-action {
  display: flex;
  align-items: center;
  align-self: flex-start;
}

.winner-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #E8E4DF;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.winner-hero-btn:hover {
  background: var(--bg-subtle, #F5F0EA);
  border-color: var(--border-color, #E8E4DF);
  color: #000000;
}

.winner-hero-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  background: var(--bg-subtle, #F5F0EA);
  display: flex;
  align-items: center;
  justify-content: center;
}

.winner-hero-media img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.empty-state-week-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.empty-state-week-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--color-primary);
}

.empty-state-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--text-color);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.empty-state-desc {
  font-size: 0.95rem;
  color: var(--text-secondary, #374151);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 28px;
}

.empty-state-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--bg-subtle);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.empty-state-stat {
  flex: 1;
  text-align: center;
}

.empty-state-stat-value {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--text-color);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.empty-state-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary, #4b5563);
  line-height: 1.3;
  font-weight: 500;
}

.empty-state-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
  flex-shrink: 0;
}

.empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.empty-state-cta:hover {
  background: var(--color-primary-dark);
}

/* --- Redistribue depuis misc.css --- */

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-width: 100%;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.winner-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.winner-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.spotlight-card {
  display: flex;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-direction: column;
  margin-bottom: 40px;
  transition: transform 0.3s ease;
}

.spotlight-image {
  width: 100%;
  min-width: 45%;
  object-fit: cover;
  height: 250px;
  display: block;
}

.spotlight-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.spotlight-week-id {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.spotlight-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 15px;
  line-height: 1.2;
}

.spotlight-meta {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 25px;
}

.winner-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
}

.winner-card p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
  margin: 5px 0 15px 0;
  flex-grow: 1;
}

.winner-card-meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

.badge {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.2s;
}

.badge i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.badge h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.badge p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.3;
}

.badge.locked {
  background: #fdfdfd;
  border-color: #eee;
  filter: grayscale(80%);
  opacity: 0.7;
}

.badge.locked i {
  color: #bbb;
}

@keyframes shimmer {
  0% {
    background-position: -800px 0;
  }
  100% {
    background-position: 800px 0;
  }
}

.skeleton-anim {
  animation: shimmer 1.8s infinite linear;
  background: linear-gradient(to right, #F4F1EA 4%, #E8E4DF 25%, #F4F1EA 36%);
  background-size: 800px 100%;
}

.skeleton-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #E8E4DF);
  border-radius: var(--radius-card, 12px);
  overflow: hidden;
  margin-bottom: 20px;
  padding: 20px;
}

.skeleton-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skeleton-image {
  height: 220px;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: #E8E4DF;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #E8E4DF);
}

.skeleton-winner {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #E8E4DF);
  border-radius: var(--radius-card, 12px);
  align-items: center;
  margin-bottom: 30px;
}

.skeleton-winner-img {
  width: 400px;
  height: 280px;
  border-radius: 8px;
  flex-shrink: 0;
}

.skeleton-winner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skeleton-article-detail {
  padding: 24px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #E8E4DF);
  border-radius: var(--radius-card, 12px);
  margin-bottom: 30px;
}

.badge-certified-custom {
  display: inline;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1.1em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  margin-left: 5px;
  vertical-align: baseline;
  cursor: help;
  user-select: none;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  width: auto;
  height: auto;
  border-radius: 0;
}

.badge-certified-custom:hover {
  color: var(--color-primary-dark);
}

.badge-card-certified {
  background-color: #f5f7ff;
  border-color: var(--color-primary-light);
  order: -1;
}

.badge-winner-icon {
  color: #ffd700;
  margin-left: 5px;
  font-size: 0.9em;
  vertical-align: baseline;
  cursor: help;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.badge-winner-icon:hover {
  transition: transform 0.2s;
}

.badge-winner-inline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8B2E06;
  background: #FDF0E8;
  border: 1px solid rgba(200, 73, 13, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.tag {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 3px;
  width: 110px;
}

.tag-new {
  background: #dbeafe;
  color: #1d4ed8;
}

.tag-improved {
  background: #fef3c7;
  color: #d97706;
}

.tag-fixed {
  background: var(--bg-subtle, #F5F0EA);
  color: #4b5563;
}

.spotlight-content .btn {
  align-self: flex-start;
}

.badge-icon-item {
  width: auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--bg-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.badge-icon-item:hover {
  z-index: 100;
}

.badge-icon-item.badge-card-certified {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  border: none;
}

.badge-icon-item.badge-card-certified .profile-badge-40 {
  font-weight: 800;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
}

/* --- ARTICLE HERO BANNER --- */
.article-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  background-color: #111;
  border-radius: 16px;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.article-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 30px 24px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

.article-hero .hero-content h1,
.article-hero .hero-content .hero-title {
  color: #ffffff !important;
  font-family: var(--font-serif, 'DM Serif Display', serif);
  font-weight: 400;
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.article-hero .hero-content p {
  color: rgba(255, 255, 255, 0.92);
}

.hero-category {
  display: inline-block;
  background: var(--color-primary, #C8490D);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.profile-main-card.author-profile-card {
  margin-top: 48px;
  background: #FDFBF9;
  border: 1px solid #DDD6CD;
  border-radius: 16px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(42, 33, 29, 0.04);
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

.profile-main-card.author-profile-card .badge-icon-item[data-tooltip]:hover::after {
  left: 0;
  transform: translateY(-5px);
  white-space: normal;
  width: max-content;
  max-width: 250px;
}

.profile-main-card.author-profile-card .badge-icon-item[data-tooltip]:hover::before {
  left: 15px;
  transform: translateY(-1px);
}

.profile-card-header-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.profile-avatar-wrapper {
  flex-shrink: 0;
  margin-top: 4px;
}

.generated-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: 3px solid #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-wrapper .generated-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border: 3px solid #ffffff;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-initials {
  font-family: var(--font-serif, 'DM Serif Display', serif);
  font-size: 2.5rem;
  color: #ffffff;
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.profile-info-content {
  flex: 1;
}

.profile-author-name {
  font-family: var(--font-serif, 'DM Serif Display', serif);
  font-size: 1.8rem;
  margin: 0 0 6px 0;
  color: var(--text-color, #2A211D);
}

.profile-author-bio {
  color: var(--text-secondary, #6B6B6B);
  font-size: 0.95rem;
  margin: 8px 0 12px 0;
  line-height: 1.5;
}

.profile-socials-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.profile-impact-text {
  color: #7A6C63;
  font-size: 0.9rem;
  margin: 0 0 10px;
}

.profile-impact-text .karma-num,
.profile-impact-text .percent-num {
  font-weight: 700;
  color: #2A211D;
}

.profile-main-card.author-profile-card .profile-divider {
  border: none;
  border-top: 1px solid #EAE4DD;
  margin: 18px 0;
}

.badges-compact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
}

.badge-icon-item.locked {
  opacity: 0.5;
  filter: grayscale(1);
}

/* Dark Mode support for Author Profile Card */
body.dark-mode .profile-main-card.author-profile-card {
  background: #292524;
  border-color: rgba(232, 228, 223, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .profile-main-card.author-profile-card .profile-info h2,
body.dark-mode .profile-main-card.author-profile-card .profile-author-name {
  color: #E8E4DF;
}

body.dark-mode .profile-main-card.author-profile-card .profile-impact-text {
  color: #A8A29E;
}

body.dark-mode .profile-main-card.author-profile-card .profile-impact-text .karma-num,
body.dark-mode .profile-main-card.author-profile-card .profile-impact-text .percent-num {
  color: #E8E4DF;
}

body.dark-mode .profile-main-card.author-profile-card .profile-divider {
  border-top-color: rgba(232, 228, 223, 0.12);
}

body.dark-mode .profile-avatar-wrapper .generated-avatar {
  border-color: #292524;
}

/* --- ARTICLE SECTION IMAGES (SINGLE & MULTI) --- */
.article-section-images {
  width: 100%;
  margin: 20px 0;
}

.article-section-images.single-image,
.article-section-images:not(.multi-images) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.article-section-images.single-image img,
.article-section-images:not(.multi-images) img {
  max-width: 520px;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin: 14px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: block;
}

.article-section-images.multi-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
  width: 100%;
}

.article-section-images.multi-images img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}



