/* page-main.css - Main Page & Review Cards */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(254,184,12,0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 860px;
}

.hero-title {
  color: #FFFFFF;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--brand-yellow);
}

.hero-subtitle {
  color: #94A3B8;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: #E2E8F0;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--brand-yellow);
  color: var(--text-main);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Ranking Table & Cards */
.top-ranking-section {
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

.ranking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ranking-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

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

.ranking-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 60px 180px 1fr 220px;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.ranking-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--cta-green);
}

.ranking-card.top-1 {
  border: 2px solid var(--brand-yellow);
  background: linear-gradient(to right, #FFFDF5, #FFFFFF);
}

.ranking-card.top-1::before {
  content: '🏆 N°1 Meilleur Choix';
  position: absolute;
  top: -12px;
  left: 20px;
  background-color: var(--brand-yellow);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
  text-transform: uppercase;
}

.rank-number {
  width: 48px;
  height: 48px;
  background-color: var(--bg-alt);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
}

.top-1 .rank-number {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow-hover);
}

.bookmaker-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.bookmaker-logo-box {
  width: 150px;
  height: 60px;
  background-color: #0F172A;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.bonus-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bonus-headline {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.bonus-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-tag {
  background-color: var(--bg-light-green);
  color: var(--cta-green);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.action-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.review-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.review-link:hover {
  color: var(--cta-green);
}

/* Responsive Ranking Table */
@media (max-width: 920px) {
  .ranking-card {
    grid-template-columns: 50px 140px 1fr;
    grid-template-areas:
      "num logo bonus"
      "cta cta cta";
  }
  .rank-number { grid-area: num; }
  .bookmaker-logo-wrap { grid-area: logo; }
  .bonus-info-wrap { grid-area: bonus; }
  .action-wrap { grid-area: cta; margin-top: 10px; }
}

@media (max-width: 580px) {
  .ranking-card {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "num logo"
      "bonus bonus"
      "cta cta";
    padding: 16px;
    gap: 12px;
  }
}

/* Content Article Styling */
.content-box {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.content-box a {
  color: var(--cta-green);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.content-box a:hover {
  color: var(--cta-green-hover);
}

/* Keep CTA labels readable inside content boxes. */
.content-box a.btn-cta,
.content-box a.btn-cta:hover {
  color: #FFFFFF;
  text-decoration: none;
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.info-card {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  border-left: 4px solid var(--brand-yellow);
}

.info-card.green-left {
  border-left-color: var(--cta-green);
}

.info-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

/* Author Box & Badges */
.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px 6px 8px;
  border-radius: 30px;
  font-size: 0.9rem;
  color: #E2E8F0;
  margin-bottom: 16px;
}

.author-avatar, .author-badge-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-yellow);
  flex-shrink: 0;
}

.author-profile-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFDF5 100%);
  border: 1px solid #FFE5A3;
  border-left: 5px solid var(--brand-yellow);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.author-profile-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.author-img-wrap {
  position: relative;
  flex-shrink: 0;
}

.author-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFFFFF;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  background-color: var(--brand-yellow);
  display: block;
}

.author-badge-check {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--cta-green);
  color: #FFFFFF;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.author-info-content {
  flex: 1;
}

.author-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.author-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.author-role {
  display: inline-block;
  background-color: var(--bg-light-green);
  color: var(--cta-green);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #B6E8D1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.author-bio {
  font-size: 1rem;
  color: #334155;
  line-height: 1.65;
  margin: 12px 0 16px 0;
}

.author-trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 229, 163, 0.6);
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1E293B;
}

.author-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cta-green);
  font-weight: 700;
}

.author-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cta-green);
  transition: all 0.2s ease;
  text-decoration: none;
}

.author-link:hover {
  color: var(--cta-green-hover);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .author-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }
  .author-header-meta {
    justify-content: center;
    flex-direction: column;
    gap: 6px;
  }
  .author-trust-line {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }
  .author-footer-actions {
    justify-content: center;
  }
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  color: var(--cta-green);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 20px 16px;
  display: none;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Bonus Table Styling */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.bonus-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #FFFFFF;
  text-align: left;
  font-size: 0.95rem;
  min-width: 600px;
}

.bonus-table th {
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bonus-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.bonus-table tr:last-child td {
  border-bottom: none;
}

.bonus-table tr.top-row {
  background-color: #FFFDF5;
}

.table-bookmaker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-bookmaker strong {
  font-size: 1.1rem;
  color: var(--text-main);
}

.badge-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #FFFFFF;
  flex-shrink: 0;
}

.badge-rank.gold {
  background-color: #FEB80C;
  color: #171A1F;
}

.badge-rank.silver {
  background-color: #94A3B8;
}

.badge-rank.bronze {
  background-color: #D97706;
}

.stars {
  color: #FEB80C;
  font-size: 0.85rem;
  margin-left: 4px;
}

.table-bonus-title {
  font-weight: 800;
  color: var(--cta-green);
  font-size: 1.05rem;
}

.table-bonus-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #94A3B8;
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: #CBD5E1;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-yellow);
}

.breadcrumbs span {
  color: var(--brand-yellow);
  font-weight: 600;
}

/* Promo Code Box */
.promo-box {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 2px dashed var(--brand-yellow);
  border-radius: var(--radius-md);
  padding: 24px;
  color: #FFFFFF;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.promo-code-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-yellow);
  margin-bottom: 4px;
}

.promo-code-value {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: rgba(254, 184, 12, 0.15);
  border: 1px solid var(--brand-yellow);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #FFFFFF;
}

/* Quick Facts Table */
.quick-facts-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.quick-facts-table tr:nth-child(even) {
  background-color: var(--bg-alt);
}

.quick-facts-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.quick-facts-table td:first-child {
  font-weight: 700;
  color: var(--text-main);
  width: 40%;
}

/* Step-by-Step Guide */
.step-guide {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.step-card {
  display: flex;
  gap: 20px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--cta-green);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.step-content p {
  margin-bottom: 0;
  color: var(--text-muted);
}
