/**
 * Book Curator Styling for AgenticSpyder4
 * Interactive book selection interface styles
 */

/* Main Container */
.book-curation-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border: 1px solid #00ff00;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.1);
}

.book-curation-container.expanded {
    max-width: 100%;
}

/* Header */
.curation-header {
    margin-bottom: 20px;
    text-align: center;
}

.curation-header h3 {
    color: #00ff00;
    font-size: 24px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.curation-header p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
}

/* Book Grid */
.book-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

/* Book Cards */
.book-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.book-card:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
}

.book-card.original {
    border-color: rgba(0, 150, 255, 0.5);
}

.book-card.additional {
    border-color: rgba(255, 150, 0, 0.5);
}

/* Book Number */
.book-number {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #00ff00;
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Book Details */
.book-details {
    padding-right: 40px;
}

.book-title {
    color: #00ff00;
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
}

.book-author {
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
    font-style: italic;
}

.book-reason {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Theme Tags */
.book-themes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.theme-tag {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Sections for Expanded View */
.book-sections {
    display: grid;
    gap: 24px;
}

.original-selection h4,
.additional-options h4 {
    color: #00ff00;
    margin-bottom: 12px;
    font-size: 18px;
}

.original-selection {
    padding: 16px;
    background: rgba(0, 150, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 150, 255, 0.2);
}

.additional-options {
    padding: 16px;
    background: rgba(255, 150, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 150, 0, 0.2);
}

/* Curation Actions */
.curation-prompt {
    margin-top: 24px;
    text-align: center;
}

.curation-prompt p {
    color: #e0e0e0;
    font-size: 16px;
    margin-bottom: 16px;
}

.curation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.curation-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* Buttons */
.btn-primary {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #00cc00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.btn-option {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-option:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00ff00;
    color: #00ff00;
}

.option-key {
    background: #00ff00;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

/* Custom Selection */
.custom-selection {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.custom-selection input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    width: 300px;
}

.custom-selection input:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.custom-selection button {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-selection button:hover {
    background: rgba(0, 255, 0, 0.3);
}

/* Success State */
.curation-success {
    color: #00ff00;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-books-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.selected-book {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* Loading State */
.curator-loading {
    text-align: center;
    color: #00ff00;
    font-size: 16px;
    padding: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Error State */
.curator-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6666;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

/* Processing Indicator */
.processing-indicator {
    color: #888;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .book-selection-grid {
        grid-template-columns: 1fr;
    }
    
    .curation-actions {
        flex-direction: column;
    }
    
    .custom-selection {
        flex-direction: column;
        width: 100%;
    }
    
    .custom-selection input {
        width: 100%;
    }
}


