/* Blog Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Copy Link Button Styling */
.copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-link-btn:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.copy-link-btn:active {
    transform: scale(0.98);
}

.copy-link-btn i {
    font-size: 1rem;
}

/* Search History Autocomplete Enhancement */
.autocomplete-section-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.autocomplete-item.recent-search {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.15s;
}

.autocomplete-item.recent-search:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.autocomplete-item.recent-search i {
    font-size: 0.875rem;
}

/* Back to Top Button - Activated */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
}

#back-to-top.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#back-to-top:active {
    transform: translateY(0);
}

/* Recipe Card Skeleton Loading */
.recipe-card-skeleton {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

.recipe-card-skeleton .skeleton-image {
    width: 100%;
    height: 12rem;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

.recipe-card-skeleton .skeleton-content {
    padding: 1rem;
}

.recipe-card-skeleton .skeleton-title {
    height: 1.5rem;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.recipe-card-skeleton .skeleton-text {
    height: 1rem;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.recipe-card-skeleton .skeleton-text:last-child {
    width: 70%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.filter-chip.active {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
}

.filter-chip .remove-icon {
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.filter-chip .remove-icon:hover {
    opacity: 1;
}

/* Rate Limit Friendly Message */
.rate-limit-info {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.rate-limit-info i {
    color: #f59e0b;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.rate-limit-info-content {
    flex: 1;
}

.rate-limit-info h4 {
    color: #92400e;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.rate-limit-info p {
    color: #78350f;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}
