/* ============================================
   Renk Lejantı Paneli - Map Sayfası
   ============================================ */

/* Ana Panel */
.color-legend-panel {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 20px;
    min-width: 220px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-legend-panel.collapsed {
    transform: translateY(-50%) translateX(-180px);
}

/* Header */
.legend-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.legend-header i {
    color: #ed1c24;
    font-size: 18px;
}

.legend-header span {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

/* Items */
.legend-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.legend-item:hover {
    background: #f8fafc;
}

.legend-color {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.legend-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legend-text strong {
    font-size: 14px;
    color: #1e293b;
    font-weight: 600;
}

.legend-text small {
    font-size: 12px;
    color: #64748b;
}

/* Toggle Button */
.legend-toggle {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background: #ed1c24;
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.legend-toggle:hover {
    background: #c41e3a;
    width: 28px;
}

.legend-toggle i {
    transition: transform 0.3s;
}

.color-legend-panel.collapsed .legend-toggle i {
    transform: rotate(180deg);
}

/* Enhanced Onboarding Color Legend */
.stand-color-legend-enhanced {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.color-legend-item-large {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s;
}

.color-legend-item-large:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.color-indicator-large {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.color-indicator-large i {
    font-size: 28px;
    color: white;
}

.color-info-large {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.color-info-large strong {
    font-size: 18px;
    color: #1e293b;
    font-weight: 700;
}

.color-info-large span {
    font-size: 14px;
    color: #475569;
}

.color-info-large small {
    font-size: 12px;
    color: #94a3b8;
    font-style: italic;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .color-legend-panel {
        left: 10px;
        min-width: 180px;
        padding: 16px;
    }
    
    .legend-color {
        width: 28px;
        height: 28px;
    }
    
    .legend-text strong {
        font-size: 13px;
    }
    
    .legend-text small {
        font-size: 11px;
    }
    
    .color-legend-item-large {
        padding: 12px;
        gap: 12px;
    }
    
    .color-indicator-large {
        width: 56px;
        height: 56px;
    }
    
    .color-indicator-large i {
        font-size: 24px;
    }
    
    .color-info-large strong {
        font-size: 16px;
    }
    
    .color-info-large span {
        font-size: 13px;
    }
}

/* Admin mode için lejantı biraz daha aşağı kaydır */
body.admin-mode .color-legend-panel {
    top: 55%;
}
