/**
 * Heurilens Admin Styles
 * Premium Finding Cards Version
 */

/* Variables */
:root {
    --hl-primary: #6366f1;
    --hl-success: #22c55e;
    --hl-warning: #f59e0b;
    --hl-error: #ef4444;
    --hl-text: #1f2937;
    --hl-text-light: #6b7280;
    --hl-bg: #f9fafb;
    --hl-border: #e5e7eb;
    --hl-card-bg: #ffffff;
}

/* Cards */
.heurilens-card {
    background: var(--hl-card-bg);
    border: 1px solid var(--hl-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* License Status */
.heurilens-license-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

.heurilens-license-status.status-active {
    background: #dcfce7;
    color: #166534;
}

.heurilens-license-status.status-inactive {
    background: #fef3c7;
    color: #92400e;
}

/* Welcome Header */
.heurilens-welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid var(--hl-border);
}

.heurilens-welcome-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: var(--hl-text);
}

.welcome-desc {
    margin: 0;
    font-size: 15px;
    color: var(--hl-text-light);
    max-width: 500px;
}

.version-badge {
    background: var(--hl-primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* License Card */
.heurilens-license-card h2 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--hl-text);
}

.heurilens-license-form-wrap {
    margin-bottom: 20px;
}

.license-input-group {
    margin-bottom: 16px;
}

.heurilens-license-input {
    width: 100%;
    max-width: 450px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    border: 1px solid var(--hl-border);
    border-radius: 8px;
    background: #fafafa;
}

.heurilens-license-input:focus {
    outline: none;
    border-color: var(--hl-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.license-info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--hl-text-light);
}

.license-info-note .dashicons {
    color: var(--hl-text-light);
    margin-top: 2px;
}

.license-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.license-actions .button-primary {
    background: #f97316;
    border-color: #f97316;
    padding: 8px 20px;
    font-size: 14px;
}

.license-actions .button-primary:hover {
    background: #ea580c;
    border-color: #ea580c;
}

/* Active License State */
.heurilens-license-active {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 20px;
}

.heurilens-license-active .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #22c55e;
}

.heurilens-license-active .license-info strong {
    font-size: 16px;
    color: #166534;
}

.heurilens-license-active p {
    margin: 4px 0 0;
    color: #166534;
    font-size: 14px;
}

/* Plan Badges */
.heurilens-plan-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.heurilens-plan-badge.plan-free {
    background: #f3f4f6;
    color: #6b7280;
}

.heurilens-plan-badge.plan-personal {
    background: #dbeafe;
    color: #1d4ed8;
}

.heurilens-plan-badge.plan-professional {
    background: #ede9fe;
    color: #7c3aed;
}

.heurilens-plan-badge.plan-agency {
    background: #fef3c7;
    color: #92400e;
}

/* Free Plan Notice */
.heurilens-free-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    margin-top: 20px;
}

.heurilens-free-notice .dashicons {
    color: #f97316;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.heurilens-free-notice strong {
    color: var(--hl-text);
    font-size: 14px;
}

.heurilens-free-notice p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--hl-text-light);
}

/* API Connection Notice */
.heurilens-api-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    margin-top: 16px;
}

.heurilens-api-notice .dashicons {
    color: #0284c7;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.heurilens-api-notice strong {
    color: var(--hl-text);
    font-size: 14px;
}

.heurilens-api-notice p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--hl-text-light);
}

.heurilens-legal-links {
    font-size: 12px !important;
}

.heurilens-legal-links a {
    color: var(--hl-primary);
    text-decoration: underline;
}

/* Toolbar */
.heurilens-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.heurilens-toolbar select {
    min-width: 150px;
}

/* Table */
.heurilens-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.heurilens-table th,
.heurilens-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--hl-border);
}

.heurilens-table th {
    background: var(--hl-bg);
    font-weight: 600;
}

.heurilens-table .column-score {
    text-align: center;
}

/* Score Badge */
.heurilens-score {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.heurilens-score.score-high {
    background: #dcfce7;
    color: #166534;
}

.heurilens-score.score-medium {
    background: #fef3c7;
    color: #92400e;
}

.heurilens-score.score-low {
    background: #fee2e2;
    color: #991b1b;
}

.heurilens-score.score-none {
    background: #f3f4f6;
    color: #6b7280;
}

/* Loading */
.heurilens-loading {
    text-align: center;
    padding: 40px !important;
    color: var(--hl-text-light);
}

/* Analyze Button Spinner */
.heurilens-analyze-btn.analyzing {
    pointer-events: none;
    opacity: 0.8;
}

.heurilens-spinner-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--hl-primary);
    border-radius: 50%;
    animation: hl-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes hl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal */
.heurilens-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    overflow-y: auto;
    padding: 40px 20px;
}

.heurilens-modal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--hl-card-bg);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: hl-slide-up 0.3s ease;
    padding: 30px;
}

@keyframes hl-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heurilens-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.heurilens-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--hl-text);
}

.heurilens-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--hl-text-light);
    padding: 0;
    line-height: 1;
    margin-left: auto;
    order: 2;
}

.heurilens-modal-close:hover {
    color: var(--hl-text);
}

.heurilens-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Intent Badge */
.heurilens-intent-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 16px;
}

.heurilens-intent-badge .intent-label {
    color: var(--hl-text-light);
}

.heurilens-intent-badge .intent-value {
    font-weight: 600;
    color: #7c3aed;
}

/* Result Header with Score */
.heurilens-result-header {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    margin-bottom: 24px;
}

.heurilens-main-score {
    margin-bottom: 20px;
}

.heurilens-result-score {
    font-size: 48px;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    display: inline-block;
    padding: 0;
}

.heurilens-result-header p {
    margin: 8px 0 0;
    color: var(--hl-text-light);
    font-size: 14px;
}

.heurilens-score-meaning {
    font-style: italic;
    color: var(--hl-text-light);
    margin-top: 16px !important;
    font-size: 14px;
}

/* Score Breakdown (4 buckets) */
.heurilens-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.heurilens-bucket {
    text-align: center;
}

.bucket-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.bucket-fill {
    height: 100%;
    width: var(--score);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.bucket-fill.score-high {
    background: var(--hl-success);
}

.bucket-fill.score-medium {
    background: var(--hl-warning);
}

.bucket-fill.score-low {
    background: var(--hl-error);
}

.bucket-label {
    display: block;
    font-size: 11px;
    color: var(--hl-text-light);
    margin-bottom: 2px;
}

.bucket-score {
    font-weight: 600;
    font-size: 14px;
    color: var(--hl-text);
}

/* Top Risks - colored backgrounds */
.heurilens-top-risks {
    margin-bottom: 24px;
}

.heurilens-risk {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.heurilens-risk:last-child {
    margin-bottom: 0;
}

.heurilens-risk .risk-content {
    flex: 1;
    line-height: 1.5;
}

/* Risk row backgrounds based on severity - 40% opacity */
.heurilens-risk.risk-high {
    background: rgba(254, 226, 226, 0.4);
}

.heurilens-risk.risk-medium {
    background: rgba(254, 243, 199, 0.4);
}

.heurilens-risk.risk-low {
    background: rgba(220, 252, 231, 0.4);
}

.risk-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 8px;
}

.risk-badge.risk-high {
    background: #fee2e2;
    color: #991b1b;
}

.risk-badge.risk-medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-badge.risk-low {
    background: #dcfce7;
    color: #166534;
}

/* Top Risks title */
.heurilens-top-risks h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hl-text);
}

/* Bucket Section - Static Header */
.heurilens-buckets {
    margin-top: 24px;
}

.bucket-section {
    margin-bottom: 28px;
}

.bucket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    margin-bottom: 12px;
}

.bucket-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hl-text);
}

/* Bucket score badge with status */
.bucket-score-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.bucket-score-badge.status-good {
    background: #dcfce7;
    color: #166534;
}

.bucket-score-badge.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.bucket-score-badge.status-fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Grouped accordion container */
.bucket-heuristics-group {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

/* Finding Cards */
.heurilens-heuristics h3 {
    margin: 0 0 16px;
    font-size: 15px;
}

.heurilens-finding-card {
    border: 1px solid var(--hl-border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.heurilens-finding-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.finding-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--hl-bg);
    border-bottom: 1px solid var(--hl-border);
}

.finding-bucket {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e0e7ff;
    color: #4338ca;
}

.bucket-action {
    background: #fef3c7;
    color: #92400e;
}

.bucket-trust {
    background: #dbeafe;
    color: #1d4ed8;
}

.bucket-experience {
    background: #d1fae5;
    color: #065f46;
}

.finding-name {
    flex: 1;
    font-weight: 600;
    color: var(--hl-text);
}

.finding-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.finding-status.status-pass {
    background: #dcfce7;
    color: #166534;
}

.finding-status.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.finding-status.status-fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Finding Sections */
.finding-section {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.finding-section:last-child {
    border-bottom: none;
}

.finding-section h4 {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--hl-text-light);
    font-weight: 600;
}

.finding-section p {
    margin: 0;
    font-size: 13px;
    color: var(--hl-text);
    line-height: 1.5;
}

/* Where List */
.finding-where {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.finding-where li {
    padding: 6px 0;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.where-value {
    background: #1f2937;
    color: #f9fafb;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
}

.where-note {
    color: var(--hl-text-light);
}

/* Fix Steps */
.finding-fix {
    margin: 0;
    padding-left: 20px;
}

.finding-fix li {
    font-size: 13px;
    padding: 4px 0;
    color: var(--hl-text);
}

/* Example */
.finding-example {
    background: #f9fafb;
}

.example-bad,
.example-good {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.example-bad:last-child,
.example-good:last-child {
    margin-bottom: 0;
}

.example-bad {
    background: #fee2e2;
}

.example-bad span {
    color: #991b1b;
    font-weight: 600;
}

.example-good {
    background: #dcfce7;
}

.example-good span {
    color: #166534;
    font-weight: 600;
}

.example-bad code,
.example-good code {
    font-family: monospace;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    word-break: break-all;
}

/* Locked Sections */
.finding-locked {
    background: linear-gradient(135deg, #fafafa 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 8px;
    margin: 8px 0;
}

.finding-locked h4 {
    color: #78716c;
}

.locked-message {
    color: #78716c;
    font-size: 12px;
}

.locked-message a {
    color: #f97316;
    font-weight: 600;
}

.locked-message a:hover {
    color: #ea580c;
}

/* Upgrade Hint (old class) */
.heurilens-upgrade-hint {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-top: 24px;
}

.heurilens-upgrade-hint p {
    margin: 0;
    font-size: 13px;
    color: #78716c;
}

/* Responsive */
@media (max-width: 768px) {
    .heurilens-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .finding-header {
        flex-wrap: wrap;
    }
}

/* Accordion Styles */
.heurilens-accordion {
    margin-top: 24px;
}

.accordion-bucket {
    border: 1px solid var(--hl-border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-bucket-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--hl-bg);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.accordion-bucket-header:hover {
    background: #e5e7eb;
}

.accordion-icon {
    font-size: 10px;
    color: var(--hl-text-light);
    width: 14px;
}

.accordion-bucket-title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: var(--hl-text);
}

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

.accordion-bucket-content {
    padding: 0;
    border-top: 1px solid var(--hl-border);
}

/* Nested Heuristic Accordion - Items inside group */
.accordion-heuristic {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.accordion-heuristic:last-child {
    border-bottom: none;
}

.accordion-heuristic-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
    background: #fafafa;
}

.accordion-heuristic-header:hover {
    background: #f3f4f6;
}

.accordion-heuristic-header .accordion-icon {
    font-size: 9px;
}

.heuristic-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    color: var(--hl-text);
}

/* Heuristic score - simple text, no badge */
.heuristic-score {
    font-size: 13px;
    font-weight: 500;
    color: var(--hl-text);
}

.heuristic-status.status-pass {
    background: #dcfce7;
    color: #166534;
}

.heuristic-status.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.heuristic-status.status-fail {
    background: #fee2e2;
    color: #991b1b;
}

.accordion-heuristic-content {
    padding: 0 20px 16px 44px;
}

/* Where Badges */
.where-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.where-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
}

.where-snippet {
    display: block;
    background: #1f2937;
    color: #f9fafb;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    margin-bottom: 6px;
    word-break: break-all;
    max-width: 100%;
    overflow-x: auto;
}

.where-note {
    display: block;
    color: var(--hl-text-light);
    font-size: 12px;
    margin-top: 4px;
}

/* Example Row */
.example-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Bucket bar style */
.heurilens-bucket-bar {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bucket-progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

.bucket-progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 4px;
}

.bucket-progress-fill.score-high {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.bucket-progress-fill.score-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.bucket-progress-fill.score-low {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.bucket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Status colors for bucket header */
.status-pass {
    background: #dcfce7;
    color: #166534;
}

.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-fail {
    background: #fee2e2;
    color: #991b1b;
}

/* Expanded state indicator - no colors */
.accordion-bucket.expanded>.accordion-bucket-header {
    background: #f9fafb;
}

.accordion-heuristic.expanded>.accordion-heuristic-header {
    background: #fafafa;
}

/* Page Info Header */
.heurilens-page-info {
    margin-bottom: 20px;
}

.page-info-row {
    margin-bottom: 6px;
    font-size: 14px;
}

.page-info-label {
    color: var(--hl-text-light);
}

.page-info-value {
    color: var(--hl-text);
    font-weight: 500;
}

/* Score Section - Two Columns */
.heurilens-score-section {
    display: flex;
    gap: 24px;
    padding: 20px;
    border: 1px solid rgba(30, 13, 1, 0.12);
    background-color: rgb(252, 252, 252);
    border-radius: 12px;
    margin-bottom: 24px;
}

.score-left {
    flex: 0 0 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.total-score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.total-score.score-high {
    color: #22c55e;
}

.total-score.score-medium {
    color: #f59e0b;
}

.total-score.score-low {
    color: #ef4444;
}

.score-label {
    font-size: 13px;
    color: var(--hl-text-light);
}

.score-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.score-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    flex: 0 0 140px;
    font-size: 13px;
    color: var(--hl-text);
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-fill.score-high {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.bar-fill.score-medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.bar-fill.score-low {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.bar-value {
    flex: 0 0 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hl-text);
    text-align: right;
}

/* Typography Fixes */
.finding-section h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--hl-text);
    font-weight: 600;
}

.finding-section p {
    margin: 0;
    font-size: 13px;
    color: var(--hl-text);
    line-height: 1.6;
}

.finding-fix li {
    font-size: 13px;
    color: var(--hl-text);
}

/* Fix Container */
.fix-container {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px !important;
}

.fix-container h4 {
    color: #166534;
}

/* Accordion bucket header - clean style */
.accordion-bucket-header {
    border-bottom: 1px solid var(--hl-border);
}

.accordion-bucket-title {
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .heurilens-score-section {
        flex-direction: column;
    }

    .score-left {
        flex: none;
    }

    .bar-label {
        flex: 0 0 100px;
        font-size: 12px;
    }
}

/* Plan tab styles removed - no longer used */

/* Locked content indicators */
.locked-inline {
    color: #9ca3af;
    font-size: 12px;
    font-style: italic;
}

.locked-count {
    font-size: 12px;
    color: #9ca3af;
    font-weight: normal;
}

/* Confidence Badge */
.confidence-section {
    padding: 8px 16px !important;
    border-bottom: none !important;
}

.confidence-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.confidence-badge.confidence-high {
    background: #dcfce7;
    color: #166534;
}

.confidence-badge.confidence-medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-badge.confidence-low {
    background: #fee2e2;
    color: #991b1b;
}

.confidence-badge.confidence-locked {
    background: #f3f4f6;
    color: #9ca3af;
}

/* Example Section */
.example-section {
    background: #fafafa;
}

.example-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-label {
    font-weight: 600;
    margin-right: 6px;
}

/* Upgrade Hint */
.upgrade-hint {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 24px;
}

.upgrade-hint p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #78716c;
}

.upgrade-hint .button {
    background: #f97316;
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.upgrade-hint .button:hover {
    background: #ea580c;
}