/* Backrooms Favourites Widget */

/* Fixed widget - top right on session pages */
.fav-widget {
    position: fixed;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #94a3b8;
    padding: 6px 12px;
    z-index: 1000;
    font-size: 85%;
}

.fav-heart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    color: #64748b;
    transform: scale(0.85);
}

.fav-sep {
    color: #94a3b8;
    margin: 0 4px;
}

.fav-heart:hover {
    transform: scale(1.1);
}

.fav-heart-pop {
    animation: heart-pop 0.2s ease;
}

@keyframes heart-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.fav-label {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    text-decoration: underline;
}

.fav-label:hover {
    color: red;
}

/* Dropdown panel */
.fav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #94a3b8;
    min-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fav-dropdown-open {
    display: block;
}

.fav-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.fav-count {
    color: #64748b;
    font-size: 85%;
}

.fav-export {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 4px 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 85%;
}

.fav-export:hover {
    background: #2563eb;
}

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

.fav-list li {
    border-bottom: 1px solid #f1f5f9;
}

.fav-list li:last-child {
    border-bottom: none;
}

.fav-list a {
    display: block;
    padding: 8px 12px;
    color: blue;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-list a:hover {
    background: #f8fafc;
    text-decoration: underline;
    color: red;
}

.fav-empty {
    padding: 12px;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
}

/* Label text variants - full on desktop, short on mobile */
.fav-label-short {
    display: none;
}

@media (max-width: 600px) {
    .fav-label-full {
        display: none;
    }
    .fav-label-short {
        display: inline;
    }
}
