:root {
    --primary-color: #2c3e50;
    --primary-hover: #1a252f;
    --success-color: #5cb85c;
    --success-hover: #4cae4c;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #777777;
    --border-color: #dddddd;
    --error-color: #d9534f;
    --navbar-bg: #ffffff;
    --navbar-text: #555555;
    --footer-bg: #222222;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg);
    border-bottom: 1px solid #e7e7e7;
    padding: 10px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--navbar-text);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 5px;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%232c3e50"/><path d="M0 100 L100 0 L100 100 Z" fill="%2334495e" opacity="0.5"/></svg>') center/cover;
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid var(--success-color);
}

.logo h1 {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.logo h1 span {
    color: #bdc3c7;
}

.search-box-card {
    background-color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-box-card h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.input-group {
    display: flex;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
}

#domain-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border-color 0.2s;
}

#domain-input:focus {
    border-color: #999;
}

.btn-success {
    padding: 0 25px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background-color: var(--success-color);
    border: 1px solid var(--success-hover);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-success:hover {
    background-color: var(--success-hover);
}

.ip-address-bar {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.ip-link {
    color: var(--primary-color);
    font-weight: bold;
}

.ip-link:hover {
    text-decoration: underline;
}

.ip-whois-box {
    margin-top: 15px;
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-main);
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e7e7e7;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
}

main {
    flex: 1;
    padding: 40px 0;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.alert.error {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.hidden {
    display: none !important;
}

/* Results Layout */
.results-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: start;
}

#whois-card {
    grid-column: 1 / -1;
}

.result-block {
    background-color: var(--card-bg);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

.block-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.block-header h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-body {
    padding: 20px;
}

.loader {
    text-align: center;
    color: var(--text-muted);
    font-weight: 500;
    padding: 20px 0;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #eeeeee;
    font-size: 15px;
    word-break: break-word;
}

.data-table th {
    background-color: #fdfdfd;
    font-weight: 600;
    color: #555;
    border-right: 1px solid #eeeeee;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
}

.data-table tr:hover td {
    background-color: #fafafa;
}

.data-table tr:last-child td, .data-table tr:last-child th {
    border-bottom: none;
}

pre {
    background-color: #fcfcfc;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 13px;
    border: 1px solid #eee;
    white-space: pre-wrap;
    word-break: break-word;
    color: #333;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.badge.success {
    background-color: var(--success-color);
}

.badge.danger {
    background-color: var(--error-color);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #999999;
    padding: 30px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-blog-link {
    color: #999999;
    font-weight: normal;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-blog-link:hover {
    color: #ffffff;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    background-color: #333333;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: var(--success-color);
}

@media (max-width: 768px) {
    .results-wrapper {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .logo h1 {
        font-size: 28px;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    #domain-input {
        border-radius: 50px;
        margin-bottom: 10px;
        background: #ffffff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        text-align: center;
        padding: 15px;
    }
    
    .btn-success {
        border-radius: 50px !important;
        justify-content: center;
        padding: 15px;
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* --- UPDATED MINIMAL UI & NEW HERO SECTION --- */

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 70% 50%, #111827 0%, #030712 100%);
    padding: 30px 0;
    text-align: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    right: -10%; top: -10%;
    width: 60%; height: 120%;
    background: radial-gradient(circle, rgba(92,184,92,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.logo h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: none;
}
.search-box-card {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    width: 100%;
}
.search-box-card h2 {
    font-size: 36px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
}
.search-box-card h2::after {
    content: "Alan adı, IP adresi veya kayıt bilgilerini hızlı ve güvenilir şekilde sorgulayın.";
    display: block;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 400;
    margin-top: 15px;
    line-height: 1.5;
}
.input-group {
    background: #ffffff;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    margin-top: 30px;
    border: none;
}
#domain-input {
    border: none;
    border-radius: 50px 0 0 50px;
    padding: 18px 25px;
    font-size: 16px;
    background: transparent;
}
#domain-input:focus {
    border-color: transparent;
    box-shadow: none;
}
.btn-success {
    border-radius: 50px !important;
    padding: 0 40px;
    border: none;
    font-weight: 600;
    font-size: 16px;
}
.ip-address-bar {
    color: #94a3b8;
    margin-top: 25px;
}
.ip-address-bar .ip-link {
    color: var(--success-color);
}

/* Smaller Hero on Results */
body.results-active .hero-section {
    padding: 20px 0;
}
body.results-active .logo h1 {
    display: none;
}
body.results-active .search-box-card h2::after {
    display: none;
}
body.results-active .search-box-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
}
body.results-active .input-group {
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Add margin between top header and results */
body.results-active main {
    padding-top: 30px;
}

/* Minimal Cards (Screenshot 1) */
.results-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: 1200px;
    margin: 0 auto;
    gap: 24px;
}
@media (max-width: 900px) {
    .results-wrapper {
        grid-template-columns: 1fr !important;
    }
    #summary-card {
        order: -1;
    }
}
.results-wrapper .result-block {
    background-color: #ffffff;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.02);
}
.results-wrapper .block-header {
    background-color: transparent;
    border-bottom: 1px solid #f1f1f1;
    padding: 12px 20px;
}
.results-wrapper .block-header h3 {
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
}
.results-wrapper .block-header h3 i {
    display: none !important; /* hide icon for minimal look */
}
.results-wrapper .block-body {
    padding: 10px 20px;
}
.results-wrapper .data-table th, .results-wrapper .data-table td {
    padding: 10px 0 !important;
    background-color: transparent !important;
    border-right: none !important;
    border-bottom: 1px solid #f8f9fa !important;
    font-size: 15px;
}
.results-wrapper .data-table th {
    color: #1e293b !important;
    font-weight: 700 !important;
    width: 35%; /* The target property making the left column narrower */
}
.results-wrapper .data-table td {
    color: #64748b !important;
}
.results-wrapper .data-table th, .results-wrapper .data-table td {
    text-align: left !important;
}
.results-wrapper .data-table th:last-child, .results-wrapper .data-table td:last-child {
    text-align: right !important; /* Forces values to the right side like the screenshot */
}
.results-wrapper .data-table tr:last-child th,
.results-wrapper .data-table tr:last-child td {
    border-bottom: none !important;
}


@media (max-width: 768px) {
  .input-group { flex-direction: column; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
  #domain-input { border-radius: 50px !important; margin-bottom: 12px; background: #ffffff !important; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: center; padding: 18px !important; width: 100%; box-sizing: border-box; }
  .btn-success { width: 100%; border-radius: 50px !important; padding: 18px !important; display: flex; justify-content: center; }
}

/* --- MOBILE MENU OVERRIDES --- */
.mobile-menu-toggle { display: none; background: transparent; border: none; font-size: 18px; cursor: pointer; color: var(--primary-color); font-weight: 600; padding: 10px 0; }
.nav-menus { display: flex; width: 100%; justify-content: space-between; align-items: center; }
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .nav-menus { display: none; flex-direction: column; width: 100%; gap: 10px; padding-bottom: 10px; }
  .nav-menus.show { display: flex; }
  .nav-links { flex-direction: column; width: 100%; text-align: center; gap: 5px; }
  .nav-links a { display: block; padding: 10px; }
  .nav-container { display: block; }
  
  /* History page table mobile styles */
  .history-table, .history-table thead, .history-table tbody, .history-table th, .history-table td, .history-table tr {
    display: block;
    width: 100%;
  }
  .history-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  .history-table tr {
    border: 1px solid #e1e8ed !important;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }
  .history-table td {
    border: none !important;
    border-bottom: 1px solid #f1f1f1 !important;
    position: relative;
    padding: 10px 10px 10px 45% !important;
    text-align: left !important;
    font-size: 14px;
    min-height: 40px;
  }
  .history-table td:last-child {
    border-bottom: 0 !important;
  }
  .history-table td:before {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    color: #555;
  }
  .history-table td:nth-of-type(1):before { content: "Tarih"; }
  .history-table td:nth-of-type(2):before { content: "A Kayıtları"; }
  .history-table td:nth-of-type(3):before { content: "MX Kayıtları"; }
  .history-table td:nth-of-type(4):before { content: "WHOIS NS"; }
  .history-table td:nth-of-type(5):before { content: "Kayıt Firması"; }
}
