/* AI Bio Generator Styles */
.ai-bio-generator-container {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.ai-bio-generator-header {
    text-align: center;
    margin-bottom: 40px;
}

.ai-bio-icon {
    display: inline-block;
    margin-bottom: 20px;
}

.ai-bio-title {
    font-size: 48px;
    font-weight: 700;
    color: #E91E8C;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.ai-bio-subtitle {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Form Wrapper */
.ai-bio-generator-form-wrapper {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #E91E8C;
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

.form-group input[type="text"]::placeholder {
    color: #9ca3af;
}

.form-help {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

/* Form Row for Side-by-Side Fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* Submit Button */
.ai-bio-submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #E91E8C 0%, #D91E8C 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
}

.ai-bio-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 140, 0.4);
    background: linear-gradient(135deg, #D91E8C 0%, #C91E8C 100%);
}

.ai-bio-submit-btn:active {
    transform: translateY(0);
}

.ai-bio-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

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

/* Result Box */
.ai-bio-result {
    margin-top: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.result-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.copy-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #E91E8C;
    background: #fff;
    border: 2px solid #E91E8C;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: #E91E8C;
    color: #fff;
}

.result-content {
    margin-bottom: 16px;
}

.result-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

.generate-another-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #E91E8C;
    background: #fff;
    border: 2px solid #E91E8C;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-another-btn:hover {
    background: #E91E8C;
    color: #fff;
}

/* Error Message */
.ai-bio-error {
    margin-top: 16px;
    padding: 16px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
}

.ai-bio-error p {
    color: #dc2626;
    margin: 0;
    font-size: 14px;
}

/* Recent Examples */
.ai-bio-examples {
    margin-top: 60px;
}

.examples-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 32px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.example-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.example-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.example-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.example-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.example-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.example-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 16px;
}

.example-meta {
    display: flex;
    gap: 8px;
}

.meta-badge {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-bio-generator-container {
        margin: 20px;
    }
    
    .ai-bio-title {
        font-size: 36px;
    }
    
    .ai-bio-subtitle {
        font-size: 16px;
    }
    
    .ai-bio-generator-form-wrapper {
        padding: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ai-bio-title {
        font-size: 28px;
    }
    
    .ai-bio-subtitle {
        font-size: 14px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
