/**
 * CCIWA Health Check Styles
 * 
 * CSS styles for the CCIWA Health Check form results and display
 */

/* CCIWA Health Check Results Container */
.cciwa-health-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cciwa-health-results h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.cciwa-health-results ul {
    list-style: square; 
    margin-left: 20px;
    margin-bottom: calc(var(--spacing) * 4);
}

.cciwa-health-results p.summary {
  padding-bottom: 10px;
  border-bottom: 2px solid #dc3545;
  margin-bottom: 30px;
}
.cciwa-health-results p.summary:last-of-type {
  border-bottom: none;
}

/* Score Display Circle */
.score-display {
    text-align: center;
    margin: 30px 0;
}

.score-circle {
    display: inline-block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    color: white;
    line-height: 150px;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.score-circle:hover {
    transform: scale(1.05);
}

.score-display h3 {
    margin-top: 15px;
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 1px;
}


/* Score range colors */
.score-high-risk {
    background-color: #dc3545;
}

.score-medium-risk {
    background-color: #ffc107;
    color: #333;
}

.score-low-risk {
    background-color: #28a745;
}

/* Feedback Section */
.score-feedback {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.score-feedback h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.score-feedback p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* Triggered Responses Section */
.triggered-responses {
    border: 1px solid #dee2e6;
    border-left: 4px solid #e17055;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.triggered-responses h4 {
    color: #dc3545;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 700;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #dc3545; 
    padding-bottom: 10px;
}
.triggered-responses h5 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 10px;;
}

.triggered-responses h4::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 1.1em;
}

/* 

*/
.triggered-responses .response-item {
    background-color: #fff;
    border: 1px solid #f1c40f;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.triggered-responses .response-item:last-child {
    margin-bottom: 0;
}

.triggered-responses .response-item p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* Contact Info / Next Steps */
.contact-info {    
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 700;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    padding-bottom: 10px;
}

.contact-info p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-info ul {
    padding-left: 20px;
}

.contact-info li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-info a {
    color: inverted;
    text-decoration: underline;
}

.contact-info a:hover {
    color: inverted;
    text-decoration: underline;
}

/* Debug Information */
.cciwa-health-debug {
    background-color: #343a40;
    color: #ffffff;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;    
    font-size: 12px;
    border: 1px solid #6c757d;
}

.cciwa-health-debug h5 {
    color: #ffc107;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
}

.cciwa-health-debug pre {
    background-color: #212529;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 5px 0;
    white-space: pre-wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cciwa-health-results {
        padding: 15px;
    }
    
    .cciwa-health-results h2 {
        font-size: 1.8em;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
        line-height: 120px;
        font-size: 24px;
    }
    
    .score-feedback,
    .triggered-responses,
    .contact-info {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .cciwa-health-results {
        padding: 10px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        line-height: 100px;
        font-size: 20px;
    }
    
    .score-feedback,
    .triggered-responses,
    .contact-info {
        padding: 15px;
        margin: 15px 0;
    }
}

/* Print Styles */
@media print {
    .cciwa-health-results {
        max-width: none;
        padding: 0;
    }
    
    .score-circle {
        border: 2px solid #333;
        color: #333 !important;
        background: transparent !important;
    }
    
    .score-feedback,
    .triggered-responses,
    .contact-info {
        border: 1px solid #333;
        background: transparent !important;
        color: #333 !important;
        box-shadow: none;
    }
}
