
/* Favorite Button Styles */
.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 50%;
}

.single-gallery__favorite-btn {
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.favorite-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.favorite-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Active heart is red */
.favorite-icon.active {
    color: #ff3366;
}

/* Always red on favorites page */
.page-favorites .favorite-icon {
    color: #ff3366;
}

/* X icon is grey, turns red on hover */
.favorite-icon.remove-icon {
    color: #666666;
}

.favorite-icon.remove-icon:hover {
    color: #ff4444;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.favorite-btn:hover .favorite-icon {
    transform: scale(1.1);
}

/* Favorites Page Styles */
.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.posts-grid[data-grid-type="favorites"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
}

.no-results {
    text-align: center;
    padding: 3rem;
}

.no-results h2 {
    margin-bottom: 1rem;
}

.no-results p {
    margin-bottom: 2rem;
}

/* Feedback Message */
.favorite-feedback {
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    background: rgba(51, 51, 51, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Simple responsive adjustments */
@media (max-width: 48rem) {
    .favorite-btn {
        width: 2rem;
        height: 2rem;
    }

    .favorite-icon {
        font-size: 1.25rem;
    }
}


.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#clear-favorites {
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#clear-favorites:hover {
    background: #c82333;
}

.no-favorites-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
}
