/**
 * Domain Checker CSS
 * Styles for domain availability checking functionality
 */

.domain-results {
    display: none;
}

.domain-result-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.domain-result-card:hover {
    transform: translateY(-2px);
}

.domain-available {
    border-right: 4px solid #28a745;
}

.domain-taken {
    border-right: 4px solid #dc3545;
}

.domain-unknown {
    border-right: 4px solid #ffc107;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.suggestion-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.suggestion-item:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced domain search form */
.domain-search-form {
    position: relative;
}

.domain-search-form .form-control {
    border-radius: 50px 0 0 50px;
    border-right: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.domain-search-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 1rem 2rem;
    font-weight: 600;
}

.domain-search-form .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

/* Responsive design */
@media (max-width: 768px) {
    .domain-result-card {
        padding: 1rem;
    }
    
    .domain-result-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .domain-result-card .text-left {
        margin-top: 1rem;
    }
    
    .suggestions-list {
        justify-content: center;
    }
    
    .suggestion-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}
