/**
 * Domain Search Styles
 * Modern and clean design for domain search functionality
 */

/* ===== Domain Search Section ===== */
.ghs-domain-search-section {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
}

.ghs-domain-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ghs-domain-icon {
    width: 32px;
    height: 32px;
    stroke-width: 2;
    color: #667eea;
}

.ghs-domain-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* ===== Domain Included Notice ===== */
.ghs-domain-included-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ghs-domain-included-notice svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.ghs-domain-included-notice span {
    font-size: 15px;
    font-weight: 600;
}

.ghs-domain-description {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* ===== Domain Search Box ===== */
.ghs-domain-search-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.ghs-domain-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ghs-domain-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ghs-domain-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ghs-domain-extension {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.ghs-domain-extension:focus {
    outline: none;
    border-color: #667eea;
}

.ghs-check-domain-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ghs-check-domain-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.ghs-check-domain-btn:active {
    transform: translateY(0);
}

.ghs-check-domain-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ghs-check-domain-btn.loading {
    position: relative;
}

.ghs-check-domain-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    right: 10px;
}

.ghs-check-domain-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* ===== Domain Result ===== */
.ghs-domain-result {
    margin-top: 20px;
}

.ghs-domain-available,
.ghs-domain-unavailable,
.ghs-domain-selected {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    animation: slideIn 0.3s ease-out;
}

.ghs-domain-available {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
}

.ghs-domain-unavailable {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
}

.ghs-domain-selected {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
}

.ghs-domain-available svg,
.ghs-domain-selected svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
    color: #10b981;
    flex-shrink: 0;
}

.ghs-domain-selected svg {
    color: #3b82f6;
}

.ghs-domain-unavailable svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
    color: #ef4444;
    flex-shrink: 0;
}

.ghs-domain-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ghs-domain-info strong {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.ghs-domain-info span {
    font-size: 14px;
    color: #64748b;
}

.ghs-domain-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #10b981 !important;
}

.ghs-add-domain-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ghs-add-domain-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ghs-remove-domain-btn {
    padding: 8px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ghs-remove-domain-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.ghs-remove-domain-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .ghs-domain-search-section {
        padding: 20px;
    }
    
    .ghs-domain-header h3 {
        font-size: 20px;
    }
    
    .ghs-domain-input-group {
        flex-direction: column;
    }
    
    .ghs-domain-extension {
        min-width: 100%;
    }
    
    .ghs-check-domain-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ghs-domain-available,
    .ghs-domain-unavailable,
    .ghs-domain-selected {
        flex-direction: column;
        text-align: center;
    }
    
    .ghs-add-domain-btn {
        width: 100%;
    }
}

/* ===== Animations ===== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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