/* Dosya Yolu: /assets/css/pages/domain.css */

/* --- TEMEL AYARLAR --- */
:root {
    --bg-body: #f8fafc;
    --primary: #2563eb; --primary-dark: #1e40af;
    --secondary: #0f172a; --accent: #f97316;
    --domain-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --hero-bg: radial-gradient(circle at 50% 50%, #eff6ff 0%, #ffffff 100%);
    --text-main: #1e293b; --text-muted: #64748b;
    --card-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.1);
}

html, body { 
    overflow-x: hidden; 
    width: 100%; 
    box-sizing: border-box; 
    margin: 0; padding: 0;
}
*, *:before, *:after { box-sizing: inherit; }

/* 1. HERO SECTION */
.domain-hero {
    position: relative; padding: 160px 0 100px;
    background: var(--hero-bg); text-align: center; overflow: hidden;
}
.domain-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg");
    background-repeat: no-repeat; background-position: center; background-size: 80%;
    opacity: 0.03; z-index: 0; pointer-events: none; filter: grayscale(100%);
}
.hero-content { position: relative; z-index: 2; max-width: 950px; margin: 0 auto; padding: 0 20px; }
.hero-badge {
    background: rgba(37, 99, 235, 0.1); color: var(--primary); 
    padding: 8px 20px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 25px;
}
.hero-title {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px;
    color: var(--text-main); letter-spacing: -1px;
}
.hero-title span { background: var(--domain-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 50px; line-height: 1.6; }

/* 2. SEARCH INTERFACE */
.search-wrapper { max-width: 850px; margin: 0 auto; position: relative; z-index: 10; width: 100%; }
.search-tabs { display: flex; gap: 10px; margin-bottom: 20px; justify-content: center; flex-wrap: wrap; }
.search-tab {
    padding: 12px 25px; border-radius: 50px; font-weight: 600; cursor: pointer;
    background: rgba(255,255,255,0.7); color: var(--text-muted); transition: 0.3s;
    border: 1px solid rgba(226, 232, 240, 0.8); font-size: 0.95rem;
}
.search-tab.active {
    background: white; color: var(--primary); border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1); font-weight: 800;
}
.domain-search-box {
    background: white; padding: 10px; border-radius: 16px;
    box-shadow: 0 25px 80px -10px rgba(37, 99, 235, 0.2); 
    border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 10px;
    transition: 0.3s; position: relative; width: 100%;
}
.domain-search-box:focus-within { transform: translateY(-3px); border-color: var(--primary); }
.search-icon { font-size: 1.2rem; color: #cbd5e1; margin-left: 15px; flex-shrink: 0; }
.search-input {
    flex-grow: 1; border: none; outline: none; padding: 20px 10px;
    font-size: 1.2rem; font-weight: 600; color: var(--text-main);
    background: transparent; min-width: 0; width: 100%;
}
.search-input::placeholder { color: #cbd5e1; font-weight: 500; }
.btn-search {
    background: var(--domain-gradient); color: white; border: none;
    padding: 18px 45px; border-radius: 12px; font-weight: 700; font-size: 1.1rem;
    cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.btn-search:hover { transform: scale(1.03); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4); }

.popular-tlds { display: flex; justify-content: center; gap: 15px; margin-top: 40px; flex-wrap: wrap; }
.tld-pill {
    background: white; border: 1px solid #e2e8f0; padding: 8px 18px;
    border-radius: 50px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
    transition: 0.3s; cursor: pointer; display: flex; align-items: center; gap: 6px;
}
.tld-pill b { color: var(--text-main); }
.tld-pill span { color: var(--accent); font-size: 0.85rem; background: #fff7ed; padding: 2px 8px; border-radius: 4px; }
.tld-pill:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* 3. RESULT AREA (GELİŞMİŞ SONUÇ ALANI) */
.result-wrapper {
    margin-top: 50px; max-width: 900px; margin-left: auto; margin-right: auto;
    text-align: left; animation: slideUp 0.5s ease; width: 100%; padding: 0 15px;
}
@keyframes slideUp { from{opacity:0; transform:translateY(20px);} to{opacity:1; transform:translateY(0);} }

.result-card {
    background: white; border-radius: 20px; overflow: hidden;
    border: 1px solid #e2e8f0; box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    margin-bottom: 30px; position: relative; width: 100%;
}
.result-card.available { border-top: 6px solid #16a34a; }
.result-card.taken { border-top: 6px solid #dc2626; }
.result-card.transfer { border-top: 6px solid #f97316; }

.res-main {
    padding: 30px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #f1f5f9; gap: 20px; flex-wrap: wrap;
}

.res-info { flex: 1; min-width: 250px; }
.res-info h4 { 
    font-size: 1.6rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; 
    display: flex; align-items: center; gap: 15px; flex-wrap: wrap; line-height: 1.2;
}
.res-info p { color: var(--text-muted); font-size: 1rem; margin: 0; }

.status-badge {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 6px 12px; 
    border-radius: 50px; display: inline-flex; align-items: center; gap: 5px; letter-spacing: 0.5px;
    white-space: nowrap; vertical-align: middle;
}
.status-badge.free { background: #dcfce7; color: #16a34a; }
.status-badge.busy { background: #fee2e2; color: #dc2626; }

.res-action { 
    text-align: right; min-width: 200px; display: flex; flex-direction: column; 
    align-items: flex-end; gap: 10px; justify-content: center;
}
.res-price { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }

.btn-buy-lg {
    background: var(--primary); color: white; padding: 12px 35px; border-radius: 12px;
    font-weight: 700; text-decoration: none; font-size: 1rem; display: inline-flex; align-items: center; gap: 10px; 
    transition: 0.3s; box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); white-space: nowrap; justify-content: center;
}
.btn-buy-lg:hover { background: var(--primary-dark); transform: translateY(-2px); }
.epp-input { padding: 12px 15px; border: 1px solid #e2e8f0; border-radius: 8px; outline: none; width: 100%; max-width: 250px; font-size: 0.95rem; margin-bottom: 10px; }

/* WHOIS DETAILS - MASAÜSTÜ GRİD */
.whois-detail-panel {
    background: #f8fafc; padding: 30px; 
    display: grid; grid-template-columns: repeat(4, 1fr); 
    gap: 20px; border-top: 1px solid #f1f5f9;
}
.wd-box {
    background: white; border: 1px solid #e2e8f0; border-radius: 12px; 
    padding: 15px; text-align: center; width: 100%;
    /* Flex varsayılanı kapalı, masaüstünde block davranır */
}
.wd-box span { 
    display: block; font-size: 0.75rem; color: #64748b; margin-bottom: 5px; 
    text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; 
}
.wd-box strong { 
    display: block; font-size: 0.95rem; color: #1e293b; font-weight: 800; 
    word-break: break-word; 
}
.wd-box.days-left strong { color: #f97316; font-size: 1.1rem; }

.btn-raw-whois {
    display: block; width: 100%; text-align: center; padding: 15px; background: #e2e8f0; color: #64748b;
    font-weight: 600; text-decoration: none; transition: 0.3s; font-size: 0.85rem; cursor: pointer; border-top: 1px solid #cbd5e1;
}
.raw-whois-content {
    display: none; background: #1e293b; color: #cbd5e1; padding: 25px; 
    font-family: 'Courier New', monospace; font-size: 0.85rem; max-height: 400px; overflow-y: auto;
    white-space: pre-wrap; word-break: break-all; line-height: 1.5;
}

/* ALTERNATIFLER */
.alt-suggestions { 
    margin-top: 0; padding: 30px; background: #f8fafc; border-top: 1px solid #e2e8f0; 
}
.alt-title { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 20px; text-align: left; display: flex; align-items: center; gap: 10px; }
.alt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.alt-card {
    background: white; padding: 15px 20px; border-radius: 12px; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between; transition: 0.3s;
}
.alt-card:hover { border-color: #16a34a; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(22, 163, 74, 0.1); }
.alt-domain { font-weight: 700; color: #1e293b; font-size: 1rem; }
.btn-alt-add {
    width: 36px; height: 36px; border-radius: 50%; background: #dcfce7; color: #16a34a;
    display: flex; align-items: center; justify-content: center; text-decoration: none; transition: 0.3s;
}
.btn-alt-add:hover { background: #16a34a; color: white; }

.loader { text-align: center; font-size: 1.2rem; color: var(--primary); padding: 30px; font-weight: 600; }

/* TLD GRID & OTHER SECTIONS */
.tld-section { padding: 80px 0; background: #fff; }
.tld-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.tld-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; padding: 35px 25px; text-align: center; transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.tld-card:hover { background: white; border-color: var(--primary); box-shadow: var(--card-shadow); transform: translateY(-5px); }
.tld-badge { position: absolute; top: 15px; right: 15px; background: #dbeafe; color: var(--primary); font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; }
.tld-name { font-size: 2.2rem; font-weight: 800; color: var(--text-main); margin-bottom: 5px; }
.tld-card[data-type="com"] .tld-name { color: #2563eb; }
.tld-card[data-type="net"] .tld-name { color: #dc2626; }
.tld-card[data-type="tr"] .tld-name { color: #e11d48; }
.tld-card[data-type="xyz"] .tld-name { color: #000; }
.tld-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; min-height: 40px; }
.price-box { margin-bottom: 25px; }
.price-old { text-decoration: line-through; color: #cbd5e1; font-size: 0.9rem; display: block; }
.price-new { font-size: 1.8rem; font-weight: 800; color: var(--text-main); }
.btn-reg { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid #e2e8f0; background: white; color: var(--text-main); font-weight: 700; transition: 0.3s; cursor: pointer; text-decoration: none; display: block; }
.tld-card:hover .btn-reg { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }

.tools-section { padding: 100px 0; background: var(--bg-body); }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.tool-card { background: white; border-radius: 24px; padding: 40px; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 30px; transition: 0.3s; position: relative; overflow: hidden; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--card-shadow); border-color: var(--primary); }
.tool-icon { width: 80px; height: 80px; background: #eff6ff; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary); flex-shrink: 0; }
.tool-card.whois .tool-icon { background: #fff7ed; color: var(--accent); }
.tool-text h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; color: var(--text-main); }
.tool-text p { font-size: 1rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.btn-tool { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); text-decoration: none; font-size: 1rem; transition: 0.3s; }
.btn-tool:hover { gap: 15px; }
.tool-card.whois .btn-tool { color: var(--accent); }

.features-section { padding: 100px 0; background: #fff; }
.feat-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; padding: 0 20px; }
.feat-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 15px; }
.feat-header p { color: var(--text-muted); font-size: 1.1rem; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.feat-box { text-align: left; padding: 20px; }
.feat-icon-sm { width: 60px; height: 60px; background: #f1f5f9; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); margin-bottom: 20px; transition: 0.3s; }
.feat-box:hover .feat-icon-sm { background: var(--primary); color: white; transform: rotate(-5deg); }
.feat-box h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.feat-box p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; }

.transfer-bar { background: var(--text-main); padding: 60px 0; color: white; border-radius: 30px; margin: 0 20px; position: relative; overflow: hidden; max-width: 1200px; margin-left: auto; margin-right: auto; }
.transfer-bar::after { content: ''; position: absolute; right: -50px; top: -50px; width: 300px; height: 300px; background: var(--primary); border-radius: 50%; opacity: 0.2; filter: blur(50px); }
.transfer-content { display: flex; align-items: center; justify-content: space-between; max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; padding: 0 30px; }
.tr-text h3 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.tr-text p { font-size: 1.1rem; opacity: 0.8; color: #cbd5e1; }
.btn-transfer { background: white; color: var(--text-main); padding: 15px 40px; border-radius: 50px; font-weight: 800; text-decoration: none; transition: 0.3s; }
.btn-transfer:hover { background: var(--accent); color: white; }

.faq-sec { padding: 80px 0; max-width: 900px; margin: 0 auto; padding: 80px 20px; }
.faq-box { margin-bottom: 15px; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: white; }
.faq-q { padding: 20px; background: white; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; color: var(--text-main); }
.faq-q:hover { background: #f8fafc; color: var(--primary); }
.faq-a { display: none; padding: 20px; border-top: 1px solid #f1f5f9; background: #fff; color: var(--text-muted); line-height: 1.6; }
.faq-box.active .faq-a { display: block; }
.faq-box.active .faq-q { color: var(--primary); }
.rotate-icon { transition: 0.3s; }
.faq-box.active .rotate-icon { transform: rotate(180deg); }

/* =======================================================
   RESPONSIVE (MOBİL ÖZEL AYARLAR) - BURASI DEĞİŞTİ
   ======================================================= */
@media (max-width: 992px) {
    .domain-hero { padding: 120px 20px 80px; }
    .hero-title { font-size: 2.2rem; word-break: break-word; }
    
    .domain-search-box { flex-direction: column; padding: 20px; border-radius: 20px; width: 100%; }
    .search-icon { display: none; }
    .search-input { width: 100%; text-align: center; border-bottom: 1px solid #f1f5f9; padding: 10px; margin-bottom: 15px; }
    .btn-search { width: 100%; justify-content: center; }
    
    .tld-grid { grid-template-columns: 1fr 1fr; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-card { flex-direction: column; text-align: center; padding: 30px; }
    .feat-grid { grid-template-columns: 1fr; }
    .feat-box { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .transfer-content { flex-direction: column; text-align: center; gap: 30px; }
    .transfer-bar { border-radius: 20px; margin: 0 20px; }
    
    .res-main { flex-direction: column; text-align: center; gap: 20px; padding: 20px 15px; }
    .res-info { width: 100%; text-align: center; justify-content: center; }
    
    /* BAŞLIK TAŞMASI FIX */
    .res-info h4 { 
        justify-content: center; 
        font-size: 1.35rem; 
        text-align: center;
        /* Bu ikisi çok önemli: */
        display: block; 
        overflow-wrap: anywhere; 
        word-break: break-word;
    }
    
    .res-info p { text-align: center; margin-top: 5px; }
    .status-badge { display: inline-block; margin-top: 5px; vertical-align: middle; }
    
    .res-action { width: 100%; align-items: center; }
    .btn-buy-lg { width: 100%; justify-content: center; }
    
    /* --- WHOIS LİSTE GÖRÜNÜMÜ (List View) --- */
    .whois-detail-panel { 
        display: flex; 
        flex-direction: column; 
        gap: 0; /* Aradaki boşlukları sıfırla, border ile ayıracağız */
        padding: 0; 
        background: white; /* Panelin kendi arka planı beyaz olsun */
        border-top: 1px solid #f1f5f9;
    }
    
    .wd-box { 
        width: 100%; 
        display: flex; /* İçerik yan yana */
        justify-content: space-between; 
        align-items: center; 
        text-align: right; 
        padding: 15px 20px;
        margin-bottom: 0; 
        border-radius: 0;
        background: white;
        border: none;
        border-bottom: 1px solid #f1f5f9; /* Satır çizgisi */
    }
    .wd-box:last-child { border-bottom: none; } /* Sonuncuda çizgi yok */
    
    .wd-box span { 
        margin-bottom: 0; 
        text-align: left; 
        font-size: 0.85rem; 
        color: #64748b; 
        font-weight: 600;
        flex-shrink: 0; /* Başlık küçülmesin */
    }
    
    .wd-box strong { 
        text-align: right; 
        font-size: 0.95rem; 
        color: #1e293b; 
        word-break: break-word; /* Uzun kelimeyi kır */
        max-width: 60%; /* Çok uzunsa sol tarafı ezmesin */
    }
    
    /* Name Servers Mobilde (List View içinde alt alta) */
    .wd-box.ns-box { 
        flex-direction: column; 
        align-items: flex-start; 
        text-align: left; 
        gap: 5px;
    }
    .wd-box.ns-box strong { 
        text-align: left; 
        max-width: 100%; 
    }
    
    .alt-suggestions { padding: 20px 15px; }
    .alt-title { justify-content: center; font-size: 1rem; }
    .alt-grid { grid-template-columns: 1fr; }
    
    .popular-tlds { gap: 8px; }
    .tld-pill { padding: 6px 10px; font-size: 0.75rem; }
}

@media (max-width: 600px) { 
    .hero-title { font-size: 1.8rem; }
    .tld-grid { grid-template-columns: 1fr; } 
    .result-wrapper { padding: 0 15px; }
}