/* Kimberley Autonomous Content System Enhancements */

/* News Preview Styling */
#news-preview {
    margin-top: 1rem;
}

.news-preview-item {
    margin: 0.5rem 0 !important;
    padding: 0.5rem 0;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Downloads List Styling */
#downloads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-item {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.download-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 56, 60, 0.15);
}

.download-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.download-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 56, 60, 0.3);
    text-decoration: none;
}

/* Kimberley Update Indicator */
#kimberley-update-indicator {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Search Enhancements */
#product-search {
    position: relative;
    overflow: hidden;
}

#product-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffb300, transparent);
    animation: searchGlow 2s infinite;
}

@keyframes searchGlow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

#kimberley-search {
    transition: all 0.3s ease;
}

#kimberley-search:focus {
    border-color: #ffb300;
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
    outline: none;
}

/* News List Enhancements */
.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: rgba(255, 179, 0, 0.05);
    padding-left: 0.5rem;
}

.news-item a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-item a:hover {
    color: var(--primary);
    text-decoration: none;
}

.news-item a::before {
    content: '📰';
    font-size: 0.9rem;
}

.news-date {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: normal;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    #downloads-list {
        gap: 0.75rem;
    }

    .download-item {
        padding: 0.75rem;
    }

    .download-title {
        font-size: 1rem;
    }

    .news-preview-item {
        font-size: 0.9rem;
        padding-left: 0.75rem;
    }
}

/* Loading States */
.kimberley-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.kimberley-loading::before {
    content: '🤖';
    margin-right: 0.5rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Success States */
.kimberley-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.kimberley-success::before {
    content: '✅ ';
    font-weight: bold;
}

/* Error States */
.kimberley-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.kimberley-error::before {
    content: '⚠️ ';
    font-weight: bold;
}