/* Whois Sorgulama Sayfası CSS */

.modern-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.card-header h1 {
    color: #3a3a3a;
    font-size: 2rem;
    margin-bottom: 15px;
}

.checker-text {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
}

.whois-input-area {
    background-color: #f9fafc;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.whois-input-area:hover {
    border-color: #4361ee;
    background-color: #f5f7ff;
}

.domain-icon {
    font-size: 3rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.domain-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
}

.domain-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.domain-input:focus {
    border-color: #4361ee;
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.domain-hint {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-top: 10px;
}

.action-btn {
    background-color: #4361ee;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.25);
    width: 100%;
    max-width: 300px;
}

.action-btn:hover {
    background-color: #3a56d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(67, 97, 238, 0.3);
}

.action-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-container {
    display: none;
    margin-top: 30px;
    background-color: #f9fafc;
    border-radius: 12px;
    padding: 25px;
}

.domain-info {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.domain-info-title {
    font-weight: 600;
    margin-right: 10px;
    color: #4b5563;
}

.domain-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.feature-badge {
    background-color: #eef2ff;
    color: #4361ee;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.feature-badge i {
    margin-right: 5px;
}

.feature-badge.available {
    background-color: #ecfdf5;
    color: #065f46;
}

.feature-badge.taken {
    background-color: #fef2f2;
    color: #b91c1c;
}

.whois-data {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.whois-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.whois-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #4361ee;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2ff;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
    padding: 8px 0;
}

.info-label {
    width: 180px;
    font-weight: 500;
    color: #4b5563;
}

.info-value {
    flex: 1;
    color: #1f2937;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #d1d5db;
}

.tab {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    position: relative;
    transition: all 0.3s ease;
}

.tab.active {
    color: #4361ee;
}

.tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4361ee;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.whois-raw {
    background-color: #1f2937;
    color: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(67, 97, 238, 0.1);
    border-left-color: #4361ee;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    color: #b91c1c;
    text-align: center;
    padding: 20px;
    background-color: #fef2f2;
    border-radius: 8px;
    margin-top: 20px;
}

/* Mobil cihazlar için responsive tasarım */
@media (max-width: 768px) {
    .modern-card {
        padding: 20px;
    }
    
    .card-header h1 {
        font-size: 1.5rem;
    }
    
    .whois-input-area {
        padding: 25px 15px;
    }
    
    .domain-input-container {
        max-width: 100%;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .domain-features {
        flex-direction: column;
        gap: 10px;
    }
    
    .feature-badge {
        width: 100%;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .modern-card {
        background-color: #1f2937;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .card-header h1 {
        color: #f9fafb;
    }
    
    .checker-text {
        color: #d1d5db;
    }
    
    .whois-input-area {
        background-color: #111827;
        border-color: #374151;
    }
    
    .whois-input-area:hover {
        background-color: #1e293b;
        border-color: #4361ee;
    }
    
    .domain-input {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .domain-hint {
        color: #9ca3af;
    }
    
    .result-container {
        background-color: #111827;
    }
    
    .domain-info, .whois-data {
        background-color: #1f2937;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    
    .domain-info-title, .info-label {
        color: #d1d5db;
    }
    
    .info-value {
        color: #f9fafb;
    }
    
    .section-title {
        color: #60a5fa;
        border-bottom-color: #374151;
    }
    
    .whois-section {
        border-bottom-color: #374151;
    }
    
    .tabs {
        border-bottom-color: #374151;
    }
    
    .tab {
        color: #d1d5db;
    }
    
    .tab.active {
        color: #60a5fa;
    }
    
    .tab.active::after {
        background-color: #60a5fa;
    }
    
    .whois-raw {
        background-color: #111827;
        color: #d1d5db;
    }
}