/* DNS Kontrol Sistemi - Ana Stil Dosyası */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

/* Top Header - IntoDNS Style */
.top-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s;
}

.header-left .logo-link:hover {
    color: #6b7280;
}

.header-left .logo-link i {
    color: #6b7280;
    font-size: 1.6rem;
}

.header-right {
    display: flex;
    align-items: center;
}

.compact-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.compact-search-input {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 280px;
    transition: all 0.3s;
    background: #f9fafb;
}

.compact-search-input:focus {
    outline: none;
    border-color: #6b7280;
    background: white;
    box-shadow: 0 0 0 3px rgba(107,114,128,0.1);
}

.compact-search-btn {
    padding: 10px 20px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.compact-search-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.compact-search-btn i {
    margin-right: 5px;
}

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

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #6b7280;
    background: white;
    box-shadow: 0 0 0 3px rgba(107,114,128,0.1);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4b5563, #6b7280);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107,114,128,0.4);
    background: linear-gradient(135deg, #374151, #4b5563);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.results-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.results-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.domain-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

.results-content {
    padding: 30px;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    position: relative; /* Tooltip'ın düşünmesi için */
}

.records-table th,
.records-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    position: relative; /* Tooltip için */
}

.records-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.records-table tr {
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.records-table tr:hover {
    background: #f8f9fa;
}

.records-table tr.active {
    background: #e8f4fd;
}

/* Accordion detay satırı */
.record-details {
    display: none;
    background: #f8f9fa;
    border-left: 4px solid #6b7280;
    animation: slideDown 0.3s ease-out;
}

.record-details.show {
    display: table-row;
}

.record-details td {
    padding: 20px 15px;
    border-bottom: 2px solid #e0e0e0;
}

.detail-content {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-description {
    color: #555;
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.info-item {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-value {
    color: #333;
    font-family: monospace;
    word-break: break-all;
}

.detail-recommendations {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.recommendation-title {
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommendation-list {
    list-style: none;
    padding: 0;
}

.recommendation-list li {
    color: #856404;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.recommendation-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .detail-info {
        grid-template-columns: 1fr;
    }
    
    .detail-content {
        font-size: 0.9rem;
    }
}

.record-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    position: relative;
}

.type-a { background: #10b981; }
.type-aaaa { background: #3b82f6; }
.type-cname { background: #8b5cf6; }
.type-mx { background: #f59e0b; }
.type-ns { background: #ef4444; }
.type-txt { background: #6b7280; }
.type-soa { background: #84cc16; }
.type-caa { background: #f97316; }
.type-cert { background: #06b6d4; }
.type-dname { background: #a855f7; }
.type-dnskey { background: #ec4899; }
.type-ds { background: #14b8a6; }
.type-loc { background: #f59e0b; }
.type-naptr { background: #8b5cf6; }
.type-ptr { background: #6366f1; }
.type-spf { background: #10b981; }
.type-srv { background: #f97316; }
.type-sshfp { background: #64748b; }
.type-tlsa { background: #dc2626; }
.type-uri { background: #7c3aed; }

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.summary-card.summary-error { border-color: #ef4444; }
.summary-card.summary-warning { border-color: #f59e0b; }
.summary-card.summary-ok { border-color: #10b981; }

.summary-icon { font-size: 2.5rem; }
.summary-card.summary-error .summary-icon { color: #ef4444; }
.summary-card.summary-warning .summary-icon { color: #f59e0b; }
.summary-card.summary-ok .summary-icon { color: #10b981; }

.summary-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 2% auto 2% 5%; /* Sol taraftan biraz boşluk bırak */
    padding: 0;
    border-radius: 15px;
    width: 90%; /* Genişliği artırdık */
    max-width: 800px; /* Maksimum genişliği artırdık */
    max-height: 85vh; /* Yüksekliği biraz artırdık */
    overflow: hidden;
    animation: slideIn 0.3s;
    position: relative;
    left: 0;
}

.modal-header {
    background: linear-gradient(135deg, #374151, #4b5563);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close:hover { opacity: 0.7; }

.modal-body {
    padding: 35px; /* Padding'ı artırdık */
    max-height: 70vh; /* Yüksekliği artırdık */
    overflow-y: auto;
}

.detail-item {
    padding: 18px; /* Padding artırıldı */
    margin-bottom: 18px; /* Margin artırıldı */
    border-radius: 10px; /* Köşe yuvarlama artırıldı */
    border-left: 4px solid;
}

.detail-item.detail-error {
    background: #fef2f2;
    border-color: #ef4444;
}

.detail-item.detail-warning {
    background: #fffbeb;
    border-color: #f59e0b;
}

.detail-item.detail-ok {
    background: #f0f9ff;
    border-color: #10b981;
}

.detail-type {
    font-weight: 600;
    font-size: 1rem; /* Font boyutu artırıldı */
    text-transform: uppercase;
    margin-bottom: 10px; /* Margin artırıldı */
    display: flex;
    align-items: center;
    gap: 10px; /* Gap artırıldı */
}

.detail-message {
    font-size: 1.1rem; /* Font boyutu artırıldı */
    line-height: 1.6; /* Satır yüksekliği artırıldı */
}

.error-message {
    background: #fef2f2;
    color: #ef4444;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    margin: 20px 0;
}

.responsive-table {
    overflow-x: auto;
    position: relative; /* Tooltip'ın görünmesi için */
    z-index: 1; /* Base z-index */
}

/* Alert stilları */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    border-left-color: #28a745;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
    border-left-color: #ffc107;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    border-left-color: #dc3545;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #b8daff;
    border-left-color: #17a2b8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* IntoDNS Style */
.intodns-style .results-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

.summary-bar {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.summary-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.summary-item.summary-pass { color: #10b981; }
.summary-item.summary-warn { color: #f59e0b; }
.summary-item.summary-error { color: #ef4444; }

.dns-category {
    background: white;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.category-title {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px 25px;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    border-left: 5px solid #6b7280;
    display: flex;
    align-items: center;
    gap: 12px;
}

.test-item {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
}

.test-item:last-child {
    border-bottom: none;
}

.test-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.test-icon {
    font-size: 1.5rem;
    min-width: 28px;
}

.test-pass .test-icon { color: #10b981; }
.test-warn .test-icon { color: #f59e0b; }
.test-error .test-icon { color: #ef4444; }
.test-info .test-icon { color: #3b82f6; }

.test-title {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.test-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pass {
    background: #d1fae5;
    color: #065f46;
}

.badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.test-message {
    margin: 8px 0 8px 40px;
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
}

.test-description {
    margin: 8px 0 0 40px;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    font-style: italic;
}

.test-details {
    margin: 15px 0 0 40px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #d1d5db;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.detail-table th {
    background: #f3f4f6;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 2px solid #e5e7eb;
}

.detail-table td {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.detail-table tr:last-child td {
    border-bottom: none;
}

.detail-table tr:hover {
    background: #f9fafb;
}

/* IntoDNS Style Table - 4 Columns */
.intodns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.intodns-table thead th {
    background: #f3f4f6;
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: #374151;
    border-bottom: 2px solid #d1d5db;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.intodns-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.intodns-row:hover {
    background: #f9fafb;
}

.intodns-row:last-child {
    border-bottom: none;
}

.category-cell {
    padding: 16px;
    font-weight: 700;
    color: #1f2937;
    background: #f9fafb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-cell {
    padding: 16px;
    text-align: center;
    font-size: 1.3rem;
}

.testname-cell {
    padding: 16px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.information-cell {
    padding: 16px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-details {
    margin-top: 8px;
}

/* DNS Table Styles */
.dns-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.dns-table thead th {
    background: #f3f4f6;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #4b5563;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dns-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.dns-row:hover {
    background: #f9fafb;
}

.dns-row:last-child {
    border-bottom: none;
}

.dns-test-name {
    padding: 15px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dns-status {
    padding: 15px;
    text-align: center;
}

.dns-result {
    padding: 15px;
}

.result-message {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.result-description {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
    font-style: italic;
    padding-top: 6px;
    border-top: 1px solid #f3f4f6;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .search-form {
        flex-direction: column;
    }

    .header h1 {
        font-size: 2rem;
    }

    .search-container,
    .results-container,
    .history-container {
        padding: 20px;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 96%;
        margin: 3% auto;
        max-width: none;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .summary-bar {
        flex-direction: column;
        gap: 10px;
    }

    .test-message,
    .test-description,
    .test-details {
        margin-left: 0;
    }
}

/* Homepage Hero Styles */
.homepage-hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
}

.hero-icon {
    font-size: 5rem;
    color: #6b7280;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    color: #6b7280;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 60px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: #6b7280;
}

.feature-icon {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.cta-section {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    padding: 40px;
    border-radius: 16px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.cta-text {
    font-size: 1.3rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 20px;
}

.example-domains {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.example-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
}

.example-link {
    padding: 10px 20px;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.example-link:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107,114,128,0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-icon {
        font-size: 3.5rem;
    }

    .example-domains {
        flex-direction: column;
    }
}
