/* Compare Tray - Floating Menu Styles */
.compare-tray {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: all 0.3s ease;
}

.compare-tray-header {
    width: 60px;
    height: 60px;
    background: #89BD89;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.compare-tray-header:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.compare-tray-icon {
    color: white;
    font-size: 1.5rem;
    position: relative;
}

.compare-tray-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
}

.compare-tray-content {
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 240px;
    max-width: 300px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.compare-tray.expanded .compare-tray-content {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.compare-tray-bikes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-height: 400px;
    overflow-y: auto;
    margin-right: -0.5rem;
    overflow-x: hidden;
}

.compare-tray-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    color: #666;
}

.compare-tray-empty-icon {
    font-size: 3rem;
    color: #c0c0c0;
    margin-bottom: 1rem;
}

.compare-tray-empty-message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.compare-tray-empty-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.compare-tray-empty-message p:first-child {
    font-weight: 600;
    color: #434B5A;
    font-size: 1rem;
}

.compare-tray-empty-hint {
    font-size: 0.85rem !important;
    color: #999 !important;
    font-style: italic;
}

.compare-tray-empty-hint i {
    color: #89BD89;
    margin: 0 0.25rem;
}

.compare-tray-bikes::-webkit-scrollbar {
    width: 6px;
}

.compare-tray-bikes::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.compare-tray-bikes::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.compare-tray-bike {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem;
    position: relative;
    transition: all 0.2s ease;
    width: calc(100% - 0.5rem);
    flex-shrink: 0;
}

.compare-tray-bike:hover {
    border-color: #89BD89;
    box-shadow: 0 2px 8px rgba(137, 189, 137, 0.2);
}

.compare-tray-bike-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
}

.compare-tray-bike-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-tray-bike-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-size: 1.5rem;
}

.compare-tray-bike-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.compare-tray-bike-brand-tag {
    display: flex;
    align-items: center;
}

.compare-tray-bike-brand-tag .ui.tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    line-height: 1.2;
}

.compare-tray-bike-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2a2d30;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.compare-tray-bike-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    border: none;
    color: #999;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.compare-tray-bike-remove:hover {
    background: #fee;
    color: #e74c3c;
    transform: scale(1.1);
}

.compare-tray-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

/* Compare tray buttons now use ui button library - styles removed */
.compare-tray-actions .ui.button {
    flex: 1;
}

.compare-tray-actions .ui.button.red {
    flex: 0 0 auto;
    min-width: 44px;
    padding: 0.75rem;
}

/* Tray is always visible now */
.compare-tray {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .compare-tray {
        bottom: 15px;
        right: 15px;
    }
    
    .compare-tray-header {
        width: 56px;
        height: 56px;
    }
    
    .compare-tray-content {
        min-width: 180px;
        max-width: 250px;
    }
}

