/* style.css for AI Domain Name Generator Plugin */

.ai-domain-generator-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    border: 1px solid #e0e0e0;
}

.ai-domain-generator-title {
    text-align: center;
    color: #4a4a4a;
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ai-domain-generator-form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
}

.ai-domain-generator-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
    min-height: 100px;
    max-height: 250px;
}

.ai-domain-generator-form-group textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
    outline: none;
}

.ai-domain-generate-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #075fb7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0, 115, 170, 0.3);
}

.ai-domain-generate-btn:hover:not(:disabled) {
    background-color: #0e4277;
    transform: translateY(-2px);
}

.ai-domain-generate-btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.ai-domain-loading {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-domain-loading .spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #0073aa;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-domain-error {
    background-color: #ffe0e0;
    color: #cc0000;
    border: 1px solid #ffb3b3;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-size: 0.95em;
}

.ai-domain-results {
    margin-top: 30px;
    background-color: #e6f7ff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #b3e0ff;
    box-shadow: inset 0 2px 5px rgba(0, 115, 170, 0.1);
}

.ai-domain-results-title {
    text-align: center;
    color: #005a87;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
}

.ai-domain-name-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-domain-name-list li {
    background-color: #ffffff;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #d0e9f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ai-domain-name-list li:last-child {
    margin-bottom: 0;
}

.ai-domain-name-list li span {
    flex-grow: 1;
    word-break: break-all; /* Ensures long domains wrap */
}

.ai-domain-copy-btn {
    background-color: #075fb7; /* Green color for copy button */
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    margin-left: 15px; /* Spacing from the domain name */
    white-space: nowrap; /* Prevent button text from wrapping */
}

.ai-domain-copy-btn:hover {
    background-color: #0e4277;
}

.ai-domain-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-domain-generator-container {
        padding: 20px;
        margin: 20px;
    }

    .ai-domain-generator-title {
        font-size: 1.8em;
    }

    .ai-domain-generate-btn {
        font-size: 1em;
        padding: 10px 15px;
    }

    .ai-domain-results-title {
        font-size: 1.5em;
    }
}
