/* Bookmark button styles */
.bookmark-header-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.btn-bookmark-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #ff6b93;
    font-size: 1.5rem;
    cursor: pointer;
    outline: none;
}

.btn-bookmark-toggle:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-bookmark-toggle:active {
    transform: scale(0.95);
}

.btn-bookmark-toggle.bookmarked {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    animation: pulse 0.5s ease;
}

.btn-bookmark-toggle.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner animation */
.btn-bookmark-toggle .spinner-border {
    width: 1.2rem;
    height: 1.2rem;
    border-width: 2px;
}

/* Bookmark toast */
.bookmark-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bookmark-header-btn {
        top: 15px;
        right: 15px;
    }

    .btn-bookmark-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .bookmark-toast {
        top: 10px;
        max-width: 90%;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}