/* Security Audit Tool Styles */
.security-audit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 30px;
    background: #ffffff;
    /* base font size: 16px for clearer, consistent typography */
    font-size: 1rem;
    line-height: 1.8;
}

/* Landing Page */
.sa-landing {
    text-align: center;
}

.sa-landing .subtitle {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.security-audit-container h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

/* Ensure emoji/icon in .title aligns with text like other pages */
.title { line-height: 1.05; vertical-align: middle; }
.title img, .title svg { vertical-align: middle; }

.security-audit-container .subtitle {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Feature Highlights */
.security-features {
    margin: 40px auto;
}

.feature-box {
    padding: 20px;
    transition: transform 0.2s;
}

.feature-box:hover {
    transform: translateY(-4px);
}

/* Check Section Styles */
.check-section {
    text-align: left;
}

.check-section h3 {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.check-section code {
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    color: #0f172a;
}

.check-section ul {
    list-style-type: disc;
}

.check-section ul li {
    margin-bottom: 10px;
}

/* Card Styles */
.sa-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sa-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
}

.sa-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 16px;
}

.sa-card p {
    font-size: 16px;
    line-height: 1.7;
}

/* Grade Display */
.grade-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

.grade-badge.grade-a { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.grade-badge.grade-b { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.grade-badge.grade-c { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.grade-badge.grade-d { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.grade-badge.grade-f { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.score-value { font-size: 64px; font-weight: 800; color: #2563eb; line-height: 1; }
.grade-info {
    flex: 1;
    min-width: 250px;
}

.grade-score {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.grade-desc {
    font-size: 1.25rem;
    color: #64748b;
}

.audited-url {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 16px;
    word-break: break-all;
}

/* Priority Fixes */
.priority-panel {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    padding: 24px;
    border-radius: 8px;
}

.priority-panel h3 {
    color: #991b1b;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

.priority-item {
    background: white;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 14px;
    border-left: 3px solid #ef4444;
}

.priority-item:last-child {
    margin-bottom: 0;
}

.priority-item strong {
    font-size: 16px;
    color: #1e293b;
    display: block;
    margin-bottom: 6px;
}

.priority-item small {
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

.impact-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 8px;
}

.impact-badge.impact-high-impact {
    background: #fee2e2;
    color: #991b1b;
}

.impact-badge.impact-medium-impact {
    background: #fed7aa;
    color: #9a3412;
}

.impact-badge.impact-low-impact {
    background: #dbeafe;
    color: #1e40af;
}

/* SSL Info Grid */
.ssl-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 20px 0;
}

.ssl-stat {
    background: #f8fafc;
    padding: 22px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.ssl-stat.warning {
    border-color: #fbbf24;
    background: #fef3c7;
}

.ssl-stat.error {
    border-color: #ef4444;
    background: #fee2e2;
}

.ssl-stat-label {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 500;
}

.ssl-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

/* Table Styles */
.sa-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    font-size: 16px;
}

.sa-table th {
    background: #f8fafc;
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-size: 16px;
}

.sa-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    font-size: 16px;
}

.sa-table tr:hover {
    background: #f8fafc;
}

.sa-table code {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #0f172a;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-present {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-partial {
    background: #fed7aa;
    color: #9a3412;
}

.status-badge.status-missing {
    background: #fee2e2;
    color: #991b1b;
}

/* Buttons */
.sa-btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.sa-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.sa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sa-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.sa-btn-secondary:hover {
    background: #e2e8f0;
}

.sa-btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Form Styles */
.sa-form-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sa-form-group input[type="url"] {
    flex: 1;
    min-width: 320px;
    padding: 18px 22px;
    font-size: 1.15rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border 0.2s;
}

.sa-form-group input[type="url"]:focus {
    border-color: #667eea;
}

/* Info Text */
.sa-info-text {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
    margin: 16px 0;
}

.sa-info-text.success {
    color: #059669;
}

.sa-info-text.warning {
    color: #d97706;
}

.sa-info-text.error {
    color: #dc2626;
}

/* Config Snippets */
.config-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.config-snippet {
    display: none;
    margin-top: 20px;
}

.config-snippet.active {
    display: block;
}

.config-snippet h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1e293b;
}

.config-snippet pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 16px 0;
}

.config-snippet p {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .security-audit-container {
        padding: 80px 15px 20px;
    }
    
    .security-audit-container h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .sa-btn {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
    }
    
    .sa-form-group {
        flex-direction: column;
    }
    
    .sa-form-group input[type="url"] {
        width: 100%;
        min-width: 100%;
    }
    
    .ssl-info {
        grid-template-columns: 1fr;
    }
    
    .sa-table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sa-table th,
    .sa-table td {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    .seo-score-container {
        padding: 30px 20px;
        gap: 24px;
        flex-direction: column;
    }
    
    .seo-score-circle {
        width: 140px;
        height: 140px;
    }
    
    .score-value {
        font-size: 48px !important;
    }
    
    .score-label {
        font-size: 16px !important;
    }
    
    .score-status {
        text-align: center;
    }
    
    .score-status h3 {
        font-size: 20px !important;
    }
    
    .score-status p {
        font-size: 15px !important;
    }
    
    .sa-card {
        padding: 20px;
    }
    
    .sa-card h2 {
        font-size: 20px;
    }
    
    .sa-card h3 {
        font-size: 16px;
    }
    
    .priority-panel {
        padding: 20px;
    }
    
    .priority-panel h3 {
        font-size: 18px;
    }
    
    .priority-item {
        padding: 14px;
    }
    
    .grade-display {
        flex-direction: column;
        align-items: center;
    }
    
    /* "Why This Matters" section on mobile */
    .security-benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .security-benefits-grid h4 {
        font-size: 1rem !important;
    }
    
    .security-benefits-grid p {
        font-size: 0.95rem !important;
    }
}
