/* SSL Checker page styles (hero uses speed-test-banner.css) */

/* Benefits Visual Section */
.benefits-visual {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
}

.benefits-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23dee2e6" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Key Benefits Grid */
.key-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Tool Advantages Section */
.tool-advantages {
    background: white;
    padding: 4rem 0;
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.advantage-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.advantage-content h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.advantage-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.ssl-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.ssl-status.success {
    background: #d4edda;
    color: #155724;
}

.ssl-status.danger {
    background: #f8d7da;
    color: #721c24;
}

/* SSL Results Styles */
.ssl-results-container {
    background: #f8f9fa;
    padding: 4rem 0;
    margin-top: 0;
}

.ssl-results-container .container {
    max-width: 1200px;
}

#ssl-results-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.domain-info h2 {
    margin: 0;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

.overall-grade {
    text-align: center;
}

.grade-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.grade {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.grade-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Grade Colors */
.grade-a-plus .grade-circle {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.grade-a .grade-circle {
    background: linear-gradient(135deg, #28a745, #34ce57);
}

.grade-b .grade-circle {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
}

.grade-c .grade-circle {
    background: linear-gradient(135deg, #fd7e14, #ff922b);
}

.grade-d .grade-circle {
    background: linear-gradient(135deg, #dc3545, #e55353);
}

.grade-f .grade-circle {
    background: linear-gradient(135deg, #6c757d, #868e96);
}

/* Results Tabs */
.results-tabs {
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #667eea;
    background: #f8f9fa;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Overview Tab */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.overview-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.card-header i {
    color: #667eea;
    font-size: 1.5rem;
}

.card-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.status-item .label {
    color: #666;
    font-weight: 500;
}

.status-item .value {
    font-weight: 600;
}

.status-item .value.success {
    color: #28a745;
}

.status-item .value.warning {
    color: #ffc107;
}

.status-item .value.danger {
    color: #dc3545;
}

/* Certificate Tab */
.certificate-details {
    max-width: 800px;
}

.cert-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.cert-section h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.cert-item .label {
    color: #666;
    font-weight: 500;
}

.cert-item .value {
    font-weight: 600;
    color: #333;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.san-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.san-domain {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Security Tab */
.security-analysis {
    max-width: 900px;
}

.security-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.security-section h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.security-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.security-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.security-icon.warning {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
}

.security-icon.danger {
    background: linear-gradient(135deg, #dc3545, #e55353);
}

.security-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.security-content .status {
    font-weight: 600;
    font-size: 0.9rem;
}

.security-content .status.success {
    color: #28a745;
}

.security-content .status.warning {
    color: #ffc107;
}

.security-content .status.danger {
    color: #dc3545;
}

.protocol-grid,
.chain-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.protocol-item,
.chain-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.protocol-item .label,
.chain-item .label {
    color: #666;
    font-weight: 500;
}

.protocol-item .value,
.chain-item .value {
    font-weight: 600;
    color: #333;
}

.vulnerabilities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vulnerability-item {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
}

.vulnerability-item.high {
    border-left-color: #dc3545;
}

.vulnerability-item.medium {
    border-left-color: #ffc107;
}

.vulnerability-item.low {
    border-left-color: #28a745;
}

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

.vuln-type {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.vuln-severity {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.vuln-severity.high {
    background: #f8d7da;
    color: #721c24;
}

.vuln-severity.medium {
    background: #fff3cd;
    color: #856404;
}

.vuln-severity.low {
    background: #d4edda;
    color: #155724;
}

.vuln-description {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Recommendations Tab */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recommendation-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #667eea;
}

.recommendation-item.high {
    border-left-color: #dc3545;
}

.recommendation-item.medium {
    border-left-color: #ffc107;
}

.recommendation-item.low {
    border-left-color: #28a745;
}

.rec-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rec-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.rec-icon.high {
    background: linear-gradient(135deg, #dc3545, #e55353);
}

.rec-icon.medium {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
}

.rec-icon.low {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.rec-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.rec-priority {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rec-priority.high {
    background: #f8d7da;
    color: #721c24;
}

.rec-priority.medium {
    background: #fff3cd;
    color: #856404;
}

.rec-priority.low {
    background: #d4edda;
    color: #155724;
}

.rec-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.no-recommendations {
    text-align: center;
    padding: 3rem;
    color: #28a745;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-recommendations h3 {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.no-recommendations p {
    color: #666;
    font-size: 1.1rem;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
    color: white;
    text-decoration: none;
}

.ssl-results-container .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ssl-results-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Loading and Error States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc3545;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
    z-index: 9999;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hidden {
    display: none !important;
}

/* Benefits Section Styles */
.benefits-section {
    background: #f8fafc !important;
    padding: 4rem 0;
}

.benefits-content h3 {
    color: #1e293b;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.benefits-content .lead {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.benefit-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.5rem;
    max-width: 150px;
}

.ssl-impact-chart {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-header h4 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.impact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.impact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.impact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.impact-content h5 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.impact-content p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

.benefit-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.benefit-features li {
    color: #475569;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.benefit-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h3 {
    color: #1e293b;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section {
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.cta-section h3 {
    color: #1e293b;
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section .lead {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ssl-results-container .btn-primary {
        width: 100%;
        justify-content: center;
        border-radius: 15px;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid,
    .security-grid,
    .protocol-grid,
    .chain-info {
        grid-template-columns: 1fr;
    }
    
    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .rec-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .ssl-results-container {
        padding: 1rem;
    }
    
    .cert-section,
    .security-section {
        padding: 1rem;
    }
    
    .cert-item,
    .protocol-item,
    .chain-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .cert-item .value {
        max-width: 100%;
        text-align: center;
    }
    
    /* Benefits Section Responsive */
    .benefit-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .impact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .key-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantage-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .benefits-content h3 {
        font-size: 1.5rem;
    }
    
    .section-header h3 {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h3 {
        font-size: 1.5rem;
    }
}