/**
 * AICT Brand Name Generator - Styles
 *
 * @package AICT_Core
 * @since 1.3.0
 */

.aict-brand-name-generator {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.aict-tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.aict-tool-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.aict-tool-description {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Form */
.aict-brand-form {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 1rem;
}

.required {
    color: #e53e3e;
}

.form-group textarea,
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group textarea:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Buttons */
.aict-btn-primary,
.aict-btn-secondary {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.aict-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    width: 100%;
}

.aict-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.aict-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.aict-btn-secondary {
    background: #fff;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.aict-btn-secondary:hover {
    background: #f7f9fc;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results */
.aict-brand-results {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.results-header h3 {
    font-size: 1.75rem;
    color: #1a202c;
    margin: 0;
}

/* Names Grid */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.name-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: #fff;
    position: relative;
    transition: transform 0.2s;
}

.name-card:hover {
    transform: translateY(-4px);
}

.name-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.name-number {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.name-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.name-explanation {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.name-domain {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-icon {
    font-size: 1.25rem;
}

.domain-text {
    flex: 1;
    font-family: monospace;
    font-size: 0.95rem;
}

.domain-check {
    color: #fff;
    text-decoration: underline;
    font-size: 0.875rem;
    white-space: nowrap;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.copy-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.35);
}

.copy-btn:disabled {
    cursor: not-allowed;
}

/* Usage Info */
.usage-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    color: #718096;
}

.upgrade-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    margin-left: 1rem;
}

.upgrade-link:hover {
    text-decoration: underline;
}

/* Error */
.aict-brand-error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.error-message {
    color: #856404;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .aict-brand-name-generator {
        padding: 1rem;
    }

    .aict-tool-header h2 {
        font-size: 2rem;
    }

    .aict-brand-form,
    .aict-brand-results {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .names-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}
