/**
 * Frontend Styles for Customer Results Page
 * Redesigned for blue/white backgrounds
 * Clean, professional, light colors
 */

/* Main Container */
.repose-results-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* WooCommerce My Account specific adjustments */
.woocommerce-MyAccount-content .repose-results-container {
    padding: 0 !important;
}

/* Welcome Header */
.repose-welcome-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.repose-welcome-header h2 {
    font-size: 26px !important;
    color: #2c3e50 !important;
    margin: 0 0 12px 0 !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
}

.repose-welcome-header .highlight-name {
    color: #00548F !important;
    font-weight: 600 !important;
    display: inline-block;
}

.repose-welcome-header .welcome-subtitle {
    color: #6c757d !important;
    font-size: 15px !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    letter-spacing: normal !important;
}

/* Result Group Container */
.repose-result-group {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.repose-result-group.latest-result {
    border: 2px solid #E4002B;
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.15);
}

/* Result Group Header */
.result-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.result-group-title {
    color: #2c3e50;
    font-size: 22px;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.latest-badge {
    background: #E4002B;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-date {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Section Headings */
.section-heading {
    color: #00548F !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e9ecef !important;
}

/* PDFs Section */
.result-pdfs-section {
    margin-bottom: 25px;
}

.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s;
}

.pdf-item:hover {
    border-color: #00548F;
    box-shadow: 0 2px 6px rgba(0, 84, 143, 0.1);
}

.pdf-icon {
    font-size: 32px;
    color: #00548F;
    flex-shrink: 0;
}

.pdf-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pdf-label {
    font-weight: 700;
    font-size: 15px;
    color: #00548F;
}

.pdf-name {
    font-size: 14px;
    color: #2c3e50;
}

.pdf-size {
    font-size: 13px;
    color: #6c757d;
}

.pdf-download-btn {
    background: #00548F;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    border: none;
    display: inline-block;
}

.pdf-download-btn:hover {
    background: #003d6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 84, 143, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Notes Section */
.result-notes-section {
    margin-bottom: 25px;
}

.notes-content {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #00548F;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.8;
}

.notes-content p {
    margin-bottom: 12px;
}

.notes-content p:last-child {
    margin-bottom: 0;
}

.notes-content ul,
.notes-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.notes-content strong {
    color: #00548F;
}

/* Suggested Tests Section */
.result-suggestions-section {
    margin-bottom: 0;
}

.suggested-tests-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.suggested-test-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #E4002B;
    border-radius: 6px;
    transition: all 0.3s;
}

.suggested-test-item:hover {
    border-color: #E4002B;
    box-shadow: 0 2px 8px rgba(228, 0, 43, 0.15);
}

.test-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.test-name {
    font-size: 16px;
    font-weight: 600;
}

.test-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.test-name a:hover {
    color: #00548F;
}

.test-price {
    color: #00548F;
    font-size: 18px;
    font-weight: 700;
}

.view-test-link {
    background: #00548F;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
}

.view-test-link:hover {
    background: #003d6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 84, 143, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Print Section */
.print-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.print-btn {
    background: #00548F !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.print-btn:hover {
    background: #003d6b !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 84, 143, 0.3) !important;
}

/* No Results Message */
.repose-results-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-results-message {
    text-align: center;
    padding: 60px 40px;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results-message h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
}

.no-results-message p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .repose-welcome-header h2 {
        font-size: 22px;
    }
    
    .repose-result-group {
        padding: 20px 15px;
        border-radius: 6px;
    }
    
    .result-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-group-title {
        font-size: 20px;
    }
    
    .section-heading {
        font-size: 16px;
    }
    
    .pdf-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdf-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdf-download-btn {
        width: 100%;
        text-align: center;
    }
    
    .suggested-test-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .view-test-link {
        width: 100%;
        text-align: center;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .repose-welcome-header {
        padding: 15px 10px;
    }
    
    .repose-welcome-header h2 {
        font-size: 20px !important;
    }
    
    .repose-welcome-header .welcome-subtitle {
        font-size: 13px !important;
    }
    
    .repose-result-group {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .result-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .result-group-title {
        font-size: 18px !important;
    }
    
    .section-heading {
        font-size: 16px !important;
    }
    
    .pdf-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px;
    }
    
    .pdf-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .pdf-download-btn {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
    }
    
    .notes-content {
        padding: 15px 12px;
        font-size: 14px !important;
    }
    
    .suggested-test-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }
    
    .test-info {
        width: 100%;
    }
    
    .view-test-link {
        width: 100%;
        text-align: center;
        padding: 12px 15px;
    }
    
    .print-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .print-btn {
        width: 100%;
        padding: 15px 20px !important;
        font-size: 15px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .repose-result-group {
        border-radius: 6px;
        padding: 12px 8px;
    }
    
    .result-group-title {
        font-size: 16px !important;
    }
    
    .latest-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .section-heading {
        font-size: 15px !important;
        margin: 0 0 12px 0 !important;
    }
    
    .pdf-item,
    .suggested-test-item {
        padding: 10px;
    }
    
    .pdf-label,
    .test-name {
        font-size: 14px !important;
    }
    
    .notes-content {
        font-size: 13px !important;
        padding: 12px 10px;
    }
}
