/**
 * CRO Audit Plugin Enhanced Report Display CSS
 */

/* Report Container */
.cro-audit-report-container {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Summary Container */
.cro-audit-report-summary-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Overall Score */
.cro-audit-report-overall-score {
    text-align: center;
    margin-bottom: 2rem;
}

.cro-audit-report-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cro-audit-report-score-circle.score-low {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.cro-audit-report-score-circle.score-medium {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

.cro-audit-report-score-circle.score-high {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.cro-audit-report-score-number {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

/* Summary */
.cro-audit-report-summary {
    margin-bottom: 2rem;
}

.cro-audit-report-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.cro-audit-report-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Quick Wins */
.cro-audit-report-quick-wins {
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
}

.cro-audit-report-quick-wins h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.cro-audit-report-quick-wins ul {
    margin-left: 1.5rem;
}

.cro-audit-report-quick-wins li {
    margin-bottom: 0.5rem;
}

/* Action Buttons */
.cro-audit-report-actions {
    text-align: center;
    margin-top: 2rem;
}

.cro-audit-view-full-report,
.cro-audit-back-to-summary,
.cro-audit-export-pdf {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease;
}

.cro-audit-view-full-report:hover,
.cro-audit-back-to-summary:hover,
.cro-audit-export-pdf:hover {
    background-color: #45a049;
}

.cro-audit-back-to-summary {
    background-color: #607D8B;
}

.cro-audit-back-to-summary:hover {
    background-color: #546E7A;
}

.cro-audit-export-pdf {
    background-color: #2196F3;
}

.cro-audit-export-pdf:hover {
    background-color: #0b7dda;
}

/* Full Report Container */
.cro-audit-report-full-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Navigation */
.cro-audit-report-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

/* Sections */
.cro-audit-report-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.cro-audit-report-section:last-child {
    border-bottom: none;
}

.cro-audit-report-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cro-audit-report-section-header h4 {
    font-size: 1.3rem;
    margin: 0;
    color: #2c3e50;
}

.cro-audit-report-section-score {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cro-audit-report-section-score.score-low {
    background-color: #ffcdd2;
}

.cro-audit-report-section-score.score-medium {
    background-color: #ffe0b2;
}

.cro-audit-report-section-score.score-high {
    background-color: #c8e6c9;
}

.cro-audit-report-section-score-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.cro-audit-report-section-score-max {
    font-size: 0.9rem;
    color: #777;
    margin-left: 2px;
}

/* Issues */
.cro-audit-report-issue {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cro-audit-report-issue h5 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.cro-audit-report-issue-meta {
    display: flex;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.cro-audit-report-issue-impact,
.cro-audit-report-issue-effort {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
}

.cro-audit-report-issue-impact-high {
    background-color: #ffcdd2;
    color: #c62828;
}

.cro-audit-report-issue-impact-medium {
    background-color: #ffe0b2;
    color: #ef6c00;
}

.cro-audit-report-issue-impact-low {
    background-color: #dcedc8;
    color: #33691e;
}

.cro-audit-report-issue-effort-high {
    background-color: #ffcdd2;
    color: #c62828;
}

.cro-audit-report-issue-effort-medium {
    background-color: #ffe0b2;
    color: #ef6c00;
}

.cro-audit-report-issue-effort-low {
    background-color: #dcedc8;
    color: #33691e;
}

.cro-audit-report-issue-recommendation,
.cro-audit-report-issue-experiment {
    margin-top: 1rem;
}

.cro-audit-report-issue-recommendation strong,
.cro-audit-report-issue-experiment strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cro-audit-report-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cro-audit-report-section-score {
        margin-top: 1rem;
    }
    
    .cro-audit-report-nav {
        flex-direction: column;
    }
    
    .cro-audit-back-to-summary,
    .cro-audit-export-pdf {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}
