/**
 * Premium Shortlist Floating Panel
 * Ultra-luxe Vogue-inspired design
 */

/* Floating Icon Menu Bar - Light Cream Theme */
.sffc-floating-menu-bar {
    position: fixed;
    right: 40px;
    top: calc(50% - 320px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    gap: 10px;
    background: linear-gradient(135deg, #FFF9F0 0%, #F5E6D3 100%);
    padding: 12px;
    border-radius: 16px;
    box-shadow: 
        0 8px 24px rgba(139, 98, 57, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(201, 169, 97, 0.2);
    z-index: 10001;
    transition: all 0.3s ease;
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.sffc-menu-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F0 100%);
    border: 1px solid rgba(201, 169, 97, 0.25);
    border-radius: 10px;
    color: #8B6239;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sffc-menu-icon:hover {
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D4B8 100%);
    border-color: rgba(139, 98, 57, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(139, 98, 57, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.06);
}

.sffc-menu-icon:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 4px rgba(139, 98, 57, 0.1),
        inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sffc-menu-icon svg {
    width: 20px;
    height: 20px;
    stroke: #8B6239;
    stroke-width: 1.5;
}

.sffc-menu-icon:hover svg {
    stroke: #6B4A2B;
}

.sffc-menu-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    color: #6B4A2B;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(201, 169, 97, 0.2);
}

.sffc-menu-icon:hover::after {
    opacity: 1;
}

/* Floating Shortlist - Redesigned for 10/10 Premium */
.sffc-shortlist-floating {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    max-height: 85vh;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(248, 244, 237, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px 0 0 24px;
    box-shadow: 
        -20px 0 60px rgba(26, 48, 40, 0.08),
        -10px 0 30px rgba(212, 175, 55, 0.05),
        inset 1px 0 0 rgba(212, 175, 55, 0.2);
    z-index: 10000;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sffc-shortlist-floating.collapsed {
    width: 80px;
}

.sffc-shortlist-floating:hover {
    box-shadow: 
        -30px 0 80px rgba(26, 48, 40, 0.12),
        -15px 0 40px rgba(212, 175, 55, 0.08),
        inset 1px 0 0 rgba(212, 175, 55, 0.3);
}

/* Premium Header */
.sffc-shortlist-header {
    padding: 32px 28px;
    background: linear-gradient(135deg, 
        rgba(26, 48, 40, 0.02) 0%, 
        transparent 50%,
        rgba(212, 175, 55, 0.02) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.sffc-shortlist-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #D4AF37 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sffc-shortlist-header:hover::before {
    opacity: 1;
}

.sffc-shortlist-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #1A3028;
    margin: 0 0 6px 0;
    letter-spacing: 1px;
    font-style: italic;
}

.sffc-shortlist-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
    margin: 0;
}

.sffc-shortlist-subtitle #shortlist-count {
    color: #D4AF37;
    font-weight: 600;
    font-size: 12px;
}

/* Premium Content Area */
.sffc-shortlist-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    scroll-behavior: smooth;
}

.sffc-shortlist-content::-webkit-scrollbar {
    width: 6px;
}

.sffc-shortlist-content::-webkit-scrollbar-track {
    background: rgba(26, 48, 40, 0.02);
}

.sffc-shortlist-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 3px;
}

/* Shortlist Items - Premium Redesign */
.sffc-shortlist-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(26, 48, 40, 0.08);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: move;
}

.sffc-shortlist-item:hover {
    background: #FFFFFF;
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(-8px);
    box-shadow: 
        0 8px 24px rgba(26, 48, 40, 0.08),
        0 4px 12px rgba(212, 175, 55, 0.05);
}

.sffc-shortlist-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.sffc-shortlist-item.drag-over {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
}

/* Drag Handle - Elegant */
.drag-handle {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: grab;
    font-size: 14px;
    letter-spacing: 2px;
}

.sffc-shortlist-item:hover .drag-handle {
    opacity: 0.5;
}

.drag-handle:hover {
    opacity: 1 !important;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Priority Badge - Luxury Style */
.sffc-priority-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #1A3028 0%, #2A4038 100%);
    color: #FFFFFF;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.sffc-priority-1 .sffc-priority-badge {
    background: linear-gradient(135deg, #D4AF37 0%, #F4CF57 100%);
    color: #1A3028;
}

.sffc-priority-2 .sffc-priority-badge {
    background: linear-gradient(135deg, #B8941F 0%, #D4AF37 100%);
    color: #FFFFFF;
}

.sffc-priority-3 .sffc-priority-badge {
    background: linear-gradient(135deg, #666 0%, #999 100%);
}

/* Remove Button - Minimal Elegant */
.sffc-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid rgba(26, 48, 40, 0.2);
    border-radius: 50%;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.sffc-shortlist-item:hover .sffc-remove-btn {
    opacity: 1;
}

.sffc-remove-btn:hover {
    background: #1A3028;
    border-color: #1A3028;
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Empty State - Elegant */
.sffc-empty {
    text-align: center;
    padding: 48px 24px;
    color: #999;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.sffc-empty::before {
    content: '◈';
    display: block;
    font-size: 32px;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 16px;
}

/* Premium Actions Section */
.sffc-shortlist-actions {
    padding: 24px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(26, 48, 40, 0.02) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}


/* Premium Export Button - 10/10 Design */
.sffc-export-btn {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 244, 237, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    color: #1A3028;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.sffc-export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.sffc-export-btn:hover::before {
    left: 100%;
}

.sffc-export-btn:hover {
    background: linear-gradient(135deg, #1A3028 0%, #2A4038 100%);
    color: #FFFFFF;
    border-color: #1A3028;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(26, 48, 40, 0.2),
        0 4px 10px rgba(26, 48, 40, 0.1);
}

.sffc-export-btn:active {
    transform: translateY(0);
}

/* Export Button Icons */
.sffc-export-btn::after {
    content: '↓';
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sffc-export-btn:hover::after {
    transform: translateY(2px);
}

/* Analyze Button - Premium Gold */
.sffc-analyze-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4CF57 100%);
    border: none;
    border-radius: 28px;
    color: #1A3028;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 8px 24px rgba(212, 175, 55, 0.3),
        0 4px 12px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.sffc-analyze-btn span {
    position: relative;
    z-index: 1;
}

.sffc-analyze-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.sffc-analyze-btn:hover::before {
    width: 300px;
    height: 300px;
}

.sffc-analyze-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(212, 175, 55, 0.4),
        0 6px 16px rgba(212, 175, 55, 0.3);
}


/* Limit Warning - Elegant */
.sffc-limit-warning {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.sffc-limit-warning p {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.sffc-upgrade-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border: none;
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sffc-upgrade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Floating Icon Menu - Mobile Light Cream */
    .sffc-floating-menu-bar {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: auto;
        flex-direction: row;
        z-index: 10002;
        background: linear-gradient(135deg, #FFFFFF 0%, #FFF9F0 100%);
        padding: 10px;
        gap: 8px;
        box-shadow: 
            0 8px 24px rgba(139, 98, 57, 0.15),
            0 4px 8px rgba(0, 0, 0, 0.06);
    }
    
    .sffc-menu-icon {
        width: 38px;
        height: 38px;
        background: #FFF9F0;
        border: 1px solid rgba(201, 169, 97, 0.3);
    }
    
    .sffc-menu-icon svg {
        width: 18px;
        height: 18px;
        stroke: #8B6239;
    }
    
    .sffc-menu-icon:active {
        background: #F5E6D3;
    }
    
    .sffc-menu-icon::after {
        display: none;
    }
    
    .sffc-shortlist-floating {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        transform: none;
        width: 100%;
        max-height: 70vh;
        border-radius: 24px 24px 0 0;
    }
    
    .sffc-shortlist-floating.collapsed {
        max-height: 80px;
    }
}