/* ============================================
   HANDOFF DIFFICULTY CARD
   ============================================ */


.handoff-card__header {
    margin-bottom: 32px;
}

.handoff-card__title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.handoff-card__badge--unique {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.handoff-card__subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.handoff-card__body {
    display: grid;
    gap: 24px;
}

/* Score Display */
.handoff-card__score {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

.handoff-score__visual {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.handoff-score__number {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.handoff-score__max {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.7;
}

.handoff-score__label {
    font-size: 18px;
    font-weight: 600;
}

/* Score variants */
.handoff-card__score--easy .handoff-score__number {
    color: #10b981;
}

.handoff-card__score--medium .handoff-score__number {
    color: #fbbf24;
}

.handoff-card__score--difficult .handoff-score__number {
    color: #ef4444;
}

/* Metrics Grid */
.handoff-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.handoff-metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.handoff-metric__icon {
    font-size: 24px;
}

.handoff-metric__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.handoff-metric__value {
    font-size: 16px;
    font-weight: 600;
}

/* Alert Box */
.handoff-alert {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.handoff-alert--easy {
    border-color: #10b981;
}

.handoff-alert--medium {
    border-color: #fbbf24;
}

.handoff-alert--difficult {
    border-color: #ef4444;
}

.handoff-alert__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.handoff-alert__content {
    flex: 1;
}

.handoff-alert__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.handoff-alert__text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   COMMUNITY PAIN POINTS ANALYSIS
   ============================================ */
.community-analysis {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin: 48px 0;
}

.community-analysis__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.community-analysis__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1f2937;
}

.community-analysis__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #6b7280;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pain Points */
.pain-points {
    margin-bottom: 32px;
}

.pain-points__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1f2937;
}

.pain-point {
    background: #f9fafb;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.pain-point__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pain-point__badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.pain-point__frequency {
    padding: 4px 12px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.pain-point__title {
    flex: 1 1 auto;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.pain-point__description {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 16px 0;
}

/* Discussions */
.pain-point__discussions {
    background: white;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.discussions__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 8px;
}

.discussions__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.discussion-item {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.discussion-item:last-child {
    border-bottom: none;
}

.discussion-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.discussion-link:hover {
    text-decoration: underline;
}

.discussion-metric {
    font-size: 13px;
    color: #6b7280;
    margin-left: 8px;
}

/* Resolution */
.pain-point__resolution {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    padding: 16px;
    border-radius: 6px;
}

.resolution__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 8px;
}

.resolution__text {
    font-size: 14px;
    line-height: 1.6;
    color: #047857;
    margin: 0;
}

/* Praise Stats */
.praise-stats {
    margin-bottom: 32px;
}

.praise-stats__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #1f2937;
}

.praise-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.praise-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 8px;
}

.praise-stat__percentage {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.praise-stat__text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

/* Methodology */
.community-methodology {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.methodology-disclosure {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
}

.methodology-disclosure__summary {
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.methodology-disclosure__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.methodology-disclosure__learn-more {
    margin-top: 12px;
}

.methodology-disclosure__learn-more a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

/* ============================================
   PLUGIN COMPATIBILITY (ENHANCED)
   ============================================ */
.plugin-compatibility {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin: 48px 0;
}

.plugin-compatibility__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
}

.plugin-compatibility__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1f2937;
}

/* Stats */
.compatibility-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.stat-item__number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.stat-item__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

/* Plugin Items */
.plugins-list {
    display: grid;
    gap: 16px;
}

.plugin-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.plugin-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.plugin-header__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.plugin-status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.plugin-status--full {
    background: #d1fae5;
    color: #065f46;
}

.plugin-status--partial {
    background: #fed7aa;
    color: #92400e;
}

.plugin-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.plugin-category {
    padding: 4px 8px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.plugin-notes {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

/* Issues Toggle */
.plugin-issues-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plugin-issues-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.issues-count {
    color: #ef4444;
}

.toggle-icon {
    transition: transform 0.2s ease;
}

/* Issues Section */
.plugin-issues {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
}

.issues-header {
    margin-bottom: 16px;
}

.issues-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.issue-item {
    background: white;
    border-left: 4px solid #fbbf24;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.issue-item:last-child {
    margin-bottom: 0;
}

.issue-item--high {
    border-color: #ef4444;
}

.issue-item--medium {
    border-color: #fbbf24;
}

.issue-item--low {
    border-color: #10b981;
}

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

.issue-severity {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.issue-title {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.issue-description {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 12px 0;
}

/* Issue Sources */
.issue-sources {
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.sources-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 8px;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.source-item:last-child {
    border-bottom: none;
}

.source-type {
    padding: 2px 8px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.source-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.source-link:hover {
    text-decoration: underline;
}

.source-metric {
    font-size: 13px;
    color: #6b7280;
}

/* Issue Resolution */
.issue-resolution {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    padding: 12px;
    border-radius: 6px;
}

.resolution-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 8px;
}

.resolution-text {
    font-size: 14px;
    line-height: 1.6;
    color: #047857;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .handoff-card,
    .community-analysis,
    .plugin-compatibility {
        padding: 24px 16px;
    }

    .handoff-card__score {
        flex-direction: column;
        align-items: flex-start;
    }

    .handoff-metrics,
    .praise-stats__grid,
    .compatibility-stats {
        grid-template-columns: 1fr;
    }

    .plugin-header__main {
        flex-direction: column;
        align-items: flex-start;
    }
}