/**
 * Smallbox Visitors - Bookmark Widget Styles
 * Styles for the [sbv_bookmark] shortcode
 */

.sbv-bookmark-widget {
    display: block;
    align-items: center;
    gap: 0.5em;
    font-family: inherit;
}

.sbv-bookmark-btn,
.sbv-bookmark-login {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.5em 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sbv-bookmark-btn:hover,
.sbv-bookmark-login:hover {
    border-color: #0073aa;
    background: #f8f9fa;
    color: #0073aa;
}

/* Bookmarked state */
.sbv-bookmark-btn.bookmarked {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.sbv-bookmark-btn.bookmarked:hover {
    background: #005a87;
    border-color: #005a87;
}

.sbv-bookmark-btn.bookmarked .sbv-bookmark-icon {
    color: #ffd700;
}

/* Bookmark icon states */
.sbv-bookmark-icon {
    width: 16px;
    height: 20px;
    transition: all 0.2s ease;
}

.sbv-bookmark-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.2s ease;
}

/* Bookmarked state - filled bookmark */
.sbv-bookmark-icon.bookmarked svg {
    fill: currentColor;
    stroke-width: 1;
}

/* Override old star-based rules */
.sbv-bookmark-btn.bookmarked .sbv-bookmark-icon::before {
    display: none;
}

.sbv-bookmark-count {
    font-size: 0.8em;
    color: #666;
    margin-left: 0.5em;
}

/* Loading state */
.sbv-bookmark-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 480px) {
    .sbv-bookmark-btn,
    .sbv-bookmark-login {
        padding: 0.4em 0.8em;
        font-size: 0.85em;
    }
    
    .sbv-bookmark-text {
        display: none;
    }
    
    .sbv-bookmark-icon {
        width: 20px;
        height: 24px;
    }
}

/* Hidden state */
[hidden] {
    display: none !important;
}
