/* assets/css/result.css */
/* Error Message Stilleri */
.error-message {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.error-message h2 {
    color: #ff4d4d;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.error-message p {
    margin: 10px 0;
    color: #e0e0e0;
    font-size: 1rem;
}

.error-message p strong {
    color: #a0a0c0;
}

/* Message Container Stilleri */
.message-container {
    text-align: center;
    padding: 15px;
}

.message-container h1 {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.message-container p {
    font-size: 16px;
    background-color: #252a44;
    padding: 15px;
    border: 1px solid #3a3f5a;
    max-width: 90%;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
}

/* DNS Results Stilleri */
.dns-results {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.dns-results h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0 10px;
    text-transform: uppercase;
}

.dns-results table,
.dns-results .txt-records table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a3e;
    color: #e0e0e0;
    margin-bottom: 20px;
    table-layout: fixed;
    min-width: 100%;
}

.dns-results th,
.dns-results td,
.dns-results .txt-records th,
.dns-results .txt-records td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #444;
    background: #2a2a3e;
    font-size: 0.9rem;
    overflow-wrap: break-word;
}

.dns-results th,
.dns-results .txt-records th {
    font-weight: 500;
    color: #ffffff;
    background: #383853;
}

.dns-results td,
.dns-results .txt-records td {
    color: #e0e0e0;
    word-break: break-word;
}

/* SOA tablosu sütun genişlikleri */
.dns-results .soa-table thead th:nth-child(1), /* Host */
.dns-results .soa-table tbody td:nth-child(1) { /* Host */
    width: 15%;
}
.dns-results .soa-table thead th:nth-child(2), /* MNAME */
.dns-results .soa-table tbody td:nth-child(2) { /* MNAME */
    width: 25%;
}
.dns-results .soa-table thead th:nth-child(3), /* RNAME */
.dns-results .soa-table tbody td:nth-child(3) { /* RNAME */
    width: 25%;
}
.dns-results .soa-table thead th:nth-child(4), /* Refresh */
.dns-results .soa-table tbody td:nth-child(4) { /* Refresh */
    width: 10%;
}
.dns-results .soa-table thead th:nth-child(5), /* Retry */
.dns-results .soa-table tbody td:nth-child(5) { /* Retry */
    width: 10%;
}
.dns-results .soa-table thead th:nth-child(6), /* Expire */
.dns-results .soa-table tbody td:nth-child(6) { /* Expire */
    width: 10%;
}
.dns-results .soa-table thead th:nth-child(7), /* Minimum */
.dns-results .soa-table tbody td:nth-child(7) { /* Minimum */
    width: 10%;
}

/* MX tablosu sütun genişlikleri */
.dns-results .mx-table thead th:nth-child(1), /* Host */
.dns-results .mx-table tbody td:nth-child(1) { /* Host */
    width: 15%;
}
.dns-results .mx-table thead th:nth-child(2), /* Address */
.dns-results .mx-table tbody td:nth-child(2) { /* Address */
    width: 20%;
}
.dns-results .mx-table thead th:nth-child(3), /* IP */
.dns-results .mx-table tbody td:nth-child(3) { /* IP */
    width: 15%;
}
.dns-results .mx-table thead th:nth-child(4), /* PTR */
.dns-results .mx-table tbody td:nth-child(4) { /* PTR */
    width: 30%;
}
.dns-results .mx-table thead th:nth-child(5), /* Priority */
.dns-results .mx-table tbody td:nth-child(5) { /* Priority */
    width: 10%;
}
.dns-results .mx-table thead th:nth-child(6), /* TTL */
.dns-results .mx-table tbody td:nth-child(6) { /* TTL */
    width: 10%;
}

/* TXT tablosu sütun genişlikleri */
.dns-results .txt-table thead th:nth-child(1), /* Host */
.dns-results .txt-table tbody td:nth-child(1) { /* Host */
    width: 30%;
}
.dns-results .txt-table thead th:nth-child(2), /* Value */
.dns-results .txt-table tbody td:nth-child(2) { /* Value */
    width: 70%;
}

.dns-results tr:hover td,
.dns-results .txt-records tr:hover td {
    background: #060d14;
    transition: background 0.3s ease;
}

.dns-results tr:last-child td,
.dns-results .txt-records tr:last-child td {
    border-bottom: none;
}

.dns-results .txt-records {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dns-results .txt-records p {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin: 10px 0;
    padding: 10px;
    background: #2a2a3e;
    border-radius: 4px;
    line-height: 1.5;
}

.dns-results tr,
.dns-results .txt-records tr {
    cursor: pointer;
}

.dns-results .txt-value {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    text-align: left;
}

/* WHOIS Results Stilleri */
.whois-results {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #2a2a3e;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.whois-results h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.whois-container {
    text-align: left;
}

.whois-table {
    width: 100%;
    border-collapse: collapse;
    background: #2a2a3e;
    color: #e0e0e0;
    margin-bottom: 15px;
    table-layout: auto; /* Fixed yerine auto, içerik uzunluğuna göre ayarlar */
    min-width: 100%;
}

.whois-table tr {
    border-bottom: 1px solid #444;
}

.whois-table th,
.whois-table td {
    padding: 8px;
    text-align: left;
    overflow-wrap: break-word;
}

.whois-table th {
    width: 30%; /* Başlık için dar genişlik */
    max-width: 200px; /* Maksimum genişlik sınırı */
    font-weight: 700;
    color: #bbc1c7;
    background: #383853;
    white-space: nowrap; /* Başlık metni kırılmasın */
}

.whois-table td {
    width: 70%; /* Veri için daha fazla alan */
    color: #e0e0e0;
    background: #2a2a3e;
    word-break: break-word;
    white-space: normal; /* Uzun veriler kırılsın */
}

.whois-table tr:hover td {
    background: #060d14;
    transition: background 0.3s ease;
}

.toggle-raw {
    padding: 8px 16px;
    background: #bbc1c7;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: block;
    margin: 10px auto;
}

.toggle-raw:hover {
    background: #060d14;
}

.raw-data {
    background-color: #252a44;
    padding: 10px;
    border: 1px solid #3a3f5a;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Mobil cihazlar için responsive tasarım */
@media (max-width: 768px) {
    .whois-results {
        width: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    .whois-results h2 {
        font-size: 20px;
        margin: 10px 0;
        padding: 10px;
    }

    .whois-table {
        margin-bottom: 10px;
    }

    .whois-table th,
    .whois-table td {
        display: block; /* Mobilde sütunlar alt alta */
        width: 100%; /* Tam genişlik */
        font-size: 16px;
        padding: 10px;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .whois-table th {
        white-space: normal; /* Mobilde kırılabilir */
        max-width: none; /* Maksimum genişlik sınırı kaldır */
    }

    .toggle-raw {
        font-size: 14px;
        padding: 6px 12px;
        margin: 5px auto;
    }

    .raw-data {
        font-size: 12px;
        max-height: 200px;
        margin: 5px 0;
        padding: 8px;
    }
}