/* Customize AI mode: cards grid, add button, bot chat container.
 * Extracted from styles.css lines 3743-4086.
 */

/* ============================================
   CUSTOMIZE AI MODE STYLES
   ============================================ */

/* Customize AI Container */
.customize-ai-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background-color: var(--bg-main);
}

/* Customize AI Header */
.customize-ai-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
}

.customize-ai-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

/* Add New AI Button */
.add-new-ai-btn {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    gap: 8px;
    padding: 10px 16px;
    background-color: var(--bg-button);
    color: var(--blue-accent);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-new-ai-btn:hover {
    background-color: var(--bg-button-hover);
    transform: translateY(-1px);
}

.add-new-ai-btn svg {
    flex-shrink: 0;
}

/* Section Container */
.customize-ai-section {
    margin-bottom: 40px;
}

/* Section Heading */
.customize-ai-section-heading {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
    opacity: 0.7;
}

/* Section Containers */
.custom-ai-section {
    margin-bottom: 40px;
}

.custom-ai-section:last-child {
    margin-bottom: 0;
}

.custom-ai-section-heading {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Cards Grid */
.custom-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

.customize-ai-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}

/* Individual Card */
.custom-ai-card {
    background: var(--bg-panel);
    border: none;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 400px;
    min-height: 280px;
}

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

/* Delete Button */
.custom-ai-delete-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.custom-ai-delete-btn:hover {
    background: #fee2e2;
    transform: scale(1.15);
}

.custom-ai-delete-btn:active {
    background: #fecaca;
    transform: scale(0.95);
}

/* Card Content */
.custom-ai-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.custom-ai-title {
    font-size: 18px;
    font-weight: 600;
    color: #0369a1;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-align: center;
}

/* Model Info */
.custom-ai-model {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.custom-ai-model svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* Description Section */
.custom-ai-description {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.custom-ai-description-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.custom-ai-description-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    opacity: 0.9;
    max-height: 150px;
    overflow-y: auto;
}

/* Card Actions */
.custom-ai-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 0;
}

.custom-ai-card-actions-left {
    display: flex;
    align-items: center;
}

.custom-ai-card-actions-right {
    display: flex;
    gap: 8px;
}

/* Privacy Indicator (Display Only) */
.custom-ai-privacy-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
}

.custom-ai-privacy-indicator svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.custom-ai-privacy-indicator span {
    font-weight: 500;
}

.custom-ai-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: transparent;
}

.custom-ai-action-btn:hover {
    transform: scale(1.1);
}

.custom-ai-action-btn.chat-btn {
    color: var(--blue-accent);
}

.custom-ai-action-btn.chat-btn:hover {
    background-color: var(--bg-button-hover);
}

.custom-ai-action-btn.edit-btn {
    color: var(--text-secondary);
}

.custom-ai-action-btn.edit-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.custom-ai-action-btn.share-btn {
    color: var(--text-secondary);
}

.custom-ai-action-btn.share-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.custom-ai-action-btn svg {
    flex-shrink: 0;
}

/* Responsive adjustments for Customize AI */
@media (max-width: 1200px) {
    .custom-ai-grid,
    .customize-ai-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 768px) {
    .customize-ai-container {
        padding: 16px;
    }
    
    .customize-ai-header h2 {
        font-size: 20px;
    }
    
    .customize-ai-section {
        margin-bottom: 32px;
    }
    
    .custom-ai-grid,
    .customize-ai-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================
   BOT CHAT MODE STYLES
   ============================================ */

/* Bot Chat Container */
.bot-chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

/* Bot Chat Header (Deprecated - now using bot-info-message in chat) */
.bot-chat-header {
    display: none; /* Hidden - bot info is now shown as first message in chat */
}
