/* Main Container */
.domain-search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Search Form */
.domain-search-form {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#domain-name {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

#domain-name:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

#domain-name.error {
    border-color: #dc3545;
}

.validation-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.search-button {
    padding: 12px 25px;
    background-color: #2271b1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #135e96;
}

/* Available Extensions */
.available-extensions {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.extension-tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Search Results */
.result-section {
    margin: 30px 0;
}

.result-section h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #2271b1;
}

.domain-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.domain-result:hover {
    transform: translateY(-2px);
}

.domain-result.premium {
    background: linear-gradient(to right, #fff, #f8f9fa);
    border: 1px solid #e6e6e6;
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-name {
    font-size: 16px;
    font-weight: 500;
    color: #1d2327;
}

/* Premium Badge and Tooltip */
.premium-tooltip {
    position: relative;
    display: inline-block;
}

.premium-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.premium-tooltip-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #333;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.premium-tooltip-content:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

/* Status Badge */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.available {
    background-color: #e6f6e6;
    color: #00a32a;
}

.status-badge.unavailable {
    background-color: #fcf0f1;
    color: #dc3545;
}

/* Domain Action */
.domain-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-info {
    text-align: right;
}

.domain-price {
    font-size: 16px;
    font-weight: 600;
    color: #2271b1;
}

.buy-domain {
    padding: 8px 16px;
    background-color: #00a32a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.buy-domain:hover {
    background-color: #008a20;
}

.buy-domain:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Loading State */
.searching {
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    padding: 15px;
    background-color: #fcf0f1;
    border-left: 4px solid #dc3545;
    color: #dc3545;
    margin: 10px 0;
    border-radius: 4px;
}

/* Suggestions Section */
.suggestions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-button {
        width: 100%;
    }
    
    .domain-result {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .domain-info {
        flex-direction: column;
    }
    
    .domain-action {
        flex-direction: column;
        gap: 10px;
    }
    
    .buy-domain {
        width: 100%;
    }
}