/**
 * Watchlist Widget Styles
 * Phase 2: Liquid glass morphism design
 */

.watchlist-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.watchlist-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
}

.watchlist-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    color: rgba(255, 100, 100, 0.8);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watchlist-action-btn:hover {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.5);
}

.watchlist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 8px;
}

/* Watchlist Item */
.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.watchlist-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

.watchlist-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.watchlist-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.watchlist-item-info {
    flex: 1;
    min-width: 0;
}

.watchlist-item-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watchlist-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.watchlist-item-separator {
    color: rgba(255, 255, 255, 0.3);
}

.watchlist-item-notes {
    margin-top: 6px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-style: italic;
}

.watchlist-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.watchlist-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.watchlist-item-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.watchlist-item-btn.view-btn:hover {
    border-color: rgba(0, 212, 255, 0.5);
    color: #00d4ff;
}

.watchlist-item-btn.alert-btn:hover {
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.watchlist-item-btn.alert-btn.active {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

.watchlist-item-btn.remove-btn:hover {
    border-color: rgba(255, 100, 100, 0.5);
    color: rgba(255, 100, 100, 0.9);
}

/* Empty State */
.watchlist-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.watchlist-empty svg {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.watchlist-empty h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.watchlist-empty p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
    max-width: 300px;
}

/* Scrollbar */
.watchlist-items::-webkit-scrollbar {
    width: 6px;
}

.watchlist-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.watchlist-items::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

.watchlist-items::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .watchlist-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .watchlist-item-main {
        width: 100%;
    }

    .watchlist-item-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .watchlist-item-name {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .watchlist-item {
        padding: 12px;
    }

    .watchlist-item-icon {
        font-size: 20px;
    }

    .watchlist-item-name {
        font-size: 13px;
    }

    .watchlist-item-meta {
        font-size: 11px;
    }

    .watchlist-item-btn {
        width: 28px;
        height: 28px;
    }

    .watchlist-item-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Accessibility */
.watchlist-item-btn:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .watchlist-item,
    .watchlist-action-btn,
    .watchlist-item-btn {
        transition: none;
    }

    .watchlist-item:hover {
        transform: none;
    }
}
