/* =============================================
   WHOIS Sorgulama - Ana Stil Dosyası (Yeni Tema)
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background: #e8e8e8;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =============================================
   Üst Navigasyon Çubuğu
   ============================================= */
.top-nav {
    background: #1e1b4b; /* Navy Blue */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-nav .nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav .nav-left a {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-nav .nav-left a:hover {
    color: #fff;
}

.top-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-reklam {
    background: linear-gradient(to bottom, #8b5cf6, #7c3aed);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(139, 92, 246, 0.3);
}

.btn-reklam:hover {
    background: linear-gradient(to bottom, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.4);
}

.btn-register {
    background: #fff;
    color: #1e1b4b !important;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-register:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-right .nav-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.nav-right .nav-link:hover {
    color: #fff;
}

.nav-right .social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right .social-icons a {
    color: #999;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-right .social-icons a:hover {
    color: #fff;
}

/* Dil Seçici */
.lang-switcher {
    position: absolute;
    right: 20px;
    top: 45px;
    background: #1e1b4b;
    border-radius: 3px;
    overflow: hidden;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

.lang-switcher a {
    display: block;
    padding: 4px 10px;
    color: #ccc;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    background: #8b5cf6;
    color: #fff;
}

/* =============================================
   Ana İçerik Alanı
   ============================================= */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-area {
    flex: 1;
    display: flex;
    padding: 30px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 30px;
}

/* Sol Panel - Logo ve Arama */
.left-panel {
    width: 280px;
    flex-shrink: 0;
}

.logo-section {
    margin-bottom: 25px;
    text-align: center;
}

/* Logo Görseli */
.site-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.03);
}

/* Arama Formu */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-inputs {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-inputs:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-inputs input[type="text"] {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    color: #334155;
    background: transparent;
    outline: none;
}

.search-inputs input[type="text"]::placeholder {
    color: #94a3b8;
    font-style: normal;
    font-size: 14px;
}

.search-inputs select,
.tld-select {
    width: 85px;
    border: none;
    border-left: 1px solid #e2e8f0;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    color: #475569;
    background-color: #f8fafc;
    border-radius: 0;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.tld-select:focus {
    background-color: #f1f5f9;
}

.btn-sorgula {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    text-transform: uppercase;
}

.btn-sorgula:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.btn-sorgula:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Reklam Alanı (Sol Panel Altı) */
.ad-square {
    margin-top: 30px;
    width: 100%;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.ad-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #bbb;
    border-radius: 4px;
}

.ad-placeholder i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #ddd;
}

/* =============================================
   Sağ Panel - Sonuçlar
   ============================================= */
.right-panel {
    flex: 1;
    min-width: 0;
}

.results-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.results-header {
    background: linear-gradient(to bottom, #8b5cf6, #7c3aed);
    color: #fff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-header i {
    font-size: 18px;
}

.results-body {
    padding: 0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.results-table tr:last-child {
    border-bottom: none;
}

.results-table tr:hover {
    background: #fafafa;
}

.results-table td {
    padding: 10px 18px;
    font-size: 13px;
    vertical-align: top;
    line-height: 1.5;
}

.results-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 200px;
    white-space: nowrap;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
}

.results-table td:last-child {
    color: #666;
    word-break: break-all;
}

/* Durum Göstergesi */
.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.registered {
    background: #ffe0e0;
    color: #c0392b;
}

.status-badge.available {
    background: #e0ffe0;
    color: #27ae60;
}

/* Yükleme Animasyonu */
.loading-overlay {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.loading-overlay.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #999;
    font-size: 14px;
}

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #bbb;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-state p {
    font-size: 15px;
    color: #aaa;
}

/* Hata Durumu */
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #c0392b;
}

.error-state i {
    font-size: 36px;
    margin-bottom: 10px;
}

.error-state p {
    font-size: 14px;
}

/* Raw WHOIS Verisi */
.raw-whois-toggle {
    display: block;
    width: 100%;
    padding: 10px 18px;
    background: #f8f8f8;
    border: none;
    border-top: 1px solid #eee;
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    transition: background 0.2s;
}

.raw-whois-toggle:hover {
    background: #f0f0f0;
}

.raw-whois-data {
    display: none;
    padding: 15px 18px;
    background: #2d2d2d;
    color: #a8db8a;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
    border-top: 1px solid #eee;
}

.raw-whois-data.active {
    display: block;
}

/* =============================================
   Özet Kartları (Summary Cards)
   ============================================= */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #fefefe 0%, #f8f6f3 100%);
    border-bottom: 1px solid #eee;
}

.summary-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: center;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #8b5cf6, #7c3aed);
    border-radius: 8px 8px 0 0;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
}

.summary-card .card-icon {
    font-size: 22px;
    color: #8b5cf6;
    margin-bottom: 6px;
}

.summary-card .card-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.summary-card .card-value {
    font-size: 14px;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
}

.summary-card .card-sub {
    font-size: 11px;
    color: #8b5cf6;
    margin-top: 3px;
    font-weight: 600;
}

.summary-card .card-sub.danger {
    color: #e74c3c;
}

.summary-card .card-sub.success {
    color: #27ae60;
}

.summary-card .ns-list {
    font-size: 11px;
    color: #666;
    text-align: left;
    margin-top: 4px;
    line-height: 1.6;
}

.summary-card .ns-list span {
    display: block;
    padding: 1px 0;
    font-family: 'Consolas', monospace;
    font-size: 10.5px;
}

/* =============================================
   Domain Müsait - Registrar Listesi
   ============================================= */
.available-container {
    display: none;
}

.available-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    padding: 20px 24px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

.available-header i {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.available-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.available-header p {
    font-size: 13px;
    opacity: 0.9;
}

.available-domain-name {
    font-weight: 700;
    font-size: 16px;
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    margin-top: 8px;
}

.registrar-section {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.registrar-section-title {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.registrar-section-title i {
    color: #8b5cf6;
}

.registrar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.registrar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}

.registrar-item:last-child {
    border-bottom: none;
}

.registrar-item:hover {
    background: #fdfcff;
}

.registrar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.registrar-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.registrar-details {
    display: flex;
    flex-direction: column;
}

.registrar-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.registrar-desc {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}

.registrar-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.registrar-price {
    text-align: right;
}

.registrar-price .price-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.registrar-price .price-period {
    font-size: 11px;
    color: #999;
}

.registrar-btn {
    background: linear-gradient(to bottom, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Open Sans', sans-serif;
}

.registrar-btn:hover {
    background: linear-gradient(to bottom, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Responsive - Summary Cards */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .registrar-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .registrar-pricing {
        width: 100%;
        justify-content: space-between;
    }
}

/* =============================================
   Alt Bilgi (Footer)
   ============================================= */
.footer {
    background: transparent;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    border-top: 1px solid #d5d5d5;
}

.footer a {
    color: #888;
    font-size: 12px;
    transition: color 0.2s;
}

.footer a:hover {
    color: #8b5cf6;
}

/* Facebook Paylaş Butonu */
.fb-share-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.fb-share-btn a {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #3b5998;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.fb-share-btn a:hover {
    background: #2d4373;
}

/* =============================================
   Responsive Tasarım
   ============================================= */
@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
        padding: 20px 15px;
    }

    .left-panel {
        width: 100%;
        text-align: center;
    }

    .search-form {
        max-width: 350px;
        margin: 0 auto;
    }

    .right-panel {
        width: 100%;
    }

    .top-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 15px;
    }

    .nav-right .btn-reklam {
        display: none;
    }

    .results-table td:first-child {
        width: 140px;
    }

    .footer {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .lang-switcher {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .search-inputs {
        flex-direction: column;
    }

    .tld-select {
        width: 100%;
    }

    .results-table td {
        display: block;
        width: 100%;
        padding: 6px 15px;
    }

    .results-table td:first-child {
        width: 100%;
        border-right: none;
        border-bottom: none;
        padding-bottom: 2px;
    }

    .results-table td:last-child {
        padding-top: 2px;
        padding-bottom: 10px;
    }
}

/* =============================================
   Scrollbar Stili
   ============================================= */
.raw-whois-data::-webkit-scrollbar {
    width: 8px;
}

.raw-whois-data::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.raw-whois-data::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.raw-whois-data::-webkit-scrollbar-thumb:hover {
    background: #777;
}
