/* ========================================
   BOOKMARK STYLES
   ======================================== */

/* Bookmark Button */
.hk-bookmark-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff !important;
    border: none;
    border-radius: 50px;
    color: #1a1d23 !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hk-bookmark-btn .bookmark-text {
    color: #1a1d23 !important;
}

.hk-bookmark-btn i {
    color: #1a1d23 !important;
}

.hk-bookmark-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: #f8f9fa;
}

.hk-bookmark-btn.bookmarked {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.hk-bookmark-btn.bookmarked:hover {
    background: #4f46e5;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.hk-bookmark-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.hk-bookmark-btn.loading i {
    animation: spin 1s linear infinite;
}

.hk-bookmark-btn i {
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Bookmark Button Variants */
.hk-bookmark-btn-icon-only {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hk-bookmark-btn-icon-only .bookmark-text {
    display: none;
}

/* Notification */
.hk-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    max-width: 350px;
}

.hk-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.hk-notification-success {
    border-left: 4px solid #10b981;
    color: #065f46;
}

.hk-notification-success i {
    color: #10b981;
    font-size: 20px;
}

.hk-notification-error {
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.hk-notification-error i {
    color: #ef4444;
    font-size: 20px;
}

/* Spin animation for loading */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hk-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .hk-bookmark-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hk-bookmark-btn i {
        font-size: 14px;
    }
}

/* Course page bookmark button */
.hk-bookmark-btn-course {
    background: #fff !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hk-bookmark-btn-course .bookmark-text,
.hk-bookmark-btn-course i {
    color: #fff !important;
}

.hk-bookmark-btn-course:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

.hk-bookmark-btn-course.bookmarked {
    background: #fff !important;
    border-color: #fff !important;
}

.hk-bookmark-btn-course.bookmarked .bookmark-text,
.hk-bookmark-btn-course.bookmarked i {
    color: #6366f1 !important;
}

.hk-bookmark-btn-course.bookmarked:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}