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

.bookmark-nav {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    transition: all 0.3s ease;
}

.bookmark-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 64px; /* Increased size */
    height: 64px; /* Increased size */
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.95) 0%, rgba(60, 40, 30, 0.95) 100%);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-right: none;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 26px;
}

.bookmark-toggle:hover {
    background: linear-gradient(135deg, rgba(139, 69, 19, 1) 0%, rgba(60, 40, 30, 1) 100%);
    border-color: #d4af37;
    box-shadow: -5px 0 20px rgba(212, 175, 55, 0.3);
    transform: translateX(-5px);
}

.bookmark-icon {
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.bookmark-content {
    position: absolute;
    right: 74px; /* leave space for larger toggle */
    top: 50%; /* center vertically */
    width: 260px;
    max-height: calc(100vh - 40px);
    overflow-y: auto; /* avoid going off-screen */
    background: rgba(20, 20, 20, 0.97);
    border: 2px solid rgba(139, 69, 19, 0.45);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px);
    transition: all 0.28s ease;
    backdrop-filter: blur(10px);
}

.bookmark-nav.active .bookmark-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.bookmark-content h3 {
    color: #d4af37;
    font-size: 1.3em;
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    border-bottom: 2px solid rgba(139, 69, 19, 0.4);
    padding-bottom: 10px;
}

.bookmark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bookmark-list li {
    margin-bottom: 8px;
}

.bookmark-list a {
    display: block;
    color: #c4a57b;
    text-decoration: none;
    padding: 8px 12px;
    border-left: 3px solid rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.bookmark-list a:hover {
    color: #d4af37;
    background: rgba(139, 69, 19, 0.2);
    border-left-color: #d4af37;
    padding-left: 16px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.bookmark-list a.active {
    color: #d4af37;
    background: rgba(139, 69, 19, 0.3);
    border-left-color: #d4af37;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bookmark-content {
        width: 200px;
    }

    .bookmark-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Fallback when the image is missing */
/*
*
.bookmark-toggle.icon-fallback::before {
    content: "Bookmarks";
    font-size: 28px;
}
*
*/