/**
 * Watchlist & ARIA Accessibility Styles
 * ✅ Watchlist bookmark buttons
 * ✅ Filter toggle buttons
 * ✅ Focus indicators for accessibility
 * ✅ Keyboard navigation support
 */

/* ========================================
   WATCHLIST BOOKMARK BUTTON
   ======================================== */

.watchlist-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.watchlist-btn:focus {
    outline: 2px solid #DFDFB0;
    outline-offset: 2px;
}

.watchlist-btn:active {
    transform: scale(0.95) !important;
}

.watchlist-btn.active {
    animation: bookmark-pulse 0.3s ease-out;
}

@keyframes bookmark-pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.25); 
    }
}

/* ========================================
   FILTER TOGGLE BUTTONS
   ======================================== */

.filter-toggle {
    transition: all 0.2s ease;
}

.filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(166, 192, 221, 0.4) !important;
}

.filter-toggle:focus {
    outline: 2px solid #DFDFB0;
    outline-offset: 2px;
}

.filter-toggle:active {
    transform: translateY(0);
}

.filter-toggle.active {
    font-weight: 700 !important;
}

/* ========================================
   ACCESSIBILITY HELPERS
   ======================================== */

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators for keyboard navigation */
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #DFDFB0;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .watchlist-btn,
    .filter-toggle {
        border-width: 2px !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .watchlist-btn,
    .filter-toggle,
    .watchlist-btn.active {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   TOUCH DEVICE ENHANCEMENTS
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    /* Touch device adjustments */
    .filter-toggle {
        min-height: 40px !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Remove hover effects on touch devices */
    .watchlist-btn:hover,
    .filter-toggle:hover {
        transform: none !important;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Adjust filter buttons for mobile */
    .filter-toggle {
        font-size: 0.8125rem !important;
        padding: 0.625rem 0.875rem !important;
    }
    
    /* ✅ REMOVED: No longer stack toolbar - keep on one row */
    /* Library toolbar should stay horizontal even on mobile */
}

/* ========================================
   ARIA LIVE REGION
   ======================================== */

#sr-live-region {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
