/* DNSKit.Net - DNS Tool Styles */

/* Result Header (Split Layout) */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-header h2 {
    font-size: 1.4rem;
    margin: 0;
    color: #334155;
}

/* Authoritative NS Badge (Right Side) */
.authoritative-ns,
.server-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #dbeafe;
}

/* DNS Grid Layout (2 Columns) */
.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;
    }
}

/* Result Box Cards */
.info-item,
.dns-card {
    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);
    margin-bottom: 1rem;
}

/* KART ICI TIPOGRAFI */
.info-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
    display: block;
}

/* Liste Ogeleri - Yan Yana Hizalama BURADA */
.record-item.record-row {
    display: flex;
    /* Flexbox ile yan yana */
    align-items: center;
    /* Dikey ortala */
    flex-wrap: wrap;
    /* Sigmazsa alt satira */
    gap: 0.5rem;
    /* Aralarina bosluk */
    margin-bottom: 0.75rem;
    background: transparent;
}

.record-item:last-child {
    margin-bottom: 0;
}

.record-title {
    font-size: 1rem;
    color: #334155;
    font-weight: 600;
    margin-bottom: 0;
    /* Alttaki boslugu kaldirdik ki ip ile hizalansin */
    line-height: 1.4;
    min-width: fit-content;
}

.record-value {
    color: #64748b;
    font-size: 0.95rem;
    font-family: inherit;
    word-break: break-all;
}

.record-priority {
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    font-weight: 600;
}

.ns-icon {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* Tablo Stilleri (Alt Taraftaki Detayli Liste) */
.dns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.dns-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.dns-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
}

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

/* Sütunlar */
.ttl-col {
    width: 80px;
    color: #94a3b8;
    font-family: monospace;
}

.type-col {
    width: 100px;
}

.value-col {
    font-family: 'Geist Mono', monospace, sans-serif;
    word-break: break-all;
    white-space: normal;
}

/* Tip Badge'leri */
.dns-type-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    min-width: 45px;
    text-align: center;
}

/* Filtre Butonları */
.record-selector-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.record-types {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.record-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    background: #f8fafc;
    color: #64748b;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.2s;
}

.record-type-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

/* Status Box Styles */
.status-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.status-box .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.status-box .content {
    flex: 1;
}

.status-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-size: 1.05rem;
}

.status-box p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.status-box ul {
    margin: 0.75rem 0 0 0;
    padding-left: 1.2rem;
    color: #475569;
}

.status-box li {
    margin-bottom: 0.25rem;
}

/* Error Variation */
.status-box.error {
    background: #fef2f2;
    border: 1px solid #fee2e2;
}

.status-box.error strong {
    color: #991b1b;
}

.status-box.error p, 
.status-box.error ul {
    color: #b91c1c;
}

/* NS List Styles */
.ns-list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ns-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    font-family: inherit;
}

.ns-badge.active-ns {
    background: #eff6ff;
    color: #2563eb;
    border-color: #dbeafe;
    font-weight: 600;
}

.ns-badge.error-ns {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}

.text-red {
    color: #dc2626;
    font-weight: 600;
}

.type-error {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fee2e2;
}