/* WHOIS Sorgu Aracı - UI V2 Stil
 * Author: SiberMimar "Güray Avcı"
 */

/* Temel reset / tipografi */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.whois-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 system-ui, sans-serif;
    background: #f3f4f6;
    color: #0f172a;
}

/* Ana kapsayıcı - dikey/yatay odaklanmış */
.whois-ana-kapsayici {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px 40px;
}

/* Hero alanı (başlık + alt açıklama) */
.whois-hero {
    text-align: center;
    margin-bottom: 24px;
}

.whois-hero-baslik {
    margin: 0 0 8px;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
}

.whois-hero-alt {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 400;
    color: #6b7280;
}

/* İçerik alanı */
.whois-icerik {
    width: 100%;
    max-width: 960px;
}

/* Form alanı */
.whois-form-bolumu {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.whois-form {
    width: 100%;
}

/* Arama kutusu: input + buton tek kapsül */
.whois-form-kutu {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

/* Alan adı input */
.whois-input {
    flex: 1 1 auto;
    border: none;
    padding: 14px 18px 14px 20px;
    font-size: 0.98rem;
    background: transparent;
    color: #0f172a;
    outline: none;
}

.whois-input::placeholder {
    color: #9ca3af;
}

/* Sorgula butonu - aynı kutu içinde */
.whois-buton {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    border: none;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    height: 100%;
    transition: background 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
}

.whois-buton-ikon {
    font-size: 1rem;
}

.whois-buton-yazi {
    white-space: nowrap;
}

.whois-buton:hover {
    background: #1e40af;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.whois-buton:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Hata mesajı */
.whois-hata {
    max-width: 640px;
    margin: 12px auto 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(248, 113, 113, 0.08);
    color: #b91c1c;
    font-size: 0.9rem;
    border: 1px solid rgba(248, 113, 113, 0.5);
}

/* Sonuç kapsayıcısı */
.whois-sonuc-kapsayici {
    max-width: 960px;
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: minmax(0, 2fr);
    gap: 16px;
}

/* Kartlar */
.whois-kart {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

/* Kart üst satır */
.whois-kart-ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

/* Küçük etiket */
.whois-kart-etiket-kucuk {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Alan adı başlığı */
.whois-kart-alan-adi {
    margin: 6px 0 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-all;
}

/* Kart durum rozeti */
.whois-kart-durum-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #e5e7eb;
    color: #374151;
}

/* Durum renk varyantları (JS ile eklenebilecek) */
.whois-durum-kayitli {
    background: #dcfce7;
    color: #15803d;
}

.whois-durum-bosta {
    background: #dbeafe;
    color: #1d4ed8;
}

.whois-durum-bilinmiyor {
    background: #fef3c7;
    color: #92400e;
}

/* Kart içerik gridleri */
.whois-kart-icerik-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
    gap: 12px 16px;
    margin-top: 8px;
}

.whois-kart-tarih-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.whois-kart-icerik-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.whois-tarih-kutu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Küçük başlık metni */
.whois-kart-baslik-kucuk {
    margin: 5px 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

/* Etiket üstü yazılar */
.whois-kart-icerik-etiket {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

/* Önemli metin */
.whois-text-onemli {
    font-size: 0.92rem;
    font-weight: 500;
    color: #111827;
}

/* Chip grupları */
.whois-chip-grup {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Tekil chip */
.whois-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f3f4ff;
    color: #1f2937;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(129, 140, 248, 0.5);
    white-space: nowrap;
}

/* Gelişmiş WHOIS bölümü */
.whois-gelismis-kapsayici {
    max-width: 960px;
    margin: 0 auto;
}

/* Gelişmiş başlık alanı */
.whois-gelismis-baslik-alani {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.whois-gelismis-baslik-sol {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Kopyala butonu */
.whois-kopya-buton {
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #f9fafb;
    color: #111827;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.whois-kopya-buton:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.whois-kopya-buton:active {
    transform: translateY(0);
}

/* Ham WHOIS içeriği paneli
   Kod bloğu gibi değil; okunaklı, yumuşak panel */
.whois-gelismis-icerik {
    background: #f9fafb;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
                 "Liberation Mono", "Courier New", monospace;
    font-size: 0.78rem;
    color: #111827;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    max-height: 460px;
    overflow: auto;
}

/* Scroll bar (hafif) */
.whois-gelismis-icerik::-webkit-scrollbar {
    width: 8px;
}

.whois-gelismis-icerik::-webkit-scrollbar-track {
    background: transparent;
}

.whois-gelismis-icerik::-webkit-scrollbar-thumb {
    background: #cbd5f5;
    border-radius: 999px;
}

/* Alt backlink/kaynak bölümü için genel stil (ileride kullanılabilir) */
.whois-alt-baglanti-bolumu {
    max-width: 960px;
    margin: 24px auto 0;
    padding: 12px 4px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.84rem;
    color: #6b7280;
}

.whois-alt-baglanti-bolumu a {
    color: #1d4ed8;
    text-decoration: none;
}

.whois-alt-baglanti-bolumu a:hover {
    text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 768px) {
    .whois-ana-kapsayici {
        padding: 24px 12px 32px;
        justify-content: flex-start;
    }

    .whois-hero-baslik {
        font-size: 1.9rem;
    }

    .whois-form-kutu {
        max-width: 100%;
    }

    .whois-kart {
        padding: 14px 14px;
    }

    .whois-kart-icerik-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .whois-kart-tarih-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .whois-gelismis-icerik {
        max-height: 360px;
    }
}

/* Hareket hassasiyeti olan kullanıcılar için animasyon azalt */
@media (prefers-reduced-motion: reduce) {
    .whois-buton,
    .whois-kopya-buton {
        transition: none !important;
    }
}
