/* Mail Score Sayfa Özel Stilleri */

.security-grade-box {
    text-align: center;
    padding: 2.5rem !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mail-report-btn {
    display: inline-block;
    font-size: 13px;
    text-decoration: none;
    color: #1e40af;
    background: #eff6ff;
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid #bfdbfe;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.2s;
}

.mail-report-btn:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

.security-grade {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin: 1rem 0;
    font-family: 'Inter', sans-serif;
}

.grade-a {
    color: #16a34a;
}

.grade-b {
    color: #2563eb;
}

.grade-c {
    color: #3b82f6;
}

.grade-d {
    color: #d97706;
}

.grade-f {
    color: #dc2626;
}

.security-score-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.mail-penalties-title {
    font-size: 12px;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.penalty-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #dc2626;
}

.penalty-row span:last-child {
    font-weight: 700;
}

.sec-row {
    display: flex;
    padding: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.sec-row:last-child {
    border-bottom: none;
}

.sec-row:hover {
    background: #fbfcfe;
}

.sec-icon {
    width: 28px;
    font-size: 20px;
    margin-right: 12px;
}

.sec-content {
    flex: 1;
}

.sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sec-label {
    font-weight: 700;
    color: #1e293b;
}

.sec-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-pass {
    background: #dcfce7;
    color: #15803d;
}

.badge-warning {
    background: #fef9c3;
    color: #a16207;
}

.badge-fail {
    background: #fee2e2;
    color: #991b1b;
}

.sec-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.sec-msg {
    font-size: 0.9rem;
    color: #334155;
}

/* DNS Records Table Enhanced Styling */
.dns-records-table {
    border-collapse: separate;
    border-spacing: 0;
}

.dns-records-table tbody tr {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.dns-records-table tbody tr:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dns-records-table .dns-host-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.dns-records-table .dns-value-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #334155;
    word-break: break-all;
}

/* Row Type Colors */
.dns-records-table .mx-row {
    background: linear-gradient(to right, #f0f9ff 0%, #ffffff 100%);
    border-left-color: #0284c7 !important;
}

.dns-records-table .spf-row {
    background: linear-gradient(to right, #f0fdf4 0%, #ffffff 100%);
    border-left-color: #16a34a !important;
}

.dns-records-table .dmarc-row {
    background: linear-gradient(to right, #fef3c7 0%, #ffffff 100%);
    border-left-color: #d97706 !important;
}

.dns-records-table .bimi-row {
    background: linear-gradient(to right, #faf5ff 0%, #ffffff 100%);
    border-left-color: #9333ea !important;
}

.dns-records-table .mta-sts-row {
    background: linear-gradient(to right, #ecfeff 0%, #ffffff 100%);
    border-left-color: #0891b2 !important;
}

.dns-records-table .tls-rpt-row {
    background: linear-gradient(to right, #fef2f2 0%, #ffffff 100%);
    border-left-color: #dc2626 !important;
}

.dns-records-table .smtp-row {
    background: linear-gradient(to right, #f5f3ff 0%, #ffffff 100%);
    border-left-color: #7c3aed !important;
}

.dns-records-table .ptr-row {
    background: linear-gradient(to right, #fefce8 0%, #ffffff 100%);
    border-left-color: #ca8a04 !important;
}

/* Record Type Badges */
.record-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-type-mx {
    background: #e0f2fe;
    color: #075985;
}

.record-type-txt-spf {
    background: #dcfce7;
    color: #15803d;
}

.record-type-txt-dmarc {
    background: #fef3c7;
    color: #92400e;
}

.record-type-txt-bimi {
    background: #f3e8ff;
    color: #6b21a8;
}

.record-type-txt-mta-sts {
    background: #cffafe;
    color: #155e75;
}

.record-type-txt-tls-rpt {
    background: #fee2e2;
    color: #991b1b;
}

.record-type-smtp {
    background: #ede9fe;
    color: #5b21b6;
}

.record-type-ptr {
    background: #fef9c3;
    color: #854d0e;
}

/* CTA Box */
.cta-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 12px;
}

.cta-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1e40af;
    margin-bottom: 0.75rem;
}

.cta-desc {
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-contacts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-weight: 700;
}

.cta-contacts a {
    color: #1e3a8a;
    text-decoration: none;
    border-bottom: 1px dashed #1e3a8a;
}

/* Print Styles */
@media print {

    header,
    footer,
    .search-section,
    .mail-report-btn,
    .cta-box,
    .section-title {
        display: none !important;
    }

    body {
        background: #fff;
        padding: 30px;
        line-height: 1.4;
        font-family: sans-serif;
    }

    .result-box {
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .dns-layout {
        display: block !important;
    }

    .security-grade-box {
        text-align: center;
        background: #f8fafc !important;
        padding: 20px !important;
        border-radius: 8px;
        margin-bottom: 30px;
        border: 1px solid #ddd;
        display: flex !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: center;
        gap: 30px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .security-grade {
        font-size: 80px !important;
        margin: 0 !important;
    }

    .security-score-value {
        font-size: 32px !important;
        margin: 0 !important;
    }

    .analysis-container {
        border: none !important;
        padding: 0 !important;
    }

    .sec-row {
        margin-bottom: 10px;
        padding: 10px !important;
        border: 1px solid #eee !important;
        break-inside: avoid;
        display: flex !important;
    }

    .sec-row.pass {
        background: #f0fdf4 !important;
        border-left: 5px solid #16a34a !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .sec-row.fail {
        background: #fef2f2 !important;
        border-left: 5px solid #dc2626 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}