/* Fastliq Domain Search Plugin Styles */

/* Search Form */
.fastliq-domain-search-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Title and Description */
.fastliq-search-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.fastliq-search-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
    color: #666;
}

/* Layout Variations */
.fastliq-domain-search-wrapper.layout-inline .fastliq-search-input-wrapper {
    flex-direction: row;
}

.fastliq-domain-search-wrapper.layout-stacked .fastliq-search-input-wrapper {
    flex-direction: column;
    border-radius: 8px;
}

.fastliq-domain-search-wrapper.layout-stacked .fastliq-domain-input {
    border-bottom: 1px solid #e0e0e0;
}

.fastliq-domain-search-wrapper.layout-stacked .fastliq-search-button {
    border-radius: 0 0 8px 8px;
    width: 100%;
}

.fastliq-domain-search-form {
    margin-bottom: 20px;
}

.fastliq-search-input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 5px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.fastliq-domain-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 12px 20px;
    font-size: 16px;
    background: transparent;
    color: #333;
    box-shadow: none !important;
}

.fastliq-domain-input::placeholder {
    color: #999;
}

.fastliq-search-button {
    border: none;
    outline: none;
    background: #2271b1;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fastliq-search-button:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.fastliq-search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.fastliq-search-button .button-loader {
    display: inline-block;
}

.fastliq-search-button .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: fastliq-spin 0.8s linear infinite;
}

@keyframes fastliq-spin {
    to { transform: rotate(360deg); }
}

/* Results Container */
.fastliq-domain-results {
    margin-top: 30px;
    animation: fastliq-fadeIn 0.3s ease;
}

@keyframes fastliq-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.domain-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.domain-result-item:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.domain-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.domain-status {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.domain-status.domain-available {
    background: #d4edda;
    color: #155724;
}

.domain-status.domain-unavailable {
    background: #f8d7da;
    color: #721c24;
}

.domain-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.domain-price {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
}

.domain-buy-button {
    display: inline-block;
    padding: 10px 24px;
    background: #2271b1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.domain-buy-button:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    color: #ffffff;
}

/* Error Message */
.fastliq-domain-error {
    margin-top: 20px;
    padding: 15px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    animation: fastliq-fadeIn 0.3s ease;
}

.fastliq-domain-error .error-message {
    margin: 0;
    color: #721c24;
    font-size: 14px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fastliq-search-input-wrapper {
        flex-direction: column;
        border-radius: 12px;
        gap: 8px;
    }
    
    .fastliq-domain-input {
        padding: 14px 16px;
    }
    
    .fastliq-search-button {
        border-radius: 8px;
        width: 100%;
    }
    
    .domain-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .domain-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .domain-buy-button {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .fastliq-domain-search-wrapper {
        padding: 0 10px;
    }
    
    .domain-name {
        font-size: 14px;
    }
    
    .domain-price {
        font-size: 16px;
    }
    
    .domain-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .domain-buy-button {
        width: 100%;
    }
}

/* Elementor Editor Preview */
.elementor-editor-active .fastliq-domain-input {
    pointer-events: none;
}

.elementor-editor-active .fastliq-search-button {
    pointer-events: none;
}
