/**
 * ThinkScan Audit Page CSS
 */

/* Page container */
.thinkscan-page-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Breadcrumbs */
.thinkscan-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6c757d;
}

.thinkscan-breadcrumbs a {
    color: #7fccde;
    text-decoration: none;
}

.thinkscan-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Share links */
.thinkscan-share-links {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 25px;
}

.thinkscan-share-btn {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.thinkscan-share-icon {
    margin-right: 5px;
}

/* Jump links */
.thinkscan-jump-links {
    margin: 30px 0;
    background-color: #f5f8fa;
    border-radius: 8px;
    padding: 15px 20px;
}

.thinkscan-jump-links h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #586069;
}

.thinkscan-jump-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thinkscan-jump-btn {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s ease;
}

.thinkscan-jump-btn:hover {
    background-color: #f0f7fa;
    border-color: #7fccde;
    color: #2c3e50;
    text-decoration: none;
}

.thinkscan-jump-score {
    display: inline-block;
    background: linear-gradient(135deg, #71d1c7 0%, #7fccde 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
}

.thinkscan-jump-highlight {
    background: linear-gradient(135deg, #71d1c7 0%, #7fccde 100%);
    color: #fff;
    border-color: transparent;
}

.thinkscan-jump-highlight:hover {
    background: linear-gradient(135deg, #65c5bb 0%, #6dbfd1 100%);
    color: #fff;
}

/* Section styles */
.thinkscan-section {
    margin-bottom: 40px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.thinkscan-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f8fa;
    border-bottom: 1px solid #e1e8ed;
}

.thinkscan-section-header h3 {
    margin: 0;
    color: #2c3e50;
}

.thinkscan-score-pill {
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.thinkscan-score-pill.good {
    background-color: #28a745;
}

.thinkscan-score-pill.warning {
    background-color: #ffc107;
}

.thinkscan-score-pill.bad {
    background-color: #dc3545;
}

.thinkscan-section-content {
    padding: 20px;
}

/* Action Plan */
.thinkscan-action-plan {
    margin: 40px 0;
    padding: 25px;
    background-color: #f5f8fa;
    border-radius: 8px;
}

.thinkscan-action-plan h2 {
    margin-top: 0;
    color: #2c3e50;
}

.thinkscan-action-plan-intro {
    margin-bottom: 20px;
}

.thinkscan-action-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background-color: #7fccde;
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Page footer */
.thinkscan-page-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
    text-align: center;
    color: #6c757d;
}

.thinkscan-page-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.thinkscan-secondary-btn {
    background-color: #f8f9fa;
    color: #586069;
    border: 1px solid #e1e8ed;
}

.thinkscan-secondary-btn:hover {
    background-color: #e9ecef;
    color: #212529;
}

/* Print styles */
@media print {
    .thinkscan-share-links,
    .thinkscan-page-buttons,
    .thinkscan-breadcrumbs {
        display: none;
    }
    
    .thinkscan-page-container {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }
    
    .thinkscan-section,
    .thinkscan-action-plan,
    .thinkscan-jump-links {
        break-inside: avoid;
    }
    
    .thinkscan-page-footer {
        margin-top: 20px;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    h4 { font-size: 13pt; }
}

/* Error container */
.thinkscan-error-container {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.thinkscan-error-container h2 {
    color: #dc3545;
    margin-top: 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .thinkscan-jump-buttons {
        flex-direction: column;
    }
    
    .thinkscan-share-links {
        flex-direction: column;
    }
    
    .thinkscan-share-btn {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .thinkscan-page-buttons {
        flex-direction: column;
    }
}
