/* Suggestion Feature Enhancements - 2026-01-21 */

/* Badge for "New Tool" suggestions */
.badge-new-tool {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* =============================================
   Recent Suggestions Widget (Homepage)
   Matches changelog-timeline styling
   ============================================= */

.recent-suggestions-widget {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 2.5rem;
}

.recent-suggestions-widget .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.recent-suggestions-widget .timeline-header h2 {
    font-size: 1.25rem;
    color: #333;
    margin: 0;
}

.recent-suggestions-widget .view-all-link {
    color: #6649F3;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.recent-suggestions-widget .view-all-link:hover {
    text-decoration: underline;
}

.recent-suggestions-widget .suggestions-entries {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Suggestion entry in widget - reuses suggestion-card styling */
.recent-suggestions-widget .suggestion-entry {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recent-suggestions-widget .suggestion-entry:hover {
    border-color: #6649F3;
    box-shadow: 0 2px 8px rgba(102, 73, 243, 0.1);
}

.recent-suggestions-widget .suggestion-entry-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.recent-suggestions-widget .suggestion-date {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.recent-suggestions-widget .suggestion-entry-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.recent-suggestions-widget .suggestion-entry-title a {
    color: #333;
    text-decoration: none;
}

.recent-suggestions-widget .suggestion-entry-title a:hover {
    color: #6649F3;
}

.recent-suggestions-widget .suggestion-entry-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.recent-suggestions-widget .suggestions-empty {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* =============================================
   Tool Suggestions Section (Tool Detail Page)
   ============================================= */

.tool-suggestions-section {
    margin-top: 2rem;
}

.tool-suggestions-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tool-suggestions-section .section-header h3 {
    font-size: 1.125rem;
    color: #333;
    margin: 0;
}

.tool-suggestions-section .view-full-link {
    color: #6649F3;
    text-decoration: none;
    font-size: 0.875rem;
}

.tool-suggestions-section .view-full-link:hover {
    text-decoration: underline;
}

.tool-suggestions-section .suggestions-entries {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Compact suggestion entry for tool detail */
.tool-suggestions-section .suggestion-entry-compact {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-suggestions-section .suggestion-entry-compact:hover {
    border-color: #6649F3;
    box-shadow: 0 2px 8px rgba(102, 73, 243, 0.1);
}

.tool-suggestions-section .suggestion-entry-compact .entry-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tool-suggestions-section .suggestion-entry-compact .entry-date {
    color: #9ca3af;
    font-size: 0.75rem;
}

.tool-suggestions-section .suggestion-entry-compact .entry-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.tool-suggestions-section .suggestion-entry-compact .entry-title a {
    color: #333;
    text-decoration: none;
}

.tool-suggestions-section .suggestion-entry-compact .entry-title a:hover {
    color: #6649F3;
}

.tool-suggestions-section .suggestions-empty {
    color: #666;
    font-style: italic;
    font-size: 0.875rem;
}

/* Small button variant */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Filter loading overlay for suggestion list */
.filter-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
    border-radius: 8px;
}

.filter-loading.active {
    display: flex;
}

.filter-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #6649F3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.filter-loading-text {
    color: #666;
    font-size: 0.875rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Build-it section in suggestion cards (list view) */
.suggestion-card .build-it-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Override the footer layout to properly include build-it button */
.suggestion-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
