/**
 * Definition Assist Mode Styles
 * UI for AI-generated definition templates
 */

.assist-mode-wrapper {
    margin: 16px 0;
    padding: 12px;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 8px;
    border: 2px solid #667eea;
}

.assist-mode-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.assist-mode-toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.assist-mode-text {
    flex: 1;
    color: #fff !important;
    font-weight: 600;
}

.assist-mode-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Templates Container */
.assist-templates-container {
    margin: 16px 0;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.assist-templates-header h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.assist-templates-hint {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #666;
}

/* Templates List */
.assist-templates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assist-template-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.assist-template-card:hover {
    border-color: #667eea;
    background: #f9f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.1);
}

.assist-template-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.assist-template-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.assist-template-card label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.template-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.assist-template-card.selected .template-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.template-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Error State */
.assist-error {
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    font-size: 14px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .assist-mode-wrapper {
        padding: 10px;
    }

    .assist-mode-toggle-label {
        font-size: 14px;
    }

    .assist-templates-container {
        padding: 12px;
    }

    .assist-templates-header h4 {
        font-size: 15px;
    }

    .assist-templates-hint {
        font-size: 12px;
    }

    .assist-template-card {
        padding: 10px;
    }

    .template-text {
        font-size: 13px;
    }
}

/* Small Screens */
@media (max-width: 480px) {
    .assist-mode-badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .template-number {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .assist-template-card label {
        gap: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .assist-mode-wrapper {
        background: linear-gradient(135deg, #667eea25 0%, #764ba225 100%);
        border-color: #667eea;
    }

    .assist-mode-toggle-label {
        color: #f5f5f5;
    }

    .assist-templates-container {
        background: #2d2d2d;
        border-color: #444;
    }

    .assist-templates-header h4 {
        color: #f5f5f5;
    }

    .assist-templates-hint {
        color: #bbb;
    }

    .assist-template-card {
        background: #1a1a1a;
        border-color: #444;
    }

    .assist-template-card:hover {
        background: #2a2a3a;
    }

    .assist-template-card.selected {
        background: #2a2a3a;
    }

    .template-text {
        color: #f5f5f5;
    }
}
