/* DNSKit.Net - Security Headers Tool Styles */

/* Genel Layout */
.dns-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .dns-layout {
        grid-template-columns: 1fr;
    }
}

/* Kartlar (Ortak Stil) */
.info-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- GRADE KUTUSU (SOL) --- */
.security-grade-box {
    text-align: center;
    align-items: center;
    border-top: 5px solid #2563eb;
    /* Varsayılan Mavi */
}

.security-grade {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin: 1rem 0 0.5rem 0;
    color: #334155;
}

.security-score {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.security-score-value {
    font-weight: 700;
    color: #334155;
}

.security-domain {
    margin-top: 0.5rem;
}

.category-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.security-print-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.security-print-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* --- ANALİZ ÖZETİ (SAĞ) --- */
.info-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.05em;
}

.record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f8fafc;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
}

.record-row:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.record-title {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.record-value {
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
}

.text-success {
    color: #16a34a;
}

.text-warning {
    color: #d97706;
}

.text-danger {
    color: #dc2626;
}

/* Kesintiler */
.security-penalties {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.security-penalty-item {
    justify-content: flex-start;
    gap: 0.5rem;
}

.security-penalty-value {
    font-weight: 700;
    margin-left: auto;
}

.security-penalty-title {
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- DETAYLI ANALİZ KARTLARI --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.security-analysis-item {
    border-left: 5px solid #cbd5e1;
    /* Varsayılan gri */
    justify-content: flex-start;
    height: 100%;
}

.security-analysis-item.pass {
    border-left-color: #16a34a;
}

.security-analysis-item.warning {
    border-left-color: #d97706;
}

.security-analysis-item.fail {
    border-left-color: #dc2626;
}

.security-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.security-analysis-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #334155;
}

.security-analysis-status {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.security-analysis-msg {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.security-header-value {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.85rem;
    color: #334155;
    word-break: break-all;
    margin-top: auto;
}

/* --- TABLO --- */
.result-box .section-title {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.overflow-auto {
    display: block;
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 4rem;
}

.dns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 0;
    border: none;
}

.dns-table thead tr {
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
}

.dns-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.dns-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.dns-table tbody tr:last-child {
    border-bottom: none;
}

.dns-table td {
    padding: 0.75rem 1rem;
    color: #334155;
    vertical-align: top;
}

.dns-table .host-col {
    color: #2563eb;
    font-weight: 600;
    width: 30%;
}

.dns-table .value-col {
    font-family: "SFMono-Regular", Consolas, monospace;
    color: #334155;
    word-break: break-all;
}

/* --- Grade Colors (Not Renkleri) --- */
.security-grade.grade-a {
    color: #16a34a;
}

/* Yesil */
.security-grade.grade-b {
    color: #2563eb;
}

/* Mavi */
.security-grade.grade-c {
    color: #3b82f6;
}

/* Acik Mavi */
.security-grade.grade-d {
    color: #d97706;
}

/* Turuncu */
.security-grade.grade-f {
    color: #dc2626;
}

/* Kirmizi */

/* --- PRINT RULES (PDF Ciktisi Icin) --- */
@media print {
    /* Gizlenecek Elemanlar */
    header,
    footer,
    .main-nav,
    .search-container,
    .security-print-btn,
    .tools-grid,
    .hero-section,
    .breadcrumb,
    .meta-tags,
    /* Varsa */
    .cookie-consent

    /* Varsa */
        {
        display: none !important;
    }

    /* Genel Sayfa Ayarlari */
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Sonuc Kutusunu One Cikar */
    .result-box {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Grid Yapisi Print Icin Duzenleme */
    .dns-layout {
        display: block !important;
        /* Grid yerine blok */
    }

    .dns-layout .info-item {
        page-break-inside: avoid;
        /* Kartlar bolunmesin */
        margin-bottom: 2rem;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .info-grid {
        display: block !important;
    }

    .security-analysis-item {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
    }

    .overflow-auto {
        overflow: visible !important;
        box-shadow: none !important;
    }

    /* Linkleri Yazdirma */
    a {
        text-decoration: none !important;
        color: #000 !important;
    }

    /* Rapor Basligi Ekle */
    .result-box::before {
        content: "DNSKit.Net - Güvenlik Analiz Raporu";
        font-size: 18pt;
        font-weight: bold;
        display: block;
        margin-bottom: 1cm;
        text-align: center;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
    }
}