/**
 * File: help-quick-access.css
 * Desc: Styles for quick access dropdown (recent + favorites)
 */

/* Container */
.help-quick-access {
    position: relative;
    display: inline-block;
}

/* Toggle button */
.help-quick-access-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.help-quick-access-toggle:hover {
    border-color: #8B7EC8;
    color: #8B7EC8;
}

.help-quick-access-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, #8B7EC8, #7FB069);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

/* Dropdown */
.help-quick-access-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 320px;
    max-width: 400px;
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.help-quick-access-dropdown.open {
    opacity: 1;
    transform: translateY(0);
}

/* Empty state */
.help-quick-access-empty {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.help-quick-access-empty svg {
    margin-bottom: 16px;
    color: #BDBDBD;
}

.help-quick-access-empty p {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.help-quick-access-empty small {
    font-size: 12px;
    color: #999;
}

/* Section */
.help-quick-access-section {
    border-bottom: 1px solid #F0F0F0;
}

.help-quick-access-section:last-child {
    border-bottom: none;
}

/* Section header */
.help-quick-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F8F9FA;
    border-bottom: 1px solid #E0E0E0;
}

.help-quick-access-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.help-quick-access-clear {
    background: none;
    border: none;
    color: #8B7EC8;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.help-quick-access-clear:hover {
    background: #F3E5F5;
    color: #7B1FA2;
}

/* List */
.help-quick-access-list {
    padding: 0;
    margin: 0;
}

/* Item */
.help-quick-access-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #F0F0F0;
}

.help-quick-access-item:last-child {
    border-bottom: none;
}

.help-quick-access-item:hover {
    background: #F8F9FA;
}

.help-quick-access-item-content {
    flex: 1;
    min-width: 0; /* Allow text truncation */
}

.help-quick-access-item-category {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8B7EC8;
    margin-bottom: 4px;
}

.help-quick-access-item-question {
    display: block;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.help-quick-access-item-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-quick-access-item-action:hover {
    background: #F0F0F0;
    color: #666;
    border-color: #E0E0E0;
}

.help-quick-access-item-action[data-action="unfavorite"] {
    color: #FFD700;
}

.help-quick-access-item-action[data-action="unfavorite"]:hover {
    background: #FFF9E6;
    color: #FFA000;
    border-color: #FFE082;
}

/* Scrollbar */
.help-quick-access-dropdown::-webkit-scrollbar {
    width: 8px;
}

.help-quick-access-dropdown::-webkit-scrollbar-track {
    background: #F0F0F0;
    border-radius: 0 12px 12px 0;
}

.help-quick-access-dropdown::-webkit-scrollbar-thumb {
    background: #BDBDBD;
    border-radius: 4px;
}

.help-quick-access-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .help-quick-access-dropdown {
        left: 0;
        right: 0;
        min-width: auto;
        max-width: 100%;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .help-quick-access-dropdown {
        transition: none;
    }
}
