/* AI Assistant Preferences UI Styles */
.preferences-ui {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.preferences-form {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preference-section {
    margin-bottom: 20px;
}

.preference-section h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    padding-bottom: 5px;
}

.theme-options, .position-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.theme-option, .position-option {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.theme-option:hover, .position-option:hover {
    background: rgba(218, 165, 32, 0.1);
    border-color: rgba(218, 165, 32, 0.3);
}

.theme-option.active, .position-option.active {
    background: rgba(218, 165, 32, 0.2);
    border-color: rgba(218, 165, 32, 0.5);
    font-weight: 600;
}

.theme-preview {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.default-preview {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.8) 0%, rgba(184, 134, 11, 0.8) 100%);
}

.gold-preview {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.8) 0%, rgba(218, 165, 32, 0.8) 100%);
}

.blue-preview {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.8) 0%, rgba(0, 0, 139, 0.8) 100%);
}

.dark-preview {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(20, 20, 20, 0.8) 100%);
}

.high-contrast-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.notification-options, .interests-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toggle-option, .interest-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.toggle-option input, .interest-option input {
    accent-color: rgb(218, 165, 32);
}

.personal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    font-size: 12px;
    color: #666;
}

.input-group input {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 13px;
}

.input-group input:focus {
    border-color: rgba(218, 165, 32, 0.5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

.preference-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.save-preferences, .reset-preferences {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.save-preferences {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.8) 0%, rgba(184, 134, 11, 0.8) 100%);
    color: #fff;
    flex: 1;
}

.save-preferences:hover {
    background: linear-gradient(135deg, rgba(218, 165, 32, 0.9) 0%, rgba(184, 134, 11, 0.9) 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.reset-preferences {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.reset-preferences:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Preferences action buttons */
.preferences-save-btn,
.preferences-cancel-btn,
.preferences-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.preferences-save-btn,
.preferences-btn {
    background: linear-gradient(135deg, #EBB540, #D9A429);
    color: #000;
    border: none;
}

.preferences-save-btn:hover,
.preferences-btn:hover {
    background: linear-gradient(135deg, #D9A429, #C69318);
    transform: translateY(-2px);
}

.preferences-cancel-btn {
    background: transparent;
    color: #EBB540;
    border: 1px solid #EBB540;
    margin-left: 0.5rem;
}

.preferences-cancel-btn:hover {
    background: rgba(235, 181, 64, 0.1);
}

/* Theme Classes */
.bbf-ai-assistant.default-theme {
    --assistant-primary: rgb(218, 165, 32);
    --assistant-secondary: rgb(184, 134, 11);
    --assistant-text: #000;
    --assistant-background: rgba(255, 255, 255, 0.85);
}

.bbf-ai-assistant.gold-theme {
    --assistant-primary: rgb(255, 215, 0);
    --assistant-secondary: rgb(218, 165, 32);
    --assistant-text: #000;
    --assistant-background: rgba(255, 248, 220, 0.9);
}

.bbf-ai-assistant.blue-theme {
    --assistant-primary: rgb(30, 144, 255);
    --assistant-secondary: rgb(0, 0, 139);
    --assistant-text: #fff;
    --assistant-background: rgba(240, 248, 255, 0.9);
}

.bbf-ai-assistant.dark-theme {
    --assistant-primary: rgb(50, 50, 50);
    --assistant-secondary: rgb(20, 20, 20);
    --assistant-text: #fff;
    --assistant-background: rgba(30, 30, 30, 0.9);
}

.bbf-ai-assistant.high-contrast-theme {
    --assistant-primary: #000;
    --assistant-secondary: #fff;
    --assistant-text: #fff;
    --assistant-background: rgba(0, 0, 0, 0.9);
}

/* Apply theme to elements */
.bbf-ai-assistant.gold-theme {
    background: var(--assistant-background);
    border-color: var(--assistant-primary);
    color: var(--assistant-text);
}

.bbf-ai-assistant.blue-theme {
    background: var(--assistant-background);
    border-color: var(--assistant-primary);
    color: var(--assistant-text);
}

.bbf-ai-assistant.dark-theme {
    background: var(--assistant-background);
    border-color: var(--assistant-primary);
    color: var(--assistant-text);
}

.bbf-ai-assistant.high-contrast-theme {
    background: var(--assistant-background);
    border-color: var(--assistant-secondary);
    color: var(--assistant-text);
}

.bbf-ai-assistant-header.gold-theme,
.bbf-ai-assistant-toggle.gold-theme {
    background: linear-gradient(135deg, var(--assistant-primary) 0%, var(--assistant-secondary) 100%);
}

.bbf-ai-assistant-header.blue-theme,
.bbf-ai-assistant-toggle.blue-theme {
    background: linear-gradient(135deg, var(--assistant-primary) 0%, var(--assistant-secondary) 100%);
}

.bbf-ai-assistant-header.dark-theme,
.bbf-ai-assistant-toggle.dark-theme {
    background: linear-gradient(135deg, var(--assistant-primary) 0%, var(--assistant-secondary) 100%);
}

.bbf-ai-assistant-header.high-contrast-theme,
.bbf-ai-assistant-toggle.high-contrast-theme {
    background: var(--assistant-primary);
    border: 2px solid var(--assistant-secondary);
}

/* Accessibility improvements for high contrast theme */
.bbf-ai-assistant.high-contrast-theme .ai-message {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid #fff;
}

.bbf-ai-assistant.high-contrast-theme .user-message {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: 1px solid #000;
}

.bbf-ai-assistant.high-contrast-theme .ai-action-button {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
}

.bbf-ai-assistant.high-contrast-theme .ai-action-button.primary {
    background: #fff;
    color: #000;
    border: 1px solid #000;
}

/* Interests selection */
.interests-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.interests-selection label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(235, 181, 64, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.interests-selection label:hover {
    background: rgba(235, 181, 64, 0.2);
}

/* Content Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.recommendation-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(235, 181, 64, 0.3);
    transition: all 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(235, 181, 64, 0.6);
}

.recommendation-item h5 {
    margin: 0 0 0.5rem 0;
    color: var(--assistant-primary, #EBB540);
    font-size: 1.1rem;
}

.recommendation-item p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.recommendation-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(235, 181, 64, 0.8), rgba(217, 164, 41, 0.8));
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.recommendation-link:hover {
    background: linear-gradient(135deg, rgba(235, 181, 64, 1), rgba(217, 164, 41, 1));
    transform: translateY(-1px);
}

.recommendations-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
