/**
 * ActProof.ai - Professional Presentation Styles
 * Traffic Light Framework, Executive Summary, Action Plans
 */

/* ============================================
   Traffic Light Summary
   ============================================ */

.traffic-light-summary {
    padding: 1.5rem;
}

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tl-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.tl-header h3 svg {
    color: var(--primary-light);
}

.tl-score-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.25rem;
    font-weight: 700;
}

.tl-score-badge.high {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.tl-score-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.tl-score-badge.low {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.tl-fine-exposure {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.tl-fine-exposure .fine-icon {
    font-size: 1.5rem;
}

.tl-fine-exposure .fine-text {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.tl-fine-exposure .fine-text strong {
    color: var(--error);
}

.tl-fine-exposure .fine-count {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.tl-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tl-category {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.tl-category.red {
    border-left: 4px solid var(--error);
}

.tl-category.amber {
    border-left: 4px solid var(--warning);
}

.tl-category.green {
    border-left: 4px solid var(--success);
}

.tl-category.empty {
    opacity: 0.6;
}

.tl-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.tl-light {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.tl-light.red {
    background: var(--error);
    color: var(--error);
}

.tl-light.amber {
    background: var(--warning);
    color: var(--warning);
}

.tl-light.green {
    background: var(--success);
    color: var(--success);
}

.tl-label {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.tl-count {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.tl-items {
    padding: 0.75rem 1rem;
}

.tl-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.tl-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tl-item-title {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.tl-impact {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--error);
    padding: 0.125rem 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}

.tl-article {
    font-size: 0.7rem;
    color: var(--primary-light);
    font-family: var(--font-mono);
}

.tl-empty {
    padding: 0.75rem 1rem;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    font-style: italic;
}

.tl-more {
    padding: 0.5rem 0;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

/* ============================================
   Action Plan
   ============================================ */

.action-plan {
    padding: 1.5rem;
}

.ap-header {
    margin-bottom: 1.5rem;
}

.ap-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.ap-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.ap-meta strong {
    color: var(--text-primary);
}

.ap-meta .risk-high {
    color: var(--error);
}

.ap-meta .risk-limited {
    color: var(--warning);
}

.ap-meta .risk-minimal {
    color: var(--success);
}

.ap-phases {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ap-phase {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.ap-phase.priority-immediate {
    border-left: 4px solid var(--error);
}

.ap-phase.priority-high {
    border-left: 4px solid var(--warning);
}

.ap-phase.priority-ongoing {
    border-left: 4px solid var(--primary);
}

.ap-phase-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.ap-phase-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ap-phase-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ap-phase-priority {
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-immediate .ap-phase-priority {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.priority-high .ap-phase-priority {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.priority-ongoing .ap-phase-priority {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary-light);
}

.ap-phase-timeline {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.ap-items {
    padding: 1rem;
}

.ap-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

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

.ap-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ap-item-id {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: var(--font-mono);
}

.ap-item-title {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.ap-fine-risk {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--error);
    padding: 0.125rem 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}

.ap-article {
    font-size: 0.7rem;
    color: var(--primary-light);
    font-family: var(--font-mono);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.ap-actions {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(124, 58, 237, 0.3);
}

.ap-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ap-action input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--success);
}

.ap-action label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.ap-action input:checked + label {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

/* ============================================
   Next Scan CTA
   ============================================ */

.next-scan-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    margin-top: 2rem;
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    color: var(--primary-light);
}

.cta-content {
    flex: 1;
}

.cta-content strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cta-content p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ============================================
   Article-Mapped Table
   ============================================ */

.article-table {
    padding: 1.5rem;
}

.article-table h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.article-table table {
    width: 100%;
    border-collapse: collapse;
}

.article-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.article-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-table tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

.article-table .article-number {
    font-weight: 600;
    color: var(--primary-light);
    font-family: var(--font-mono);
}

.article-table .status-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.article-table .status-badge.green {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.article-table .status-badge.amber {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.article-table .status-badge.red {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
    .tl-fine-exposure {
        flex-wrap: wrap;
    }

    .tl-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ap-phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .next-scan-cta {
        flex-direction: column;
        text-align: center;
    }

    .article-table {
        overflow-x: auto;
    }

    .article-table table {
        min-width: 500px;
    }
}
