/* Styling for individual debate page */

/* Hero */
.debate-hero {
    background: var(--off-white);
    border-bottom: 3px solid lightgrey;
    padding: 32px 56px 30px;
}

.debate-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 8px;
}

.debate-hero h1 {
    font-family: "Poppins", "Inter", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--heading);
    line-height: 1.3;
    margin: 0;
    max-width: 900px;
}

.debate-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
}

.debate-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--heading);
}

/* Full-text button */
.fulltext_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-mid);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.fulltext_button:hover {
    background: orange;
    transform: translateY(-2px);
}

.fulltext_button svg {
    transition: transform 0.15s ease;
}

.fulltext_button:hover svg {
    transform: translateX(3px);
}

/* Hero stats */
.debate-hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-value {
    font-family: "Inter", sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1;
}

.hero-stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--heading);
}

.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

@media (max-width: 700px) {
    .debate-hero-stats {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .hero-stat-divider {
        display: none;
    }
}

/* Columns */
.debate-spread {
    margin: 8px auto 0;
    padding: 0 56px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
    gap: 24px;
}

.insights-wrapper {
     min-width: 0;
 }

@media (max-width: 900px) {
    .debate-spread {
        grid-template-columns: 1fr;
    }
}

/* Insights */
.insights-wrapper {
    padding: 42px 0 46px;
}

.insights-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--heading);
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 3px solid lightgray;
}

.insights-body {
    display: grid;
    grid-template-columns: 2fr 1px 1fr;
    gap: 28px;
    align-items: stretch;
}

.insights-divider {
    background: var(--green-light);
}

@media (max-width: 800px) {
    .insights-body {
        grid-template-columns: 1fr;
    }

    .insights-divider {
        display: none;
    }
}

#overallprobdist {
    height: 380px;
}

/* Participants */
.participants-section {
    padding: 42px 0 46px;
}

@media (max-width: 900px) {
      .participant-row {
          display: grid;
          grid-template-columns: 36px minmax(0, 1fr) auto;
          grid-template-rows: auto auto;
      }

      .participant-bar-track {
          display: none;
      }
  }

.participants-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.participants-header h3 {
    font-family: "Poppins", "Inter", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
}

.participants-count {
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
}

/* Sentiment filter */
.sentiment-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
    border-color: var(--green-mid);
    color: var(--green-deep);
}

.filter-btn.active {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: #ffffff;
}

.participants-list {
    border-top: 1px solid var(--green-light);
}

.participant-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--green-light);
}

.participant-row.is-hidden {
    display: none;
}

.participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.participant-avatar-fallback {
    background: var(--green-deep);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-main {
    flex: 1;
    min-width: 0;
}

.participant-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.participant-name:hover {
    color: orange;
}

.participant-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Stance pills */
.stance-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.stance-negative {
    background: var(--red-light);
    color: var(--red);
}

.stance-neutral {
    background: var(--green-light);
    color: var(--text-muted);
}

.stance-positive {
    background: var(--green-light);
    color: var(--green-deep);
}

.participant-bar-track {
    width: 90px;
    height: 5px;
    background: var(--green-light);
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

.participant-bar-fill {
    height: 100%;
    background: var(--green-deep);
    border-radius: 999px;
}

.participant-score {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    width: 34px;
    text-align: right;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .participant-row {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
    }

    .participant-bar-track {
        display: none;
    }
}