/* Bookmark Button */
.project-bookmark-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.project-bookmark-btn:hover {
    background: rgba(0, 170, 255, 0.3);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.bookmark-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.project-bookmark-btn.active .bookmark-icon {
    color: #ff0055;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.7);
    animation: pulse-heart 0.6s ease;
}

.project-bookmark-btn.bookmarking .bookmark-icon {
    animation: spin 0.6s ease;
}

/* Favorite projects filter tab */
.filter-tag.favorites {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.3);
}

.filter-tag.favorites.active {
    background: rgba(255, 0, 85, 0.2);
    border: 1px solid #ff0055;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

/* Favorites section in projects page */
.favorites-section {
    margin-bottom: 40px;
    animation: slideInLeft 0.6s ease-out;
}

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.favorites-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites-header h2 i {
    color: #ff0055;
}

.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.empty-favorites i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-favorites p {
    margin-bottom: 20px;
}

.empty-favorites .btn-primary {
    display: inline-block;
    margin-top: 10px;
}

/* Animation for bookmark toggle */
@keyframes pulse-heart {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Favorite badge for card */
.favorite-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff0055;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 0, 85, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Touch optimization */
@media (hover: none) and (pointer: coarse) {
    .project-bookmark-btn {
        width: 44px;
        height: 44px;
    }
    
    .project-bookmark-btn:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
}

/* Print styles */
@media print {
    .project-bookmark-btn,
    .favorite-badge,
    .filter-tag.favorites {
        display: none !important;
    }
}